MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / ispow2realasize

Function ispow2realasize

extlibs/lua/src/ltable.c:235–237  ·  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

233** without changing the real size.)
234*/
235static int ispow2realasize (const Table *t) {
236 return (!isrealasize(t) || ispow2(t->alimit));
237}
238
239
240static unsigned int setlimittosize (Table *t) {

Callers 1

luaH_getnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected