Searched refs:memcmp (Results 1 - 25 of 38) sorted by last modified time

12

/bionic/libc/upstream-netbsd/lib/libc/regex/
H A Dengine.c216 memcmp(dp, g->must, g->mlen) == 0)
684 if (memcmp(sp, ssp, len) != 0)
H A Dregexec.c163 #define EQ(a, b) (memcmp(a, b, (size_t)m->g->nstates) == 0)
/bionic/linker/
H A Dlinker_allocator.cpp285 if (memcmp(info->signature, kSignature, sizeof(kSignature)) != 0) {
H A Dlinker_phdr.cpp215 if (memcmp(header_.e_ident, ELFMAG, SELFMAG) != 0) {
953 memcmp(mem_base + match_offset, file_base + match_offset, PAGE_SIZE) != 0) {
960 memcmp(mem_base + mismatch_offset, file_base + mismatch_offset, PAGE_SIZE) == 0) {
185 CHECK(index < strtab_size_); return strtab_ + index; } bool ElfReader::ReadElfHeader() { ssize_t rc = TEMP_FAILURE_RETRY(pread64(fd_, &header_, sizeof(header_), file_offset_)); if (rc < 0) { DL_ERR(�, name_.c_str(), strerror(errno)); return false; } if (rc != sizeof(header_)) { DL_ERR(�, name_.c_str(), static_cast<size_t>(rc)); return false; } return true; } static const char* EM_to_string(int em) { if (em == EM_386) return �; if (em == EM_AARCH64) return �; if (em == EM_ARM) return �; if (em == EM_MIPS) return �; if (em == EM_X86_64) return �; return �; } bool ElfReader::VerifyElfHeader() { if (memcmp(header_.e_ident, ELFMAG, SELFMAG) != 0) { DL_ERR(�, name_.c_str()); return false; } int elf_class = header_.e_ident[EI_CLASS]; if (elf_class != ELFCLASS64) { if (elf_class == ELFCLASS32) { DL_ERR(�, name_.c_str()); } else { DL_ERR(�, name_.c_str(), elf_class); } return false; } if (header_.e_ident[EI_DATA] != ELFDATA2LSB) { DL_ERR(�, name_.c_str(), header_.e_ident[EI_DATA]); return false; } if (header_.e_type != ET_DYN) { DL_ERR(�, name_.c_str(), header_.e_type); return false; } if (header_.e_version != EV_CURRENT) { DL_ERR(�, name_.c_str(), header_.e_version); return false; } if (header_.e_machine != GetTargetElfMachine()) { DL_ERR(�, name_.c_str(), header_.e_machine, EM_to_string(header_.e_machine)); return false; } if (header_.e_shentsize != sizeof(ElfW(Shdr))) { if (get_application_target_sdk_version() >= __ANDROID_API_O__) { DL_ERR_AND_LOG(�, name_.c_str(), header_.e_shentsize, sizeof(ElfW(Shdr))); return false; } DL_WARN_documented_change(__ANDROID_API_O__, �, �, name_.c_str(), header_.e_shentsize, sizeof(ElfW(Shdr))); add_dlwarning(name_.c_str(), �); } if (header_.e_shstrndx == 0) { if (get_application_target_sdk_version() >= __ANDROID_API_O__) argument
/bionic/linker/tests/
H A Dlinker_memory_allocator_test.cpp97 ASSERT_TRUE(memcmp(reallocated_ptr, model, array_size) == 0);
113 ASSERT_TRUE(memcmp(reallocated_ptr, model, array_size * 2) == 0);
125 ASSERT_TRUE(memcmp(reallocated_ptr, model, 4000) == 0);
147 ASSERT_TRUE(memcmp(ptr1, zeros, 16) == 0);
/bionic/tests/headers/posix/
H A Dstring_h.c40 FUNCTION(memcmp, int (*f)(const void*, const void*, size_t));
/bionic/tests/
H A Dlink_test.cpp58 ASSERT_EQ(0, memcmp(ehdr, ELFMAG, SELFMAG));
H A Dnetdb_test.cpp110 ASSERT_EQ(0, memcmp(&addr->sin6_addr, &in6addr_loopback, sizeof(in6_addr)));
H A Dnetinet_in_test.cpp40 ASSERT_EQ(0, memcmp(&any, &in6addr_any, sizeof(in6addr_any)));
45 ASSERT_EQ(0, memcmp(&loopback, &in6addr_loopback, sizeof(in6addr_loopback)));
H A Dpthread_test.cpp831 ASSERT_EQ(0, memcmp(&lock1, &lock2, sizeof(lock1)));
1911 ASSERT_EQ(0, memcmp(&lock_normal, &m1.lock, sizeof(pthread_mutex_t)));
1916 ASSERT_EQ(0, memcmp(&lock_errorcheck, &m2.lock, sizeof(pthread_mutex_t)));
1921 ASSERT_EQ(0, memcmp(&lock_recursive, &m3.lock, sizeof(pthread_mutex_t)));
H A Dstdio_test.cpp2016 ASSERT_EQ(memcmp(file_data, buffer, 100), 0);
2022 ASSERT_EQ(memcmp(file_data+cur_location, buffer, 8192), 0);
2028 ASSERT_EQ(memcmp(file_data+cur_location, buffer, 22), 0);
H A Dstring_test.cpp270 EXPECT_TRUE(memcmp(state.ptr, state.ptr2, 2 * state.MAX_LEN) == 0);
527 ASSERT_FALSE((memcmp(state.ptr1, state.ptr, state.MAX_LEN)) != 0 ||
528 (memcmp(state.ptr2, state.ptr + state.MAX_LEN, state.MAX_LEN) != 0));
551 ASSERT_FALSE((memcmp(state.ptr1, state.ptr, state.MAX_LEN)) != 0 ||
552 (memcmp(state.ptr2, state.ptr + state.MAX_LEN, state.MAX_LEN) != 0));
577 ASSERT_TRUE(memcmp(state.ptr, state.ptr2, state.MAX_LEN + state.len[i]) == 0);
609 ASSERT_FALSE((memcmp(state.ptr1, state.ptr, state.MAX_LEN) != 0) ||
610 (memcmp(state.ptr2, state.ptr + state.MAX_LEN, state.MAX_LEN) != 0));
636 ASSERT_EQ(memcmp(state.ptr, state.ptr2, 2 * state.MAX_LEN), 0);
705 ASSERT_EQ(0, memcmp(stat
[all...]
H A Dsys_random_test.cpp44 ASSERT_TRUE(memcmp(buf1, buf2, sizeof(buf1)) != 0);
80 ASSERT_TRUE(memcmp(buf1, buf2, sizeof(buf1)) != 0);
H A Dsys_uio_test.cpp82 ASSERT_EQ(0, memcmp(src, dst, sizeof src));
101 ASSERT_EQ(0, memcmp(src, dst, sizeof src));
H A Dsystem_properties_test.cpp202 ASSERT_EQ(0, memcmp(prop_value, prop_value_ret, PROP_VALUE_MAX));
293 ASSERT_EQ(0, memcmp(prop_value, prop_value_ret, PROP_VALUE_MAX));
/bionic/tools/relocation_packer/src/
H A Delf_file.cc785 CHECK(!memcmp(&unpacked[0],
H A Delf_file_unittest.cc96 EXPECT_EQ(0, memcmp(first_buffer, second_buffer, first_read));
/bionic/benchmarks/
H A Dstring_benchmark.cpp36 c += memcmp(dst_aligned, src_aligned, nbytes);
/bionic/libc/arch-arm/generic/bionic/
H A Dmemcmp.S39 * Optimized memcmp() for Cortex-A9.
44 ENTRY(memcmp) function
343 END(memcmp)
/bionic/libc/arch-arm64/generic/bionic/
H A Dmemcmp.S58 ENTRY(memcmp) function
129 END(memcmp)
/bionic/libc/arch-mips/string/
H A Dmemcmp.c312 int memcmp (const void *a, const void *b, size_t len) function
/bionic/libc/arch-x86/atom/string/
H A Dssse3-memcmp-atom.S79 # define MEMCMP memcmp
102 memcmp has to use UNSIGNED comparison for elemnts.
/bionic/libc/arch-x86/generic/string/
H A Dmemcmp.S1 /* $OpenBSD: memcmp.S,v 1.4 2005/08/07 11:30:38 espie Exp $ */
9 ENTRY(memcmp) function
44 END(memcmp)
/bionic/libc/arch-x86/silvermont/string/
H A Dsse4-memcmp-slm.S79 # define MEMCMP memcmp
130 memcmp has to use UNSIGNED comparison for elemnts.
/bionic/libc/arch-x86_64/string/
H A Dsse4-memcmp-slm.S34 # define MEMCMP memcmp

Completed in 297 milliseconds

12