MCPcopy Create free account
hub / github.com/boostorg/build / get_bucket

Function get_bucket

src/engine/lists.cpp:19–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17static LIST * freelist[ 32 ]; /* junkpile for list_dealloc() */
18
19static int32_t get_bucket( int32_t size )
20{
21 int32_t bucket = 0;
22 while ( size > ( int32_t(1) << bucket ) ) ++bucket;
23 return bucket;
24}
25
26static LIST * list_alloc( int32_t size )
27{

Callers 3

list_allocFunction · 0.85
list_deallocFunction · 0.85
list_appendFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected