Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
Go to the documentation of this file. 18 void *synth_base =
reinterpret_cast<void*
>(0x08000000);
19 const size_t synth_size = 1024*1024;
20 Arena b(synth_base, synth_size, 16);
22 std::vector<void*> addr;
23 for (
int x=0; x<
ASIZE; ++x)
24 addr.push_back(
nullptr);
25 uint32_t s = 0x12345678;
27 for (
int x=0; x<
BITER; ++x) {
28 int idx = s & (addr.size()-1);
32 }
else if(!addr[idx]) {
void * alloc(size_t size)
Allocate size bytes from this arena.
static void BenchLockedPool(benchmark::State &state)
void free(void *ptr)
Free a previously allocated chunk of memory.
BENCHMARK(BenchLockedPool)