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

Function lg_ceil

deps/jemalloc/include/jemalloc/internal/bit_util.h:216–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214#endif
215
216BIT_UTIL_INLINE unsigned
217lg_ceil(size_t x) {
218 return lg_floor(x) + ((x & (x - 1)) == 0 ? 0 : 1);
219}
220
221#undef BIT_UTIL_INLINE
222

Callers 2

bit_util.cFile · 0.85
size_classesFunction · 0.85

Calls 1

lg_floorFunction · 0.70

Tested by

no test coverage detected