Searched refs:ptr2 (Results 1 – 5 of 5) sorted by relevance
/bionic/linker/ |
D | linker_block_allocator_test.cpp | 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 [all …]
|
/bionic/tests/ |
D | bionic_allocator_test.cpp | 138 test_struct_small* ptr2 = in TEST() local 143 ASSERT_TRUE(ptr2 != nullptr); in TEST() 144 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(ptr2) % 16); in TEST() 146 ASSERT_EQ(reinterpret_cast<uintptr_t>(ptr1)+16, reinterpret_cast<uintptr_t>(ptr2)); in TEST() 150 allocator.free(ptr2); in TEST() 159 test_struct_huge* ptr2 = in TEST() local 164 ASSERT_TRUE(ptr2 != nullptr); in TEST() 165 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(ptr2) % 16); in TEST() 168 reinterpret_cast<uintptr_t>(ptr1)/kPageSize != reinterpret_cast<uintptr_t>(ptr2)/kPageSize); in TEST() 169 allocator.free(ptr2); in TEST() [all …]
|
D | string_test.cpp | 212 Character *ptr, *ptr1, *ptr2; member in StringTestState 240 ptr = ptr1 = ptr2 = nullptr; in ResetPointers() 244 ptr2 = glob_ptr2 + alignments[align2_index_]; in ResetPointers() 259 memset(state.ptr2, '\2', state.MAX_LEN); in TEST() 260 state.ptr2[state.MAX_LEN - 1] = '\0'; in TEST() 261 memcpy(state.ptr, state.ptr2, 2 * state.MAX_LEN); in TEST() 269 EXPECT_TRUE(strcat(state.ptr2, state.ptr1) == state.ptr2); in TEST() 270 EXPECT_TRUE(memcmp(state.ptr, state.ptr2, 2 * state.MAX_LEN) == 0); in TEST() 478 memset(state.ptr2, 'n', state.MAX_LEN); in TEST() 480 state.ptr2[state.len[i] - 1] = '\0'; in TEST() [all …]
|
/bionic/libc/dns/net/ |
D | getaddrinfo.c | 1681 _rfc6724_compare(const void *ptr1, const void* ptr2) in _rfc6724_compare() argument 1684 const struct addrinfo_sort_elem *a2 = (const struct addrinfo_sort_elem *)ptr2; in _rfc6724_compare()
|
/bionic/libc/malloc_debug/tests/ |
D | malloc_debug_unit_tests.cpp | 2503 std::unique_ptr<void, decltype(debug_free)*> ptr2(debug_malloc(1000), debug_free); in TEST_F() local 2504 ASSERT_TRUE(ptr2.get() != nullptr); in TEST_F()
|