aboutsummaryrefslogtreecommitdiff
path: root/llimits.h
diff options
context:
space:
mode:
Diffstat (limited to 'llimits.h')
-rw-r--r--llimits.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/llimits.h b/llimits.h
index d115496f..21632543 100644
--- a/llimits.h
+++ b/llimits.h
@@ -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)