/bionic/tests/ |
D | string_test.cpp | 270 EXPECT_TRUE(memcmp(state.ptr, state.ptr2, 2 * state.MAX_LEN) == 0); in TEST() 527 ASSERT_FALSE((memcmp(state.ptr1, state.ptr, state.MAX_LEN)) != 0 || in TEST() 528 (memcmp(state.ptr2, state.ptr + state.MAX_LEN, state.MAX_LEN) != 0)); in TEST() 551 ASSERT_FALSE((memcmp(state.ptr1, state.ptr, state.MAX_LEN)) != 0 || in TEST() 552 (memcmp(state.ptr2, state.ptr + state.MAX_LEN, state.MAX_LEN) != 0)); in TEST() 577 ASSERT_TRUE(memcmp(state.ptr, state.ptr2, state.MAX_LEN + state.len[i]) == 0); in TEST() 609 ASSERT_FALSE((memcmp(state.ptr1, state.ptr, state.MAX_LEN) != 0) || in TEST() 610 (memcmp(state.ptr2, state.ptr + state.MAX_LEN, state.MAX_LEN) != 0)); in TEST() 636 ASSERT_EQ(memcmp(state.ptr, state.ptr2, 2 * state.MAX_LEN), 0); in TEST() 705 ASSERT_EQ(0, memcmp(state.ptr1, state.ptr, state.MAX_LEN)); in TEST() [all …]
|
D | bionic_allocator_test.cpp | 97 ASSERT_TRUE(memcmp(reallocated_ptr, model, array_size) == 0); in TEST() 113 ASSERT_TRUE(memcmp(reallocated_ptr, model, array_size * 2) == 0); in TEST() 125 ASSERT_TRUE(memcmp(reallocated_ptr, model, 4000) == 0); in TEST() 147 ASSERT_TRUE(memcmp(ptr1, zeros, 16) == 0); in TEST()
|
D | sys_random_test.cpp | 44 ASSERT_TRUE(memcmp(buf1, buf2, sizeof(buf1)) != 0); in TEST() 80 ASSERT_TRUE(memcmp(buf1, buf2, sizeof(buf1)) != 0); in TEST()
|
D | netinet_in_test.cpp | 40 ASSERT_EQ(0, memcmp(&any, &in6addr_any, sizeof(in6addr_any))); in TEST() 45 ASSERT_EQ(0, memcmp(&loopback, &in6addr_loopback, sizeof(in6addr_loopback))); in TEST()
|
D | sys_uio_test.cpp | 82 ASSERT_EQ(0, memcmp(src, dst, sizeof src)); in TEST() 101 ASSERT_EQ(0, memcmp(src, dst, sizeof src)); in TEST()
|
D | system_properties_test.cpp | 202 ASSERT_EQ(0, memcmp(prop_value, prop_value_ret, PROP_VALUE_MAX)); in TEST() 293 ASSERT_EQ(0, memcmp(prop_value, prop_value_ret, PROP_VALUE_MAX)); in TEST()
|
/bionic/docs/ |
D | libc_assembler.md | 20 Benchmark 64 bit memcmp: 22 …nchmarktest64/bionic-benchmarks/bionic-benchmarks --bionic_xml=string.xml --benchmark_filter=memcmp 24 Benchmark 32 bit memcmp: 26 …benchmarktest/bionic-benchmarks/bionic-benchmarks --bionic_xml=string.xml --benchmark_filter=memcmp 30 …ionic-benchmarks/bionic-benchmarks --bionic_cpu=2 --bionic_xml=string.xml --benchmark_filter=memcmp 60 bionic-benchmarks --bionic_xml=string.xml --benchmark_filter=memcmp
|
/bionic/libc/bionic/ |
D | memmem.cpp | 55 if (!memcmp(x+2, y+j+2, m-2) && x[0] == y[j]) return const_cast<unsigned char*>(&y[j]); in memmem()
|
D | mntent.cpp | 86 if (memcmp(token, opt, optLen) == 0 && in hasmntopt()
|
D | dl_iterate_phdr_static.cpp | 45 if (memcmp(ehdr->e_ident, ELFMAG, SELFMAG) != 0) { in dl_iterate_phdr()
|
/bionic/libc/arch-x86/ |
D | static_function_dispatch.S | 36 FUNCTION_DELEGATE(memcmp, memcmp_generic)
|
D | dynamic_function_dispatch.cpp | 36 DEFINE_IFUNC_FOR(memcmp) { in DEFINE_IFUNC_FOR() argument
|
/bionic/libc/malloc_debug/ |
D | GuardData.h | 50 bool Valid(void* data) { return memcmp(data, cmp_mem_.data(), cmp_mem_.size()) == 0; } in Valid()
|
D | MapData.cpp | 100 return memcmp(reinterpret_cast<void*>(addr), ELFMAG, SELFMAG) == 0; in valid_elf()
|
/bionic/libc/include/netinet/ |
D | in6.h | 92 (memcmp(&(a)->s6_addr[0], &(b)->s6_addr[0], sizeof(struct in6_addr)) == 0)
|
/bionic/tests/headers/posix/ |
D | string_h.c | 40 FUNCTION(memcmp, int (*f)(const void*, const void*, size_t)); in string_h()
|
/bionic/libc/arch-arm/generic/bionic/ |
D | memcmp.S | 44 ENTRY(memcmp) 343 END(memcmp)
|
/bionic/libc/malloc_debug/tests/ |
D | malloc_debug_unit_tests.cpp | 406 ASSERT_TRUE(memcmp(buffer.data(), &pointer[-buffer.size()], buffer.size()) == 0) in TEST_F() 415 ASSERT_TRUE(memcmp(buffer.data(), &pointer[-buffer.size()], buffer.size()) == 0) in TEST_F() 428 ASSERT_TRUE(memcmp(buffer.data(), &pointer[-buffer.size()], buffer.size()) == 0) in TEST_F() 437 ASSERT_TRUE(memcmp(buffer.data(), &pointer[-buffer.size()], buffer.size()) == 0) in TEST_F() 441 ASSERT_TRUE(memcmp(buffer.data(), &pointer[-buffer.size()], buffer.size()) == 0) in TEST_F() 503 ASSERT_TRUE(memcmp(buffer.data(), &pointer[100], buffer.size()) == 0) in TEST_F() 513 ASSERT_TRUE(memcmp(buffer.data(), &pointer[100], buffer.size()) == 0) in TEST_F() 528 ASSERT_TRUE(memcmp(buffer.data(), &pointer[100], buffer.size()) == 0) in TEST_F() 537 ASSERT_TRUE(memcmp(buffer.data(), &pointer[100], buffer.size()) == 0) in TEST_F() 541 ASSERT_TRUE(memcmp(buffer.data(), &pointer[200], buffer.size()) == 0) in TEST_F() [all …]
|
/bionic/libc/upstream-openbsd/lib/libc/string/ |
D | strstr.c | 119 if (memcmp(n, n+p, ms+1)) { in twoway_strstr()
|
/bionic/benchmarks/linker_relocation/gen/ |
D | liblinker_reloc_bench_010.S | 159 CALL(memcmp)
|
D | liblinker_reloc_bench_032.S | 200 CALL(memcmp)
|
/bionic/libc/upstream-netbsd/lib/libc/regex/ |
D | regexec.c | 163 #define EQ(a, b) (memcmp(a, b, (size_t)m->g->nstates) == 0) in __weak_alias()
|
/bionic/linker/ |
D | linker_phdr.cpp | 210 if (memcmp(header_.e_ident, ELFMAG, SELFMAG) != 0) { in VerifyElfHeader() 974 memcmp(mem_base + match_offset, file_base + match_offset, PAGE_SIZE) != 0) { in phdr_table_map_gnu_relro() 981 memcmp(mem_base + mismatch_offset, file_base + mismatch_offset, PAGE_SIZE) == 0) { in phdr_table_map_gnu_relro()
|
/bionic/libc/dns/net/ |
D | sethostent.c | 275 if (!memcmp(hp->h_addr_list[0], addr, (size_t)hp->h_length)) in _hf_gethtbyaddr()
|
/bionic/libc/include/ |
D | string.h | 52 int memcmp(const void* __lhs, const void* __rhs, size_t __n) __attribute_pure__;
|