From c16532b9b0e1dc2678d764f4a655cfb8002cdf44 Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Fri, 17 Jul 2015 17:02:09 -0400 Subject: remove useless typedefs --- lisc/lisc.h | 28 +++++++++++++--------------- 1 file 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 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; -- cgit 1.4.1