Eneboo - Documentación para desarrolladores
|
Functions to implement KingsleyHeap. Más...
Enumeraciones | |
enum | { NUMBINS = 29 } |
Funciones | |
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 } |
Functions to implement KingsleyHeap.
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.