Lines Matching refs:sizes
48 size_t *sizes = new size_t[count];
50 sizes[i] = rand() % maxSize;
51 allocations[i] = malloc(sizes[i]);
53 printf("allocation of %lu bytes failed\n", sizes[i]);
63 write_test_pattern(allocations[i], sizes[i]);
67 verify_test_pattern(allocations[i], sizes[i]);
72 delete[] sizes;
80 size_t *sizes = new size_t[count];
82 sizes[i] = rand() % maxSize;
83 allocations[i] = memalign(alignment, sizes[i]);
85 printf("allocation of %lu bytes failed\n", sizes[i]);
91 " with alignment %lu (0x%08lx)\n", sizes[i],
97 write_test_pattern(allocations[i], sizes[i]);
101 verify_test_pattern(allocations[i], sizes[i]);
106 delete[] sizes;