diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-07-17 17:02:09 -0400 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-09-15 23:01:28 -0400 |
commit | c16532b9b0e1dc2678d764f4a655cfb8002cdf44 (patch) | |
tree | bcc91d143c0c52d427dad8f50a9410b1de786433 | |
parent | 9ecfdf63340c167a243cd479534110b34737e80b (diff) | |
download | roux-c16532b9b0e1dc2678d764f4a655cfb8002cdf44.tar.gz |
remove useless typedefs
-rw-r--r-- | lisc/lisc.h | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/lisc/lisc.h b/lisc/lisc.h index fde55c4..7e8b75a 100644 --- a/lisc/lisc.h +++ b/lisc/lisc.h @@ -5,8 +5,15 @@ #include <string.h> typedef unsigned int uint; -typedef unsigned char uchar; -typedef unsigned long long ullong; + +typedef struct Bits Bits; +typedef struct Ref Ref; +typedef struct OpDesc OpDesc; +typedef struct Ins Ins; +typedef struct Phi Phi; +typedef struct Blk Blk; +typedef struct Sym Sym; +typedef struct Fn Fn; enum { NReg = 32, @@ -18,25 +25,16 @@ enum { NIns = 256, BITS = 4, - NBit = 8 * sizeof(ullong), + NBit = 8 * sizeof(unsigned long long), }; -typedef struct Bits Bits; -typedef struct Ref Ref; -typedef struct OpDesc OpDesc; -typedef struct Ins Ins; -typedef struct Phi Phi; -typedef struct Blk Blk; -typedef struct Sym Sym; -typedef struct Fn Fn; - struct Bits { - ullong t[BITS]; + unsigned long long t[BITS]; }; #define BGET(b, n) (1&((b).t[n/NBit]>>(n%NBit))) -#define BSET(b, n) ((b).t[n/NBit] |= (ullong)1<<(n%NBit)) -#define BCLR(b, n) ((b).t[n/NBit] &= ~((ullong)1<<(n%NBit))) +#define BSET(b, n) ((b).t[n/NBit] |= 1ll<<(n%NBit)) +#define BCLR(b, n) ((b).t[n/NBit] &= ~(1ll<<(n%NBit))) struct Ref { uint16_t type:1; |