Home
last modified time | relevance | path

Searched refs:ptr2 (Results 1 – 5 of 5) sorted by relevance

/bionic/tests/
Dbionic_allocator_test.cpp138 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 …]
Dstring_test.cpp223 Character *ptr, *ptr1, *ptr2; member in StringTestState
251 ptr = ptr1 = ptr2 = nullptr; in ResetPointers()
255 ptr2 = glob_ptr2 + alignments[align2_index_]; in ResetPointers()
270 memset(state.ptr2, '\2', state.MAX_LEN); in TEST()
271 state.ptr2[state.MAX_LEN - 1] = '\0'; in TEST()
272 memcpy(state.ptr, state.ptr2, 2 * state.MAX_LEN); in TEST()
280 EXPECT_TRUE(strcat(state.ptr2, state.ptr1) == state.ptr2); in TEST()
281 EXPECT_TRUE(memcmp(state.ptr, state.ptr2, 2 * state.MAX_LEN) == 0); in TEST()
490 memset(state.ptr2, 'n', state.MAX_LEN); in TEST()
492 state.ptr2[state.len[i] - 1] = '\0'; in TEST()
[all …]
/bionic/linker/
Dlinker_block_allocator_test.cpp75 Element* ptr2 = allocator.alloc(); in linker_allocator_test_helper() local
76 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(ptr2) % kBlockSizeAlign); in linker_allocator_test_helper()
77 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(ptr2) % alignof(Element)); in linker_allocator_test_helper()
78 ASSERT_TRUE(ptr2 != nullptr); in linker_allocator_test_helper()
82 ASSERT_EQ(reinterpret_cast<uint8_t*>(ptr1) + dist, reinterpret_cast<uint8_t*>(ptr2)); in linker_allocator_test_helper()
85 allocator.free(ptr2); in linker_allocator_test_helper()
/bionic/libc/dns/net/
Dgetaddrinfo.c1681 _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/
Dmalloc_debug_unit_tests.cpp2577 std::unique_ptr<void, decltype(debug_free)*> ptr2(debug_malloc(1000), debug_free); in TEST_F() local
2578 ASSERT_TRUE(ptr2.get() != nullptr); in TEST_F()