Searched refs:ptr1 (Results 1 – 5 of 5) sorted by relevance
/bionic/linker/ |
D | linker_block_allocator_test.cpp | 66 test_struct_nominal* ptr1 = allocator.alloc(); in TEST() local 67 ASSERT_TRUE(ptr1 != nullptr); in TEST() 68 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(ptr1) % 16); in TEST() 73 ASSERT_EQ(reinterpret_cast<uint8_t*>(ptr1)+16, reinterpret_cast<uint8_t*>(ptr2)); in TEST() 75 ptr1->value = 42; in TEST() 77 allocator.free(ptr1); in TEST() 84 char* ptr1 = reinterpret_cast<char*>(allocator.alloc()); in TEST() local 87 ASSERT_TRUE(ptr1 != nullptr); in TEST() 88 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(ptr1) % 16); in TEST() 91 ASSERT_EQ(ptr1+16, ptr2); // aligned to 16 in TEST() [all …]
|
/bionic/tests/ |
D | string_test.cpp | 212 Character *ptr, *ptr1, *ptr2; member in StringTestState 240 ptr = ptr1 = ptr2 = nullptr; in ResetPointers() 243 ptr1 = glob_ptr1 + alignments[align1_index_]; in ResetPointers() 263 memset(state.ptr1, 'L', state.len[i]); in TEST() 264 state.ptr1[random() % state.len[i]] = '\0'; in TEST() 265 state.ptr1[state.len[i] - 1] = '\0'; in TEST() 267 strcpy(state.ptr + state.MAX_LEN - 1, state.ptr1); in TEST() 269 EXPECT_TRUE(strcat(state.ptr2, state.ptr1) == state.ptr2); in TEST() 442 memset(state.ptr1, ~seek_char, state.len[i]); in TEST() 444 memset(state.ptr1, '\1', state.len[i]); in TEST() [all …]
|
D | bionic_allocator_test.cpp | 136 test_struct_small* ptr1 = in TEST() local 141 ASSERT_TRUE(ptr1 != nullptr); in TEST() 142 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(ptr1) % 16); in TEST() 146 ASSERT_EQ(reinterpret_cast<uintptr_t>(ptr1)+16, reinterpret_cast<uintptr_t>(ptr2)); in TEST() 147 ASSERT_TRUE(memcmp(ptr1, zeros, 16) == 0); in TEST() 149 allocator.free(ptr1); in TEST() 157 test_struct_huge* ptr1 = in TEST() local 162 ASSERT_TRUE(ptr1 != nullptr); in TEST() 163 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(ptr1) % 16); in TEST() 168 reinterpret_cast<uintptr_t>(ptr1)/kPageSize != reinterpret_cast<uintptr_t>(ptr2)/kPageSize); in TEST() [all …]
|
/bionic/libc/dns/net/ |
D | getaddrinfo.c | 1681 _rfc6724_compare(const void *ptr1, const void* ptr2) in _rfc6724_compare() argument 1683 const struct addrinfo_sort_elem *a1 = (const struct addrinfo_sort_elem *)ptr1; in _rfc6724_compare()
|
/bionic/libc/malloc_debug/tests/ |
D | malloc_debug_unit_tests.cpp | 2495 std::unique_ptr<void, decltype(debug_free)*> ptr1(debug_malloc(1000), debug_free); in TEST_F() local 2496 ASSERT_TRUE(ptr1.get() != nullptr); in TEST_F()
|