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

Function mi_block_count_of_size

3rd/mimalloc-2.0.9/src/arena.c:133–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133static size_t mi_block_count_of_size(size_t size) {
134 return _mi_divide_up(size, MI_ARENA_BLOCK_SIZE);
135}
136
137/* -----------------------------------------------------------
138 Thread safe allocation in an arena

Callers 2

mi_arena_allocateFunction · 0.85
_mi_arena_freeFunction · 0.85

Calls 1

_mi_divide_upFunction · 0.85

Tested by

no test coverage detected