Home
last modified time | relevance | path

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

12345678910>>...17

/external/rust/crates/memchr/
DREADME.md1 memchr chapter
3 The `memchr` crate provides heavily optimized routines for searching bytes.
5 …tus](https://github.com/BurntSushi/rust-memchr/workflows/ci/badge.svg)](https://github.com/BurntSu…
6 [![](http://meritbadge.herokuapp.com/memchr)](https://crates.io/crates/memchr)
13 [https://docs.rs/memchr](https://docs.rs/memchr)
18 The `memchr` function is traditionally provided by libc, but its
26 `memchr` that should perform competitively with the one found in GNU's libc.
32 `memchr3`, `memrchr2` and `memrchr3`. The difference between `memchr` and
38 memchr links to the standard library by default, but you can disable the
43 memchr = { version = "2", default-features = false }
[all …]
DCargo.toml.orig2 name = "memchr"
5 description = "Safe interface to memchr."
6 documentation = "https://docs.rs/memchr/"
7 homepage = "https://github.com/BurntSushi/rust-memchr"
8 repository = "https://github.com/BurntSushi/rust-memchr"
10 keywords = ["memchr", "char", "scan", "strchr", "string"]
15 name = "memchr"
21 # The 'std' feature permits the memchr crate to use the standard library. This
26 # The 'use_std' feature is DEPRECATED. It will be removed in memchr 3. Until
DMETADATA1 name: "memchr"
2 description: "Safe interface to memchr."
6 value: "https://crates.io/crates/memchr"
10 value: "https://static.crates.io/crates/memchr/memchr-2.3.4.crate"
DCargo.toml14 name = "memchr"
18 description = "Safe interface to memchr."
19 homepage = "https://github.com/BurntSushi/rust-memchr"
20 documentation = "https://docs.rs/memchr/"
22 keywords = ["memchr", "char", "scan", "strchr", "string"]
24 repository = "https://github.com/BurntSushi/rust-memchr"
29 name = "memchr"
/external/llvm-project/llvm/test/Transforms/InstCombine/
Dmemchr.ll2 ; Test that the memchr library call simplifier works correctly.
16 declare i8* @memchr(i8*, i32, i32)
24 %dst = call i8* @memchr(i8* %str, i32 119, i32 14)
35 %dst = call i8* @memchr(i8* %str, i32 119, i32 1)
46 %dst = call i8* @memchr(i8* %src, i32 0, i32 14)
53 ; CHECK-NEXT: [[DST:%.*]] = call i8* @memchr(i8* nonnull dereferenceable(14) getelementptr inbou…
58 %dst = call i8* @memchr(i8* %src, i32 %chr, i32 14)
69 %dst = call i8* @memchr(i8* %src, i32 65280, i32 14)
81 %dst = call i8* @memchr(i8* %src, i32 119, i32 100)
93 %dst = call i8* @memchr(i8* %src, i32 120, i32 100)
[all …]
/external/llvm/test/Transforms/InstCombine/
Dmemchr.ll2 ; Test that the memchr library call simplifier works correctly.
16 declare i8* @memchr(i8*, i32, i32)
24 %dst = call i8* @memchr(i8* %str, i32 119, i32 14)
35 %dst = call i8* @memchr(i8* %str, i32 119, i32 1)
46 %dst = call i8* @memchr(i8* %src, i32 0, i32 14)
53 ; CHECK-NEXT: [[DST:%.*]] = call i8* @memchr(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @…
58 %dst = call i8* @memchr(i8* %src, i32 %chr, i32 14)
69 %dst = call i8* @memchr(i8* %src, i32 65280, i32 14)
81 %dst = call i8* @memchr(i8* %src, i32 119, i32 100)
93 %dst = call i8* @memchr(i8* %src, i32 120, i32 100)
[all …]
Dstrchr-1.ll47 ; 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/llvm-project/llvm/test/CodeGen/SystemZ/
Dmemchr-01.ll1 ; 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)
Dmemchr-nobuiltin.ll1 ; Test that memchr won't be converted to SRST if calls are
6 declare i8 *@memchr(i8 *%src, i16 %char, i32 %len)
12 ; CHECK: brasl %r14, memchr
14 %res = call i8 *@memchr(i8 *%src, i16 %char, i32 %len) nobuiltin
/external/llvm/test/CodeGen/SystemZ/
Dmemchr-02.ll1 ; 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)
Dmemchr-nobuiltin.ll1 ; Test that memchr won't be converted to SRST if calls are
6 declare i8 *@memchr(i8 *%src, i16 %char, i32 %len)
12 ; CHECK: brasl %r14, memchr
14 %res = call i8 *@memchr(i8 *%src, i16 %char, i32 %len) nobuiltin
Dmemchr-01.ll1 ; 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/rust/crates/memchr/src/tests/
Dmemchr.rs3 use {memchr, memchr2, memchr3, memrchr, memrchr2, memrchr3};
10 test.one(false, memchr); in memchr1_find()
17 test.one(false, fallback::memchr); in memchr1_fallback_find()
93 memchr(n1, &corpus) == naive::memchr(n1, &corpus)
Dmiri.rs3 use crate::{memchr, memchr2, memchr3, memrchr, memrchr2, memrchr3};
7 assert_eq!(memchr(b'a', b"abcda"), Some(0)); in test_with_miri()
8 assert_eq!(memchr(b'z', b"abcda"), None); in test_with_miri()
/external/rust/crates/regex/src/
Dfind_byte.rs13 use memchr::memchr; in find_byte()
14 memchr(needle, haystack) in find_byte()
/external/libcxx/include/
Dstring.h95 void* __libcpp_memchr(const void* __s, int __c, size_t __n) {return (void*)memchr(__s, __c, __n);} in __libcpp_memchr()
97 const void* memchr(const void* __s, int __c, size_t __n) {return __libcpp_memchr(__s, __c, __n);} in memchr() function
99 void* memchr( void* __s, int __c, size_t __n) {return __libcpp_memchr(__s, __c, __n);} in memchr() function
/external/llvm-project/libcxx/include/
Dstring.h94 void* __libcpp_memchr(const void* __s, int __c, size_t __n) {return (void*)memchr(__s, __c, __n);} in __libcpp_memchr()
96 const void* memchr(const void* __s, int __c, size_t __n) {return __libcpp_memchr(__s, __c, __n);} in memchr() function
98 void* memchr( void* __s, int __c, size_t __n) {return __libcpp_memchr(__s, __c, __n);} in memchr() function
/external/llvm-project/llvm/test/CodeGen/AMDGPU/
Dmem-builtins.ll5 declare hidden i8 addrspace(1)* @memchr(i8 addrspace(1)* readonly nocapture, i32, i64) #1
23 …0:0: in function test_memchr void (i8 addrspace(1)*, i32, i64): unsupported call to function memchr
25 ; GCN: s_add_u32 s{{[0-9]+}}, s{{[0-9]+}}, memchr@rel32@lo+4
26 ; GCN: s_addc_u32 s{{[0-9]+}}, s{{[0-9]+}}, memchr@rel32@hi+12
28 %res = call i8 addrspace(1)* @memchr(i8 addrspace(1)* %src, i32 %char, i64 %len)
/external/llvm/test/Instrumentation/EfficiencySanitizer/
Dstr-nobuiltin.ll7 declare i8* @memchr(i8* %a, i32 %b, i64 %c)
15 ; CHECK: call{{.*}}@memchr{{.*}} #[[ATTR:[0-9]+]]
25 tail call i8* @memchr(i8* %a, i32 1, i64 12)
/external/llvm-project/llvm/test/Instrumentation/MemorySanitizer/
Dstr-nobuiltin.ll8 declare i8* @memchr(i8* %a, i32 %b, i64 %c)
16 ; CHECK: call{{.*}}@memchr{{.*}} #[[ATTR:[0-9]+]]
26 tail call i8* @memchr(i8* %a, i32 1, i64 12)
/external/llvm/test/Instrumentation/MemorySanitizer/
Dstr-nobuiltin.ll7 declare i8* @memchr(i8* %a, i32 %b, i64 %c)
15 ; CHECK: call{{.*}}@memchr{{.*}} #[[ATTR:[0-9]+]]
25 tail call i8* @memchr(i8* %a, i32 1, i64 12)
/external/llvm-project/libc/test/src/string/
Dmemchr_test.cpp16 return reinterpret_cast<const char *>(__llvm_libc::memchr(src, c, size)); in call_memchr()
83 __llvm_libc::memchr(src, 'd', size); in TEST()
86 __llvm_libc::memchr(src, 'z', size); in TEST()
/external/llvm/test/Instrumentation/ThreadSanitizer/
Dstr-nobuiltin.ll7 declare i8* @memchr(i8* %a, i32 %b, i64 %c)
15 ; CHECK: call{{.*}}@memchr{{.*}} #[[ATTR:[0-9]+]]
25 tail call i8* @memchr(i8* %a, i32 1, i64 12)
/external/llvm/test/Instrumentation/AddressSanitizer/
Dstr-nobuiltin.ll7 declare i8* @memchr(i8* %a, i32 %b, i64 %c)
15 ; CHECK: call{{.*}}@memchr{{.*}} #[[ATTR:[0-9]+]]
25 tail call i8* @memchr(i8* %a, i32 1, i64 12)
/external/llvm-project/llvm/test/Instrumentation/ThreadSanitizer/
Dstr-nobuiltin.ll7 declare i8* @memchr(i8* %a, i32 %b, i64 %c) nounwind
15 ; CHECK: call{{.*}}@memchr{{.*}} #[[ATTR:[0-9]+]]
25 tail call i8* @memchr(i8* %a, i32 1, i64 12)

12345678910>>...17