diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-06-20 13:43:33 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-06-20 13:43:33 -0300 |
commit | 55ac40f859ad8e28fe71a8801d49f4a4140e8aa3 (patch) | |
tree | 1a1f02de45d28c7eb8976087ade773d7937bed14 /lopcodes.h | |
parent | 97ef8e7bd40340d47a9789beb06f0128d7438d0a (diff) | |
download | lua-55ac40f859ad8e28fe71a8801d49f4a4140e8aa3.tar.gz lua-55ac40f859ad8e28fe71a8801d49f4a4140e8aa3.tar.bz2 lua-55ac40f859ad8e28fe71a8801d49f4a4140e8aa3.zip |
Cleaning of llimits.h
Several definitions that don't need to be "global" (that is, that
concerns only specific parts of the code) moved out of llimits.h,
to more appropriate places.
Diffstat (limited to 'lopcodes.h')
-rw-r--r-- | lopcodes.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -71,7 +71,7 @@ enum OpMode {iABC, iABx, iAsBx, iAx, isJ}; /* basic instruction formats */ | |||
71 | #if L_INTHASBITS(SIZE_Bx) | 71 | #if L_INTHASBITS(SIZE_Bx) |
72 | #define MAXARG_Bx ((1<<SIZE_Bx)-1) | 72 | #define MAXARG_Bx ((1<<SIZE_Bx)-1) |
73 | #else | 73 | #else |
74 | #define MAXARG_Bx MAX_INT | 74 | #define MAXARG_Bx INT_MAX |
75 | #endif | 75 | #endif |
76 | 76 | ||
77 | #define OFFSET_sBx (MAXARG_Bx>>1) /* 'sBx' is signed */ | 77 | #define OFFSET_sBx (MAXARG_Bx>>1) /* 'sBx' is signed */ |
@@ -80,13 +80,13 @@ enum OpMode {iABC, iABx, iAsBx, iAx, isJ}; /* basic instruction formats */ | |||
80 | #if L_INTHASBITS(SIZE_Ax) | 80 | #if L_INTHASBITS(SIZE_Ax) |
81 | #define MAXARG_Ax ((1<<SIZE_Ax)-1) | 81 | #define MAXARG_Ax ((1<<SIZE_Ax)-1) |
82 | #else | 82 | #else |
83 | #define MAXARG_Ax MAX_INT | 83 | #define MAXARG_Ax INT_MAX |
84 | #endif | 84 | #endif |
85 | 85 | ||
86 | #if L_INTHASBITS(SIZE_sJ) | 86 | #if L_INTHASBITS(SIZE_sJ) |
87 | #define MAXARG_sJ ((1 << SIZE_sJ) - 1) | 87 | #define MAXARG_sJ ((1 << SIZE_sJ) - 1) |
88 | #else | 88 | #else |
89 | #define MAXARG_sJ MAX_INT | 89 | #define MAXARG_sJ INT_MAX |
90 | #endif | 90 | #endif |
91 | 91 | ||
92 | #define OFFSET_sJ (MAXARG_sJ >> 1) | 92 | #define OFFSET_sJ (MAXARG_sJ >> 1) |