Home
last modified time | relevance | path

Searched refs:memchr (Results 1 – 25 of 40) sorted by relevance

12

/bionic/libc/upstream-openbsd/lib/libc/string/
Dmemchr.c37 memchr(const void *s, int c, size_t n) in memchr() function
49 DEF_STRONG(memchr);
Dstrstr.c134 const unsigned char *z2 = memchr(z, 0, grow); in twoway_strstr()
Dmemmem.c174 h = memchr(h0, *n, k); in memmem()
/bionic/libc/arch-riscv64/string/
Dmemchr.c31 #define memchr memchr_gc macro
/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dfgetln.c79 if ((p = memchr(fp->_p, '\n', fp->_r)) != NULL) { in fgetln()
122 if ((p = memchr(fp->_p, '\n', fp->_r)) == NULL) in fgetln()
Dgetdelim.c76 p = memchr(fp->_p, sep, fp->_r); in getdelim()
Dfvwrite.c175 nl = memchr(p, '\n', len); in __sfvwrite()
/bionic/libc/bionic/
Dstrnlen.cpp32 const char* p = static_cast<const char*>(memchr(s, 0, n)); in strnlen()
Dmalloc_heapprofd.cpp174 char* first_arg = static_cast<char*>(memchr(cmdline, '\0', rd)); in GetHeapprofdProgramProperty()
181 char* first_at = static_cast<char*>(memchr(cmdline, '@', rd)); in GetHeapprofdProgramProperty()
Dfortify.cpp128 return const_cast<void*>(memchr(s, c, n)); in __memchr_chk()
/bionic/libc/include/
Dstring.h45 void* _Nullable memchr(const void* _Nonnull __s, int __ch, size_t __n) __attribute_pure__;
196 return memchr(s, c, n); in __bionic_memchr()
200 const void* _Nullable memchr(const void* _Nonnull const s __pass_object_size, int c, size_t n) in memchr() function
206 void* _Nullable memchr(void* _Nonnull const s __pass_object_size, int c, size_t n) __prefer_this_ov… in memchr() function
/bionic/libc/arch-arm64/
Dstatic_function_dispatch.S36 FUNCTION_DELEGATE(memchr, __memchr_aarch64_mte)
Ddynamic_function_dispatch.cpp53 DEFINE_IFUNC_FOR(memchr) { in DEFINE_IFUNC_FOR() argument
/bionic/libc/arch-riscv64/
Dstatic_function_dispatch.S37 FUNCTION_DELEGATE(memchr, memchr_gc)
Ddynamic_function_dispatch.cpp57 DEFINE_IFUNC_FOR(memchr) { in DEFINE_IFUNC_FOR() argument
/bionic/benchmarks/linker_relocation/gen/
Dliblinker_reloc_bench_147.S63 CALL(memchr)
Dliblinker_reloc_bench_086.S474 CALL(memchr)
Dliblinker_reloc_bench_149.S636 CALL(memchr)
/bionic/tests/headers/posix/
Dstring_h.c39 FUNCTION(memchr, void* (*f)(const void*, int, size_t)); in string_h()
/bionic/tests/
Dstring_test.cpp790 TEST(STRING_TEST, memchr) { in TEST() argument
806 ASSERT_TRUE(memchr(state.ptr1, seek_char, state.len[i]) == expected); in TEST()
815 ASSERT_TRUE(nullptr == memchr(buffer, 5, 0)); in TEST()
816 ASSERT_TRUE(nullptr == memchr(buffer, 10, 0)); in TEST()
1393 ASSERT_EQ(nullptr, memchr(buf, search_value, len)); in DoMemchrTest()
1397 ASSERT_EQ(&buf[0], memchr(buf, search_value, len)); in DoMemchrTest()
1402 ASSERT_EQ(&buf[len - 1], memchr(buf, search_value, len)); in DoMemchrTest()
Dfortify_test.cpp208 ASSERT_FORTIFY(printf("%s", static_cast<const char*>(memchr(myfoo.a, 'a', asize)))); in TEST_F()
210 "%s", static_cast<const char*>(memchr(static_cast<const void*>(myfoo.a), 'a', asize)))); in TEST_F()
/bionic/libc/arch-x86/string/
Dsse2-memchr-atom.S90 ENTRY (memchr)
556 END (memchr)
/bionic/libc/include/bits/fortify/
Dstring.h142 void* _Nullable memchr(const void* _Nonnull const s __pass_object_size, int c, size_t n) __overload… in memchr() function
/bionic/libc/tools/
Dposix-2013.txt550 memchr
/bionic/libc/
DAndroid.bp585 "upstream-openbsd/lib/libc/string/memchr.c",
620 "upstream-openbsd/lib/libc/string/memchr.c",
1107 "arch-riscv64/string/memchr.c",
1150 "arch-x86/string/sse2-memchr-atom.S",

12