On 09/12/2014 07:14 AM, Claudio Fontana wrote: >> > +++ b/tcg/tcg.h >> > @@ -194,7 +194,6 @@ typedef struct TCGPool { >> > typedef enum TCGType { >> > TCG_TYPE_I32, >> > TCG_TYPE_I64, >> > - TCG_TYPE_COUNT, /* number of different types */ >> > >> > /* An alias for the size of the host register. */ >> > #if TCG_TARGET_REG_BITS == 32 >> > @@ -218,6 +217,8 @@ typedef enum TCGType { >> > #endif >> > } TCGType; >> > >> > +#define TCG_TYPE_COUNT 2 >> > + > why this move from the enum to this standalone define? >
Becuase having the 2 in the enum makes the compiler think we need 2 bits to store the enum instead of one. I should probably have pulled that out. r~