internal static int CountLiveByBits(ref World.StateAllocator alloc) { int live = 0; for (int i = 0; i < 64; ++i) { live += math.countbits(~alloc.m_Level1[i].FreeBits); } return(live); }
internal static int CountLiveByPointer(ref World.StateAllocator alloc) { int live = 0; for (int i = 0; i < 64; ++i) { for (int s = 0; s < 64; ++s) { live += alloc.m_Level1[i].SystemPointer[s] != 0 ? 1 : 0; } } return(live); }
internal static void SanityCheck(ref World.StateAllocator alloc) { }