luaO_ceillog2
LUAI_FUNC int luaO_ceillog2 (unsigned int x);
nums[luaO_ceillog2(k)]++; /* count as such */
lsize = luaO_ceillog2(size);