/bionic/libc/upstream-netbsd/lib/libc/regex/ |
H A D | engine.c | 216 memcmp(dp, g->must, g->mlen) == 0) 684 if (memcmp(sp, ssp, len) != 0)
|
H A D | regexec.c | 163 #define EQ(a, b) (memcmp(a, b, (size_t)m->g->nstates) == 0)
|
/bionic/linker/ |
H A D | linker_allocator.cpp | 285 if (memcmp(info->signature, kSignature, sizeof(kSignature)) != 0) {
|
H A D | linker_phdr.cpp | 215 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 D | linker_memory_allocator_test.cpp | 97 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 D | string_h.c | 40 FUNCTION(memcmp, int (*f)(const void*, const void*, size_t));
|
/bionic/tests/ |
H A D | link_test.cpp | 58 ASSERT_EQ(0, memcmp(ehdr, ELFMAG, SELFMAG));
|
H A D | netdb_test.cpp | 110 ASSERT_EQ(0, memcmp(&addr->sin6_addr, &in6addr_loopback, sizeof(in6_addr)));
|
H A D | netinet_in_test.cpp | 40 ASSERT_EQ(0, memcmp(&any, &in6addr_any, sizeof(in6addr_any))); 45 ASSERT_EQ(0, memcmp(&loopback, &in6addr_loopback, sizeof(in6addr_loopback)));
|
H A D | pthread_test.cpp | 831 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 D | stdio_test.cpp | 2016 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 D | string_test.cpp | 270 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 D | sys_random_test.cpp | 44 ASSERT_TRUE(memcmp(buf1, buf2, sizeof(buf1)) != 0); 80 ASSERT_TRUE(memcmp(buf1, buf2, sizeof(buf1)) != 0);
|
H A D | sys_uio_test.cpp | 82 ASSERT_EQ(0, memcmp(src, dst, sizeof src)); 101 ASSERT_EQ(0, memcmp(src, dst, sizeof src));
|
H A D | system_properties_test.cpp | 202 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 D | elf_file.cc | 785 CHECK(!memcmp(&unpacked[0],
|
H A D | elf_file_unittest.cc | 96 EXPECT_EQ(0, memcmp(first_buffer, second_buffer, first_read));
|
/bionic/benchmarks/ |
H A D | string_benchmark.cpp | 36 c += memcmp(dst_aligned, src_aligned, nbytes);
|
/bionic/libc/arch-arm/generic/bionic/ |
H A D | memcmp.S | 39 * Optimized memcmp() for Cortex-A9. 44 ENTRY(memcmp) function 343 END(memcmp)
|
/bionic/libc/arch-arm64/generic/bionic/ |
H A D | memcmp.S | 58 ENTRY(memcmp) function 129 END(memcmp)
|
/bionic/libc/arch-mips/string/ |
H A D | memcmp.c | 312 int memcmp (const void *a, const void *b, size_t len) function
|
/bionic/libc/arch-x86/atom/string/ |
H A D | ssse3-memcmp-atom.S | 79 # define MEMCMP memcmp 102 memcmp has to use UNSIGNED comparison for elemnts.
|
/bionic/libc/arch-x86/generic/string/ |
H A D | memcmp.S | 1 /* $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 D | sse4-memcmp-slm.S | 79 # define MEMCMP memcmp 130 memcmp has to use UNSIGNED comparison for elemnts.
|
/bionic/libc/arch-x86_64/string/ |
H A D | sse4-memcmp-slm.S | 34 # define MEMCMP memcmp
|