Lines Matching refs:ptr
226 void* ptr; in TEST() local
230 ASSERT_EQ(EINVAL, posix_memalign(&ptr, align, 256)) in TEST()
240 ASSERT_EQ(EINVAL, posix_memalign(&ptr, fail_align, 256)) in TEST()
243 ASSERT_EQ(0, posix_memalign(&ptr, align, 256)) in TEST()
245 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(ptr) & (align - 1)) in TEST()
246 << "Did not return a valid aligned ptr " << ptr << " expected alignment " << align; in TEST()
247 free(ptr); in TEST()
255 void* ptr; in TEST() local
256 ASSERT_EQ(0, posix_memalign(&ptr, 16, 1)) in TEST()
258 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(ptr) & 0xf) in TEST()
259 << "Pointer not aligned at size " << size << " ptr " << ptr; in TEST()
260 free(ptr); in TEST()
266 void* ptr; in TEST() local
267 ASSERT_NE(0, posix_memalign(&ptr, 16, SIZE_MAX)); in TEST()
282 void* ptr = aligned_alloc(align, 2 * align); in TEST() local
283 ASSERT_TRUE(ptr != nullptr) << "Unexpected failure at align " << align; in TEST()
284 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(ptr) & (align - 1)) in TEST()
285 << "Did not return a valid aligned ptr " << ptr << " expected alignment " << align; in TEST()
286 free(ptr); in TEST()