diff options
Diffstat (limited to 'llimits.h')
| -rw-r--r-- | llimits.h | 7 |
1 files changed, 0 insertions, 7 deletions
| @@ -60,13 +60,6 @@ typedef lu_byte TStatus; | |||
| 60 | : cast_sizet(LUA_MAXINTEGER)) | 60 | : cast_sizet(LUA_MAXINTEGER)) |
| 61 | 61 | ||
| 62 | /* | 62 | /* |
| 63 | ** floor of the log2 of the maximum signed value for integral type 't'. | ||
| 64 | ** (That is, maximum 'n' such that '2^n' fits in the given signed type.) | ||
| 65 | */ | ||
| 66 | #define log2maxs(t) (l_numbits(t) - 2) | ||
| 67 | |||
| 68 | |||
| 69 | /* | ||
| 70 | ** test whether an unsigned value is a power of 2 (or zero) | 63 | ** test whether an unsigned value is a power of 2 (or zero) |
| 71 | */ | 64 | */ |
| 72 | #define ispow2(x) (((x) & ((x) - 1)) == 0) | 65 | #define ispow2(x) (((x) & ((x) - 1)) == 0) |
