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

Function countint

third-party/lua-5.5.0/src/ltable.c:470–476  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

468
469
470static void countint (lua_Integer key, Counters *ct) {
471 unsigned int k = arrayindex(key);
472 if (k != 0) { /* is 'key' an array index? */
473 ct->nums[luaO_ceillog2(k)]++; /* count as such */
474 ct->na++;
475 }
476}
477
478
479l_sinline int arraykeyisempty (const Table *t, unsigned key) {

Callers 2

numusehashFunction · 0.70
rehashFunction · 0.70

Calls 2

luaO_ceillog2Function · 0.70
arrayindexFunction · 0.50

Tested by

no test coverage detected