Lines Matching refs:nbytes
28 const size_t nbytes = state.range(0); in MallocFree() local
33 benchmark::DoNotOptimize(ptr = malloc(nbytes)); in MallocFree()
34 MakeAllocationResident(ptr, nbytes, pagesize); in MallocFree()
38 state.SetBytesProcessed(uint64_t(state.iterations()) * uint64_t(nbytes)); in MallocFree()
63 const size_t nbytes = state.range(0); in CallocFree() local
68 benchmark::DoNotOptimize(ptr = calloc(1, nbytes)); in CallocFree()
69 MakeAllocationResident(ptr, nbytes, pagesize); in CallocFree()
73 state.SetBytesProcessed(uint64_t(state.iterations()) * uint64_t(nbytes)); in CallocFree()
97 static void MallocMultiple(benchmark::State& state, size_t nbytes, size_t numAllocs) { in MallocMultiple() argument
102 benchmark::DoNotOptimize(ptrs[i] = reinterpret_cast<uint8_t*>(malloc(nbytes))); in MallocMultiple()
103 MakeAllocationResident(ptrs[i], nbytes, pagesize); in MallocMultiple()
112 state.SetBytesProcessed(uint64_t(state.iterations()) * uint64_t(nbytes) * numAllocs); in MallocMultiple()