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

Function get_bucket

v2/engine/lists.c:18–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 3

list_allocFunction · 0.85
list_deallocFunction · 0.85
list_appendFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected