aboutsummaryrefslogtreecommitdiff
path: root/lopcodes.h
diff options
context:
space:
mode:
Diffstat (limited to 'lopcodes.h')
-rw-r--r--lopcodes.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/lopcodes.h b/lopcodes.h
index 736946e3..31f6fac0 100644
--- a/lopcodes.h
+++ b/lopcodes.h
@@ -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)