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

Function mi_bitmap_index_create_from_bit

3rd/mimalloc-2.0.9/src/bitmap.h:44–46  ·  view source on GitHub ↗

Create a bit index.

Source from the content-addressed store, hash-verified

42
43// Create a bit index.
44static inline mi_bitmap_index_t mi_bitmap_index_create_from_bit(size_t full_bitidx) {
45 return mi_bitmap_index_create(full_bitidx / MI_BITMAP_FIELD_BITS, full_bitidx % MI_BITMAP_FIELD_BITS);
46}
47
48// Get the field index from a bit index.
49static inline size_t mi_bitmap_index_field(mi_bitmap_index_t bitmap_idx) {

Callers 1

mi_segment_cache_purgeFunction · 0.85

Calls 1

mi_bitmap_index_createFunction · 0.85

Tested by

no test coverage detected