Home
last modified time | relevance | path

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

/bionic/linker/tests/
Dlinker_block_allocator_test.cpp54 test_struct_nominal* ptr1 = allocator.alloc(); in TEST() local
55 ASSERT_TRUE(ptr1 != nullptr); in TEST()
56 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(ptr1) % 16); in TEST()
61 ASSERT_EQ(reinterpret_cast<uint8_t*>(ptr1)+16, reinterpret_cast<uint8_t*>(ptr2)); in TEST()
63 ptr1->value = 42; in TEST()
65 allocator.free(ptr1); in TEST()
72 char* ptr1 = reinterpret_cast<char*>(allocator.alloc()); in TEST() local
75 ASSERT_TRUE(ptr1 != nullptr); in TEST()
76 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(ptr1) % 16); in TEST()
79 ASSERT_EQ(ptr1+16, ptr2); // aligned to 16 in TEST()
[all …]
Dlinker_memory_allocator_test.cpp124 test_struct_small* ptr1 = in TEST() local
129 ASSERT_TRUE(ptr1 != nullptr); in TEST()
130 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(ptr1) % 16); in TEST()
134 ASSERT_EQ(reinterpret_cast<uintptr_t>(ptr1)+16, reinterpret_cast<uintptr_t>(ptr2)); in TEST()
135 ASSERT_TRUE(memcmp(ptr1, zeros, 16) == 0); in TEST()
137 allocator.free(ptr1); in TEST()
145 test_struct_huge* ptr1 = in TEST() local
150 ASSERT_TRUE(ptr1 != nullptr); in TEST()
151 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(ptr1) % 16); in TEST()
156 reinterpret_cast<uintptr_t>(ptr1)/kPageSize != reinterpret_cast<uintptr_t>(ptr2)/kPageSize); in TEST()
[all …]
/bionic/tests/
Dstring_test.cpp212 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 …]
/bionic/libc/dns/net/
Dgetaddrinfo.c1662 _rfc6724_compare(const void *ptr1, const void* ptr2) in _rfc6724_compare() argument
1664 const struct addrinfo_sort_elem *a1 = (const struct addrinfo_sort_elem *)ptr1; in _rfc6724_compare()