diff options
Diffstat (limited to 'lopcodes.h')
-rw-r--r-- | lopcodes.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -72,8 +72,11 @@ enum OpMode {iABC, ivABC, iABx, iAsBx, iAx, isJ}; | |||
72 | ** so they must fit in ints. | 72 | ** so they must fit in ints. |
73 | */ | 73 | */ |
74 | 74 | ||
75 | /* Check whether type 'int' has at least 'b' bits ('b' < 32) */ | 75 | /* |
76 | #define L_INTHASBITS(b) ((UINT_MAX >> ((b) - 1)) >= 1) | 76 | ** Check whether type 'int' has at least 'b' + 1 bits. |
77 | ** 'b' < 32; +1 for the sign bit. | ||
78 | */ | ||
79 | #define L_INTHASBITS(b) ((UINT_MAX >> (b)) >= 1) | ||
77 | 80 | ||
78 | 81 | ||
79 | #if L_INTHASBITS(SIZE_Bx) | 82 | #if L_INTHASBITS(SIZE_Bx) |