Lines Matching refs:ptr2
69 test_struct_nominal* ptr2 = allocator.alloc(); in TEST() local
70 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(ptr2) % 16); in TEST()
71 ASSERT_TRUE(ptr2 != nullptr); in TEST()
73 ASSERT_EQ(reinterpret_cast<uint8_t*>(ptr1)+16, reinterpret_cast<uint8_t*>(ptr2)); in TEST()
78 allocator.free(ptr2); in TEST()
85 char* ptr2 = reinterpret_cast<char*>(allocator.alloc()); in TEST() local
89 ASSERT_TRUE(ptr2 != nullptr); in TEST()
90 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(ptr2) % 16); in TEST()
91 ASSERT_EQ(ptr1+16, ptr2); // aligned to 16 in TEST()
98 test_struct_larger* ptr2 = allocator.alloc(); in TEST() local
102 ASSERT_TRUE(ptr2 != nullptr); in TEST()
103 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(ptr2) % 16); in TEST()
105 ASSERT_EQ(reinterpret_cast<uint8_t*>(ptr1) + 1024, reinterpret_cast<uint8_t*>(ptr2)); in TEST()