19 void *synth_base =
reinterpret_cast<void*
>(0x08000000);
20 const size_t synth_size = 1024*1024;
21 Arena b(synth_base, synth_size, 16);
23 std::vector<void*> addr;
24 for (
int x=0; x<
ASIZE; ++x)
25 addr.push_back(
nullptr);
26 uint32_t s = 0x12345678;
28 for (
int x=0; x<
BITER; ++x) {
29 int idx = s & (addr.size()-1);
33 }
else if(!addr[idx]) {
void * alloc(size_t size)
Allocate size bytes from this arena.
void free(void *ptr)
Free a previously allocated chunk of memory.
BENCHMARK(BenchLockedPool)