Home
last modified time | relevance | path

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

/bionic/linker/tests/
Dlinker_block_allocator_test.cpp56 test_struct_nominal* ptr2 = allocator.alloc(); in TEST() local
57 ASSERT_TRUE(ptr2 != nullptr); in TEST()
59 ASSERT_EQ(ptr1+1, ptr2); in TEST()
64 allocator.free(ptr2); in TEST()
71 char* ptr2 = reinterpret_cast<char*>(allocator.alloc()); in TEST() local
74 ASSERT_TRUE(ptr2 != nullptr); in TEST()
75 ASSERT_EQ(ptr1+2*sizeof(void*), ptr2); in TEST()
82 test_struct_larger* ptr2 = allocator.alloc(); in TEST() local
85 ASSERT_TRUE(ptr2 != nullptr); in TEST()
87 ASSERT_EQ(ptr1+1, ptr2); in TEST()
Dlinker_memory_allocator_test.cpp124 test_struct_small* ptr2 = in TEST() local
128 ASSERT_TRUE(ptr2 != nullptr); in TEST()
129 ASSERT_EQ(reinterpret_cast<uintptr_t>(ptr1)+16, reinterpret_cast<uintptr_t>(ptr2)); in TEST()
133 allocator.free(ptr2); in TEST()
142 test_struct_huge* ptr2 = in TEST() local
146 ASSERT_TRUE(ptr2 != nullptr); in TEST()
149 reinterpret_cast<uintptr_t>(ptr1)/kPageSize != reinterpret_cast<uintptr_t>(ptr2)/kPageSize); in TEST()
150 allocator.free(ptr2); in TEST()
159 test_struct_large* ptr2 = in TEST() local
163 ASSERT_TRUE(ptr2 != nullptr); in TEST()
[all …]
/bionic/tests/
Dstring_test.cpp202 Character *ptr, *ptr1, *ptr2; member in StringTestState
230 ptr = ptr1 = ptr2 = nullptr; in ResetPointers()
234 ptr2 = glob_ptr2 + alignments[align2_index_]; in ResetPointers()
249 memset(state.ptr2, '\2', state.MAX_LEN); in TEST()
250 state.ptr2[state.MAX_LEN - 1] = '\0'; in TEST()
251 memcpy(state.ptr, state.ptr2, 2 * state.MAX_LEN); in TEST()
259 EXPECT_TRUE(strcat(state.ptr2, state.ptr1) == state.ptr2); in TEST()
260 EXPECT_TRUE(memcmp(state.ptr, state.ptr2, 2 * state.MAX_LEN) == 0); in TEST()
461 memset(state.ptr2, 'n', state.MAX_LEN); in TEST()
463 state.ptr2[state.len[i] - 1] = '\0'; in TEST()
[all …]
/bionic/libc/dns/net/
Dgetaddrinfo.c1662 _rfc6724_compare(const void *ptr1, const void* ptr2) in _rfc6724_compare() argument
1665 const struct addrinfo_sort_elem *a2 = (const struct addrinfo_sort_elem *)ptr2; in _rfc6724_compare()