#include <cmath>
#include "common_headers.hpp"
Go to the source code of this file.
Compounds | |
class | MemCache |
Defines | |
#define | MINPOW 5 |
#define | MAXPOW 22 |
#define | NLISTS MAXPOW-MINPOW+1 |
|
|
|
This is a cache for managing memory. You allocate a chunk of memory and request pointers to smaller pieces of it. You can also trade memory for bigger pieces. It will copy stuff over for you. This cache will only hand out memory in chunk sizes of powers of 2 from 2^10 through 2^22. |
|
|