MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / reg_size_compute

Function reg_size_compute

deps/jemalloc/src/sc.c:18–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16sc_data_t sc_data_global;
17
18static size_t
19reg_size_compute(int lg_base, int lg_delta, int ndelta) {
20 return (ZU(1) << lg_base) + (ZU(ndelta) << lg_delta);
21}
22
23/* Returns the number of pages in the slab. */
24static int

Callers 3

slab_sizeFunction · 0.85
size_classFunction · 0.85
sc_data_update_slab_sizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected