Lines Matching refs:ptrs
69 void **ptrs; in test_alloc_perf() local
73 ptrs = calloc(max_runs, sizeof(ptrs[0])); in test_alloc_perf()
74 if (ptrs == NULL) { in test_alloc_perf()
90 ptrs[j] = alloc_fn(NULL, size, 0); in test_alloc_perf()
91 if (ptrs[j] == NULL) in test_alloc_perf()
105 for (j = 0; j < runs_done && ptrs[j] != NULL; j++) in test_alloc_perf()
106 memset_fn(ptrs[j], 0, size); in test_alloc_perf()
111 for (j = 0; j < runs_done && ptrs[j] != NULL; j++) in test_alloc_perf()
112 free_fn(ptrs[j]); in test_alloc_perf()
124 memset(ptrs, 0, max_runs * sizeof(ptrs[0])); in test_alloc_perf()
127 free(ptrs); in test_alloc_perf()