Lines Matching refs:ptr
66 void* ptr = allocator.alloc(0); in TEST() local
67 ASSERT_TRUE(ptr != nullptr); in TEST()
68 allocator.free(ptr); in TEST()
217 void* ptr; in TEST() local
220 ptr = allocator.memalign(0x100, 0x100); in TEST()
221 ASSERT_TRUE(ptr != nullptr); in TEST()
222 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(ptr) % 0x100); in TEST()
223 allocator.free(ptr); in TEST()
226 ptr = allocator.alloc(0x200); in TEST()
227 ASSERT_TRUE(ptr != nullptr); in TEST()
228 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(ptr) % 0x200); in TEST()
229 allocator.free(ptr); in TEST()
232 ptr = allocator.memalign(0x100, 0x10); in TEST()
233 ASSERT_TRUE(ptr != nullptr); in TEST()
234 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(ptr) % 0x100); in TEST()
235 allocator.free(ptr); in TEST()
240 void* ptr; in TEST() local
243 ptr = allocator.memalign(0x100, 0x2000); in TEST()
244 ASSERT_TRUE(ptr != nullptr); in TEST()
245 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(ptr) % 0x100); in TEST()
246 allocator.free(ptr); in TEST()
249 ptr = allocator.memalign(0x1000, 0x2000); in TEST()
250 ASSERT_TRUE(ptr != nullptr); in TEST()
251 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(ptr) % 0x1000); in TEST()
252 allocator.free(ptr); in TEST()
256 ptr = allocator.memalign(0x2000, 0x4000); in TEST()
257 ASSERT_TRUE(ptr != nullptr); in TEST()
258 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(ptr) % 0x1000); in TEST()
259 allocator.free(ptr); in TEST()