/external/llvm/test/Transforms/InstCombine/ |
D | memchr.ll | 1 ; Test that the memchr library call simplifier works correctly. 15 declare i8* @memchr(i8*, i32, i32) 20 ; CHECK-NOT: call i8* @memchr 24 %dst = call i8* @memchr(i8* %str, i32 119, i32 14) 32 ; CHECK-NOT: call i8* @memchr 36 %dst = call i8* @memchr(i8* %str, i32 119, i32 1) 44 ; CHECK-NOT: call i8* @memchr 48 %dst = call i8* @memchr(i8* %src, i32 0, i32 14) 55 ; CHECK: call i8* @memchr 56 ; CHECK-NOT: call i8* @memchr [all …]
|
D | strchr-1.ll | 47 ; CHECK: call i8* @memchr 85 ; CHECK-NEXT: %memchr.bounds = icmp ult i16 [[TRUNC]], 16 88 ; CHECK-NEXT: %memchr.bits = icmp ne i16 [[AND]], 0 89 ; CHECK-NEXT: %memchr1 = and i1 %memchr.bounds, %memchr.bits
|
/external/bison/m4/ |
D | memchr.m4 | 1 # memchr.m4 serial 12 16 dnl These days, we assume memchr is present. But if support for old 18 AC_CHECK_FUNCS_ONCE([memchr]) 25 # memchr should not dereference anything with length 0 27 # memchr should not dereference overestimated length after a match 30 # Assume that memchr works on platforms that lack mprotect. 31 AC_CACHE_CHECK([whether memchr works], [gl_cv_func_memchr_works], 67 if (memchr (fence, 0, 0)) 70 if (memchr (fence - 9, 0, 79) != fence - 1) 72 if (memchr (fence - 1, 0, 3) != fence - 1) [all …]
|
/external/bison/lib/ |
D | memchr.valgrind | 1 # Suppress a valgrind message about use of uninitialized memory in memchr(). 2 # POSIX states that when the character is found, memchr must not read extra 3 # bytes in an overestimated length (for example, where memchr is used to 6 memchr-value4 11 memchr-value8
|
D | memchr.c | 50 # undef memchr 54 # define __memchr memchr 171 weak_alias (__memchr, BP_SYM (memchr))
|
D | string.in.h | 95 # define memchr rpl_memchr macro 97 _GL_FUNCDECL_RPL (memchr, void *, (void const *__s, int __c, size_t __n) 100 _GL_CXXALIAS_RPL (memchr, void *, (void const *__s, int __c, size_t __n)); 103 _GL_FUNCDECL_SYS (memchr, void *, (void const *__s, int __c, size_t __n) 110 _GL_CXXALIAS_SYS_CAST2 (memchr, 116 _GL_CXXALIASWARN1 (memchr, void *, (void *__s, int __c, size_t __n)); 117 _GL_CXXALIASWARN1 (memchr, void const *, 120 _GL_CXXALIASWARN (memchr); 123 # undef memchr 125 _GL_WARN_ON_USE (memchr, "memchr has platform-specific bugs - "
|
D | strnlen1.c | 30 const char *end = (const char *) memchr (string, '\0', maxlen); in strnlen1()
|
D | strnlen.c | 28 const char *end = memchr (string, '\0', maxlen); in strnlen()
|
/external/llvm/test/CodeGen/SystemZ/ |
D | memchr-02.ll | 1 ; Test memchr using SRST, with the correct prototype. 5 declare i8 *@memchr(i8 *%src, i32 %char, i64 %len) 18 %res = call i8 *@memchr(i8 *%src, i32 %char, i64 %len) 34 %res1 = call i8 *@memchr(i8 *%src, i32 %charext, i64 %len) 35 %res2 = call i8 *@memchr(i8 *%res1, i32 %charext, i64 %len) 53 %res1 = call i8 *@memchr(i8 *%src, i32 %charext, i64 %len) 55 %res2 = call i8 *@memchr(i8 *%res1, i32 %charext, i64 %len)
|
D | memchr-01.ll | 1 ; Test memchr using SRST, with a weird but usable prototype. 5 declare i8 *@memchr(i8 *%src, i16 %char, i32 %len) 19 %res = call i8 *@memchr(i8 *%src, i16 %char, i32 %len)
|
/external/libcxx/include/ |
D | cstring | 39 const void* memchr(const void* s, int c, size_t n); 40 void* memchr( void* s, int c, size_t n); 82 using ::memchr; 101 inline _LIBCPP_INLINE_VISIBILITY void* memchr( void* __s, int __c, size_t __n) {return :…
|
/external/valgrind/none/tests/x86/ |
D | bug152818-x86.c | 83 const signed char * b_center = (signed char *) memchr(b_mem_buff, 0xaa, sizeof (b_mem_buff)); in main() 84 const signed char * w_center = (signed char *) memchr(w_mem_buff, 0xaa, sizeof (w_mem_buff)); in main() 85 const signed char * l_center = (signed char *) memchr(l_mem_buff, 0xaa, sizeof (l_mem_buff)); in main()
|
/external/clang/test/CodeGen/ |
D | pr9614.c | 21 extern inline __attribute__((__always_inline__, __gnu_inline__)) void *memchr(void *__s, int __c, _… in memchr() function 30 memchr("", '.', 0); in f()
|
/external/bison/linux-lib/ |
D | string.h | 407 # define memchr rpl_memchr 409 _GL_FUNCDECL_RPL (memchr, void *, (void const *__s, int __c, size_t __n) 412 _GL_CXXALIAS_RPL (memchr, void *, (void const *__s, int __c, size_t __n)); 415 _GL_FUNCDECL_SYS (memchr, void *, (void const *__s, int __c, size_t __n) 422 _GL_CXXALIAS_SYS_CAST2 (memchr, 428 _GL_CXXALIASWARN1 (memchr, void *, (void *__s, int __c, size_t __n)); 429 _GL_CXXALIASWARN1 (memchr, void const *, 432 _GL_CXXALIASWARN (memchr); 435 # undef memchr 437 _GL_WARN_ON_USE (memchr, "memchr has platform-specific bugs - "
|
/external/bison/darwin-lib/ |
D | string.h | 407 # define memchr rpl_memchr 409 _GL_FUNCDECL_RPL (memchr, void *, (void const *__s, int __c, size_t __n) 412 _GL_CXXALIAS_RPL (memchr, void *, (void const *__s, int __c, size_t __n)); 415 _GL_FUNCDECL_SYS (memchr, void *, (void const *__s, int __c, size_t __n) 422 _GL_CXXALIAS_SYS_CAST2 (memchr, 428 _GL_CXXALIASWARN1 (memchr, void *, (void *__s, int __c, size_t __n)); 429 _GL_CXXALIASWARN1 (memchr, void const *, 432 _GL_CXXALIASWARN (memchr); 435 # undef memchr 437 _GL_WARN_ON_USE (memchr, "memchr has platform-specific bugs - "
|
/external/elfutils/libebl/ |
D | eblobjnote.c | 95 const char *pname = memchr (provider, '\0', desc + descsz - provider); in ebl_object_note() 100 const char *args = memchr (pname, '\0', desc + descsz - pname); in ebl_object_note() 102 memchr (++args, '\0', desc + descsz - pname) != desc + descsz - 1) in ebl_object_note()
|
/external/boringssl/src/tool/ |
D | pkcs12.cc | 109 } while ((n > 0 && memchr(password, '\n', off) == NULL && in DoPKCS12() 113 char *newline = reinterpret_cast<char*>(memchr(password, '\n', off)); in DoPKCS12()
|
/external/valgrind/memcheck/tests/ |
D | str_tester.c | 990 check(memchr("abcd", 'z', 4) == NULL, 1); /* Not found. */ in test_memchr() 992 check(memchr(one, 'c', 4) == one+2, 2); /* Basic test. */ in test_memchr() 993 check(memchr(one, ~0xff|'c', 4) == one+2, 2); /* ignore highorder bits. */ in test_memchr() 994 check(memchr(one, 'd', 4) == one+3, 3); /* End of string. */ in test_memchr() 995 check(memchr(one, 'a', 4) == one, 4); /* Beginning. */ in test_memchr() 996 check(memchr(one, '\0', 5) == one+4, 5); /* Finding NUL. */ in test_memchr() 998 check(memchr(one, 'b', 5) == one+1, 6); /* Finding first. */ in test_memchr() 999 check(memchr(one, 'b', 0) == NULL, 7); /* Zero count. */ in test_memchr() 1000 check(memchr(one, 'a', 1) == one, 8); /* Singleton case. */ in test_memchr() 1002 check(memchr(one, 0203, 3) == one+1, 9); /* Unsignedness. */ in test_memchr() [all …]
|
/external/compiler-rt/test/asan/TestCases/Windows/ |
D | dll_intercept_memchr.cc | 11 memchr(buff, 'z', 7); in test_function()
|
/external/google-breakpad/src/common/ |
D | byte_cursor.h | 171 = static_cast<const uint8_t *>(memchr(here_, '\0', Available())); in CString() 199 = static_cast<const uint8_t *>(memchr(here_, '\0', limit)); in CString()
|
/external/llvm/test/CodeGen/X86/ |
D | reverse_branches.ll | 3 @.str2 = private unnamed_addr constant [7 x i8] c"memchr\00", align 1 34 %call = call i8* @memchr(i8* %arraydecay, i32 120, i64 1000) 101 declare i8* @memchr(i8*, i32, i64) nounwind readonly
|
/external/elfutils/libdwelf/ |
D | dwelf_dwarf_gnu_debugaltlink.c | 46 const void *ptr = memchr (data->d_buf, '\0', data->d_size); in dwelf_dwarf_gnu_debugaltlink()
|
/external/elfutils/libdw/ |
D | dwarf_getstring.c | 54 const char *endp = memchr (result, '\0', in dwarf_getstring()
|
/external/valgrind/memcheck/tests/linux/ |
D | stack_switch.c | 30 return memchr( buffer, 1, sizeof( buffer ) ) == NULL; in thread_main()
|
/external/webp/src/dsp/ |
D | cpu-features.c | 122 p = memchr(p, ':', bufend-p); in extract_cpuinfo_field() 128 q = memchr(p, '\n', bufend-p); in extract_cpuinfo_field()
|