Lines Matching refs:i
56 for (size_t i = 0; i < total_entries; i++) { in BenchmarkMalloc() local
57 switch (entries[i].type) { in BenchmarkMalloc()
59 ptrs[entries[i].idx] = malloc(entries[i].size); in BenchmarkMalloc()
62 reinterpret_cast<uint8_t*>(ptrs[entries[i].idx])[0] = 10; in BenchmarkMalloc()
65 ptrs[entries[i].idx] = calloc(entries[i].arg2, entries[i].size); in BenchmarkMalloc()
68 reinterpret_cast<uint8_t*>(ptrs[entries[i].idx])[0] = 20; in BenchmarkMalloc()
71 ptrs[entries[i].idx] = memalign(entries[i].arg2, entries[i].size); in BenchmarkMalloc()
74 reinterpret_cast<uint8_t*>(ptrs[entries[i].idx])[0] = 30; in BenchmarkMalloc()
77 if (entries[i].arg2 == 0) { in BenchmarkMalloc()
78 ptrs[entries[i].idx] = realloc(nullptr, entries[i].size); in BenchmarkMalloc()
80 ptrs[entries[i].idx] = realloc(ptrs[entries[i].arg2 - 1], entries[i].size); in BenchmarkMalloc()
84 reinterpret_cast<uint8_t*>(ptrs[entries[i].idx])[0] = 40; in BenchmarkMalloc()
87 free(ptrs[entries[i].idx]); in BenchmarkMalloc()