Home
last modified time | relevance | path

Searched refs:memcmp (Results 1 – 25 of 133) sorted by relevance

123456

/bionic/tests/
Dstring_test.cpp270 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 …]
Dbionic_allocator_test.cpp97 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()
Dsys_random_test.cpp44 ASSERT_TRUE(memcmp(buf1, buf2, sizeof(buf1)) != 0); in TEST()
80 ASSERT_TRUE(memcmp(buf1, buf2, sizeof(buf1)) != 0); in TEST()
Dnetinet_in_test.cpp40 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()
Dsys_uio_test.cpp82 ASSERT_EQ(0, memcmp(src, dst, sizeof src)); in TEST()
101 ASSERT_EQ(0, memcmp(src, dst, sizeof src)); in TEST()
Dsystem_properties_test.cpp202 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/
Dlibc_assembler.md20 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/
Dmemmem.cpp55 if (!memcmp(x+2, y+j+2, m-2) && x[0] == y[j]) return const_cast<unsigned char*>(&y[j]); in memmem()
Dmntent.cpp86 if (memcmp(token, opt, optLen) == 0 && in hasmntopt()
Ddl_iterate_phdr_static.cpp45 if (memcmp(ehdr->e_ident, ELFMAG, SELFMAG) != 0) { in dl_iterate_phdr()
/bionic/libc/arch-x86/
Dstatic_function_dispatch.S36 FUNCTION_DELEGATE(memcmp, memcmp_generic)
Ddynamic_function_dispatch.cpp36 DEFINE_IFUNC_FOR(memcmp) { in DEFINE_IFUNC_FOR() argument
/bionic/libc/malloc_debug/
DGuardData.h50 bool Valid(void* data) { return memcmp(data, cmp_mem_.data(), cmp_mem_.size()) == 0; } in Valid()
DMapData.cpp100 return memcmp(reinterpret_cast<void*>(addr), ELFMAG, SELFMAG) == 0; in valid_elf()
/bionic/libc/include/netinet/
Din6.h92 (memcmp(&(a)->s6_addr[0], &(b)->s6_addr[0], sizeof(struct in6_addr)) == 0)
/bionic/tests/headers/posix/
Dstring_h.c40 FUNCTION(memcmp, int (*f)(const void*, const void*, size_t)); in string_h()
/bionic/libc/arch-arm/generic/bionic/
Dmemcmp.S44 ENTRY(memcmp)
343 END(memcmp)
/bionic/libc/malloc_debug/tests/
Dmalloc_debug_unit_tests.cpp406 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/
Dstrstr.c119 if (memcmp(n, n+p, ms+1)) { in twoway_strstr()
/bionic/benchmarks/linker_relocation/gen/
Dliblinker_reloc_bench_010.S159 CALL(memcmp)
Dliblinker_reloc_bench_032.S200 CALL(memcmp)
/bionic/libc/upstream-netbsd/lib/libc/regex/
Dregexec.c163 #define EQ(a, b) (memcmp(a, b, (size_t)m->g->nstates) == 0) in __weak_alias()
/bionic/linker/
Dlinker_phdr.cpp210 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/
Dsethostent.c275 if (!memcmp(hp->h_addr_list[0], addr, (size_t)hp->h_length)) in _hf_gethtbyaddr()
/bionic/libc/include/
Dstring.h52 int memcmp(const void* __lhs, const void* __rhs, size_t __n) __attribute_pure__;

123456