Lines Matching refs:size

70 test_large_allocations (size_t size)  in test_large_allocations()  argument
81 TEST_VERIFY (malloc (size) == NULL); in test_large_allocations()
93 TEST_VERIFY (realloc (ptr_to_realloc, size) == NULL); in test_large_allocations()
101 if ((size % nmemb) == 0) in test_large_allocations()
104 TEST_VERIFY (calloc (nmemb, size / nmemb) == NULL); in test_large_allocations()
108 TEST_VERIFY (calloc (size / nmemb, nmemb) == NULL); in test_large_allocations()
114 TEST_VERIFY (reallocarray (ptr_to_realloc, nmemb, size / nmemb) == NULL); in test_large_allocations()
121 TEST_VERIFY (reallocarray (ptr_to_realloc, size / nmemb, nmemb) == NULL); in test_large_allocations()
137 test_large_aligned_allocations (size_t size) in test_large_aligned_allocations() argument
156 TEST_VERIFY (memalign (align, size) == NULL); in test_large_aligned_allocations()
167 TEST_VERIFY (posix_memalign (&ptr, align, size) == ENOMEM); in test_large_aligned_allocations()
172 if ((size % align) == 0) in test_large_aligned_allocations()
178 TEST_VERIFY (aligned_alloc (align, size) == NULL); in test_large_aligned_allocations()
192 TEST_VERIFY (valloc (size) == NULL); in test_large_aligned_allocations()
202 TEST_VERIFY (pvalloc (size) == NULL); in test_large_aligned_allocations()
286 size_t size = (msbs << 50) | FIFTY_ON_BITS; in do_test() local
287 test_large_allocations (size); in do_test()
288 test_large_aligned_allocations (size); in do_test()
290 size = msbs << 50; in do_test()
291 test_large_allocations (size); in do_test()
292 test_large_aligned_allocations (size); in do_test()