aboutsummaryrefslogtreecommitdiff
path: root/llimits.h
diff options
context:
space:
mode:
authorRoberto I <roberto@inf.puc-rio.br>2025-10-14 13:50:24 -0300
committerRoberto I <roberto@inf.puc-rio.br>2025-10-14 13:50:24 -0300
commit9c66903cc55388006a833f0f3911ea81fa86edea (patch)
tree994a7dce6af07ea1603a1dad8cbdc77006b25ce8 /llimits.h
parent30a7b93439f72570cd3315c201b140df3c07e106 (diff)
downloadlua-9c66903cc55388006a833f0f3911ea81fa86edea.tar.gz
lua-9c66903cc55388006a833f0f3911ea81fa86edea.tar.bz2
lua-9c66903cc55388006a833f0f3911ea81fa86edea.zip
Details
- Functions luaK_goiffalse, luaS_hash made private. - Removed unused macro log2maxs.
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)