MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / ispow2realasize

Function ispow2realasize

third-party/lua-5.4.6/src/ltable.c:278–280  ·  view source on GitHub ↗

** Check whether real size of the array is a power of 2. ** (If it is not, 'alimit' cannot be changed to any other value ** without changing the real size.) */

Source from the content-addressed store, hash-verified

276** without changing the real size.)
277*/
278static int ispow2realasize (const Table *t) {
279 return (!isrealasize(t) || ispow2(t->alimit));
280}
281
282
283static unsigned int setlimittosize (Table *t) {

Callers 1

luaH_getnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected