MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / ispow2realasize

Function ispow2realasize

3rd/lua-5.4.3/src/ltable.c:267–269  ·  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

265** without changing the real size.)
266*/
267static int ispow2realasize (const Table *t) {
268 return (!isrealasize(t) || ispow2(t->alimit));
269}
270
271
272static unsigned int setlimittosize (Table *t) {

Callers 1

luaH_getnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected