Searched defs:ptr2 (Results 1 - 4 of 4) sorted by relevance
/bionic/linker/tests/ |
H A D | linker_block_allocator_test.cpp | 56 test_struct_nominal* ptr2 = allocator.alloc(); local 57 ASSERT_TRUE(ptr2 != nullptr); 59 ASSERT_EQ(ptr1+1, ptr2); 64 allocator.free(ptr2); 71 char* ptr2 = reinterpret_cast<char*>(allocator.alloc()); local 74 ASSERT_TRUE(ptr2 != nullptr); 75 ASSERT_EQ(ptr1+2*sizeof(void*), ptr2); 82 test_struct_larger* ptr2 = allocator.alloc(); local 85 ASSERT_TRUE(ptr2 != nullptr); 87 ASSERT_EQ(ptr1+1, ptr2); [all...] |
H A D | linker_memory_allocator_test.cpp | 124 test_struct_small* ptr2 = local 128 ASSERT_TRUE(ptr2 != nullptr); 129 ASSERT_EQ(reinterpret_cast<uintptr_t>(ptr1)+16, reinterpret_cast<uintptr_t>(ptr2)); 133 allocator.free(ptr2); 142 test_struct_huge* ptr2 = local 146 ASSERT_TRUE(ptr2 != nullptr); 149 reinterpret_cast<uintptr_t>(ptr1)/kPageSize != reinterpret_cast<uintptr_t>(ptr2)/kPageSize); 150 allocator.free(ptr2); 159 test_struct_large* ptr2 = local 163 ASSERT_TRUE(ptr2 ! [all...] |
/bionic/tests/ |
H A D | string_test.cpp | 202 Character *ptr, *ptr1, *ptr2; member in class:StringTestState 230 ptr = ptr1 = ptr2 = nullptr; 234 ptr2 = glob_ptr2 + alignments[align2_index_]; 249 memset(state.ptr2, '\2', state.MAX_LEN); 250 state.ptr2[state.MAX_LEN - 1] = '\0'; 251 memcpy(state.ptr, state.ptr2, 2 * state.MAX_LEN); 259 EXPECT_TRUE(strcat(state.ptr2, state.ptr1) == state.ptr2); 260 EXPECT_TRUE(memcmp(state.ptr, state.ptr2, 2 * state.MAX_LEN) == 0); 461 memset(state.ptr2, ' 926 char* ptr2 = glob_ptr2 + alignments[i]; local [all...] |
/bionic/libc/dns/net/ |
H A D | getaddrinfo.c | 1662 _rfc6724_compare(const void *ptr1, const void* ptr2) argument 1665 const struct addrinfo_sort_elem *a2 = (const struct addrinfo_sort_elem *)ptr2;
|
Completed in 2543 milliseconds