| 23 | } |
| 24 | |
| 25 | static LIST * list_alloc( unsigned const size ) |
| 26 | { |
| 27 | unsigned const bucket = get_bucket( size ); |
| 28 | if ( freelist[ bucket ] ) |
| 29 | { |
| 30 | LIST * result = freelist[ bucket ]; |
| 31 | freelist[ bucket ] = result->impl.next; |
| 32 | return result; |
| 33 | } |
| 34 | return (LIST *)BJAM_MALLOC( sizeof( LIST ) + ( 1u << bucket ) * |
| 35 | sizeof( OBJECT * ) ); |
| 36 | } |
| 37 | |
| 38 | static void list_dealloc( LIST * l ) |
| 39 | { |
no test coverage detected