Kingsley Namespace Reference
Functions to implement KingsleyHeap.
More...
Enumerations |
| enum | { NUMBINS = 29
} |
Functions |
| size_t | class2Size (const int i) |
| int | size2Class (const size_t sz) |
Variables |
| const int | cl [16] = { 0, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 } |
| | A speed optimization: we use this array to quickly return the size class of objects from 8 to 128 bytes.
|
Detailed Description
Functions to implement KingsleyHeap.
Enumeration Type Documentation
Function Documentation
| size_t Kingsley::class2Size |
( |
const int |
i |
) |
[inline] |
| int Kingsley::size2Class |
( |
const size_t |
sz |
) |
[inline] |
Variable Documentation
| const int Kingsley::cl[16] = { 0, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 } |
A speed optimization: we use this array to quickly return the size class of objects from 8 to 128 bytes.