Home
last modified time | relevance | path

Searched defs:usize (Results 1 – 25 of 1555) sorted by relevance

12345678910>>...63

/external/rust/crates/arbitrary/src/
Dsize_hint.rs13 depth: usize, in recursion_guard()
14 f: impl FnOnce(usize) -> (usize, Option<usize>), in recursion_guard()
26 pub fn and(lhs: (usize, Option<usize>), rhs: (usize, Option<usize>)) -> (usize, Option<usize>) { in and()
37 pub fn and_all(hints: &[(usize, Option<usize>)]) -> (usize, Option<usize>) { in and_all()
44 pub fn or(lhs: (usize, Option<usize>), rhs: (usize, Option<usize>)) -> (usize, Option<usize>) { in or()
57 pub fn or_all(hints: &[(usize, Option<usize>)]) -> (usize, Option<usize>) { in or_all()
Dlib.rs277 fn size_hint(depth: usize) -> (usize, Option<usize>) { in size_hint()
289 fn size_hint(_depth: usize) -> (usize, Option<usize>) { in size_hint()
300 fn size_hint(depth: usize) -> (usize, Option<usize>) { in size_hint()
386 fn size_hint(depth: usize) -> (usize, Option<usize>) { in size_hint()
397 fn size_hint(depth: usize) -> (usize, Option<usize>) { in size_hint()
408 fn size_hint(depth: usize) -> (usize, Option<usize>) { in size_hint()
419 fn size_hint(depth: usize) -> (usize, Option<usize>) { in size_hint()
521 fn size_hint(depth: usize) -> (usize, Option<usize>) { in size_hint()
539 fn size_hint(depth: usize) -> (usize, Option<usize>) { in size_hint()
557 fn size_hint(depth: usize) -> (usize, Option<usize>) { in size_hint()
[all …]
/external/rust/crates/memchr/src/memchr/
Dmod.rs87 pub fn memchr(needle: u8, haystack: &[u8]) -> Option<usize> { in memchr()
90 fn imp(n1: u8, haystack: &[u8]) -> Option<usize> { in memchr()
96 fn imp(n1: u8, haystack: &[u8]) -> Option<usize> { in memchr()
106 fn imp(n1: u8, haystack: &[u8]) -> Option<usize> { in memchr()
116 fn imp(n1: u8, haystack: &[u8]) -> Option<usize> { in memchr()
151 pub fn memchr2(needle1: u8, needle2: u8, haystack: &[u8]) -> Option<usize> { in memchr2()
154 fn imp(n1: u8, n2: u8, haystack: &[u8]) -> Option<usize> { in memchr2()
160 fn imp(n1: u8, n2: u8, haystack: &[u8]) -> Option<usize> { in memchr2()
169 fn imp(n1: u8, n2: u8, haystack: &[u8]) -> Option<usize> { in memchr2()
209 ) -> Option<usize> { in memchr3()
[all …]
Dfallback.rs42 fn repeat_byte(b: u8) -> usize { in repeat_byte()
46 pub fn memchr(n1: u8, haystack: &[u8]) -> Option<usize> { in memchr()
60 let chunk = (ptr as *const usize).read_unaligned(); in memchr() constant
71 let a = *(ptr as *const usize); in memchr() constant
72 let b = *(ptr.add(USIZE_BYTES) as *const usize); in memchr() constant
85 pub fn memchr2(n1: u8, n2: u8, haystack: &[u8]) -> Option<usize> { in memchr2()
99 let chunk = (ptr as *const usize).read_unaligned(); in memchr2() constant
112 let chunk = *(ptr as *const usize); in memchr2() constant
125 pub fn memchr3(n1: u8, n2: u8, n3: u8, haystack: &[u8]) -> Option<usize> { in memchr3()
140 let chunk = (ptr as *const usize).read_unaligned(); in memchr3() constant
[all …]
Dnaive.rs3 pub fn memchr(n1: u8, haystack: &[u8]) -> Option<usize> { in memchr()
7 pub fn memchr2(n1: u8, n2: u8, haystack: &[u8]) -> Option<usize> { in memchr2()
11 pub fn memchr3(n1: u8, n2: u8, n3: u8, haystack: &[u8]) -> Option<usize> { in memchr3()
15 pub fn memrchr(n1: u8, haystack: &[u8]) -> Option<usize> { in memrchr()
19 pub fn memrchr2(n1: u8, n2: u8, haystack: &[u8]) -> Option<usize> { in memrchr2()
23 pub fn memrchr3(n1: u8, n2: u8, n3: u8, haystack: &[u8]) -> Option<usize> { in memrchr3()
/external/rust/crates/regex/src/
Dexec.rs387 fn slots_len(&self) -> usize { in slots_len()
391 fn next_after_empty(&self, text: &str, i: usize) -> usize { in next_after_empty()
396 fn shortest_match_at(&self, text: &str, start: usize) -> Option<usize> { in shortest_match_at()
406 fn find_at(&self, text: &str, start: usize) -> Option<(usize, usize)> { in find_at() argument
415 start: usize, in captures_read_at()
416 ) -> Option<(usize, usize)> { in captures_read_at() argument
427 fn slots_len(&self) -> usize { in slots_len()
431 fn next_after_empty(&self, _text: &[u8], i: usize) -> usize { in next_after_empty()
438 fn shortest_match_at(&self, text: &[u8], start: usize) -> Option<usize> { in shortest_match_at()
537 fn find_at(&self, text: &[u8], start: usize) -> Option<(usize, usize)> { in find_at() argument
[all …]
Dre_trait.rs22 pub fn pos(&self, i: usize) -> Option<(usize, usize)> { in pos() argument
41 pub fn len(&self) -> usize { in len()
66 fn next(&mut self) -> Option<Option<(usize, usize)>> { in next() argument
78 fn size_hint(&self) -> (usize, Option<usize>) { in size_hint()
83 fn count(self) -> usize { in count()
110 fn slots_len(&self) -> usize; in slots_len()
122 fn next_after_empty(&self, text: &Self::Text, i: usize) -> usize; in next_after_empty()
128 start: usize, in shortest_match_at()
129 ) -> Option<usize>; in shortest_match_at()
138 start: usize, in find_at()
[all …]
Dpikevm.rs95 start: usize, in exec()
96 end: usize, in exec()
122 end: usize, in exec_()
229 thread_caps: &mut [Option<usize>], in step()
230 ip: usize, in step()
274 thread_caps: &mut [Option<usize>], in add()
275 ip: usize, in add()
295 thread_caps: &mut [Option<usize>], in add_step()
296 mut ip: usize, in add_step()
347 fn resize(&mut self, num_insts: usize, ncaps: usize) { in resize()
[all …]
/external/rust/crates/unicode-width/src/
Dlib.rs78 fn width(self) -> Option<usize>; in width()
87 fn width_cjk(self) -> Option<usize>; in width_cjk()
92 fn width(self) -> Option<usize> { cw::width(self, false) } in width()
95 fn width_cjk(self) -> Option<usize> { cw::width(self, true) } in width_cjk()
108 fn width<'a>(&'a self) -> usize; in width()
118 fn width_cjk<'a>(&'a self) -> usize; in width_cjk()
123 fn width(&self) -> usize { in width()
128 fn width_cjk(&self) -> usize { in width_cjk()
/external/crosvm/base/src/sys/unix/
Dmmap.rs57 fn validate_includes_range(mmap_size: usize, offset: usize, range_size: usize) -> Result<()> { in validate_includes_range()
73 pub fn msync(&self, offset: usize, size: usize) -> Result<()> { in msync()
123 pub fn new_protection(size: usize, prot: Protection) -> Result<MemoryMapping> { in new_protection()
148 size: usize, in from_fd_offset()
164 size: usize, in from_fd_offset_flags()
185 size: usize, in from_fd_offset_protection()
200 size: usize, in from_fd_offset_protection_populate()
226 size: usize, in new_protection_fixed()
256 size: usize, in from_descriptor_offset_protection_fixed()
273 size: usize, in try_mmap()
[all …]
/external/rust/crates/regex/src/literal/
Dmod.rs31 pub fn find(&self, _: &[u8]) -> Option<(usize, usize)> { in find() argument
35 pub fn find_start(&self, _: &[u8]) -> Option<(usize, usize)> { in find_start() argument
39 pub fn find_end(&self, _: &[u8]) -> Option<(usize, usize)> { in find_end() argument
47 pub fn len(&self) -> usize { in len()
51 pub fn approximate_size(&self) -> usize { in approximate_size()
Dimp.rs79 pub fn find(&self, haystack: &[u8]) -> Option<(usize, usize)> { in find() argument
95 pub fn find_start(&self, haystack: &[u8]) -> Option<(usize, usize)> { in find_start() argument
108 pub fn find_end(&self, haystack: &[u8]) -> Option<(usize, usize)> { in find_end() argument
147 pub fn len(&self) -> usize { in len()
159 pub fn approximate_size(&self) -> usize { in approximate_size()
330 fn find(&self, text: &[u8]) -> Option<usize> { in find()
341 fn _find(&self, haystack: &[u8]) -> Option<usize> { in _find()
350 fn approximate_size(&self) -> usize { in approximate_size()
375 pub fn find(&self, haystack: &[u8]) -> Option<usize> { in find()
387 pub fn len(&self) -> usize { in len()
[all …]
/external/crosvm/win_audio/src/
Dlib.rs88 num_channels: usize, in new_playback_stream_and_get_shared_format()
90 frame_rate: usize, in new_playback_stream_and_get_shared_format()
91 buffer_size: usize, in new_playback_stream_and_get_shared_format()
96 _num_channels: usize, in new_async_playback_stream_and_get_shared_format()
98 _frame_rate: usize, in new_async_playback_stream_and_get_shared_format()
99 _buffer_size: usize, in new_async_playback_stream_and_get_shared_format()
119 num_channels: usize, in new_playback_stream_and_get_shared_format()
121 frame_rate: usize, in new_playback_stream_and_get_shared_format()
122 buffer_size: usize, in new_playback_stream_and_get_shared_format()
183 num_channels: usize, in new_async_playback_stream_and_get_shared_format()
[all …]
/external/rust/crates/tokio/src/util/
Dbit.rs31 pub(crate) const fn max_value(&self) -> usize { in max_value()
35 pub(crate) fn pack(&self, value: usize, base: usize) -> usize { in pack()
44 pub(crate) fn pack_lossy(&self, value: usize, base: usize) -> usize { in pack_lossy()
48 pub(crate) fn unpack(&self, src: usize) -> usize { in unpack()
69 pub(crate) const fn mask_for(n: u32) -> usize { in mask_for()
75 pub(crate) const fn unpack(src: usize, mask: usize, shift: u32) -> usize { in unpack()
/external/rust/crates/ring/src/aead/chacha/
Dfallback.rs26 src: RangeFrom<usize>, in ChaCha20_ctr32()
91 fn quarterround(x: &mut State, a: usize, b: usize, c: usize, d: usize) { in quarterround()
93 fn step(x: &mut State, a: usize, b: usize, c: usize, rotation: u32) { in quarterround()
/external/rust/crates/buddy_system_allocator/src/
Dframe.rs53 pub fn add_frame(&mut self, start: usize, end: usize) { in add_frame()
79 pub fn insert(&mut self, range: Range<usize>) { in insert()
85 pub fn alloc(&mut self, count: usize) -> Option<usize> { in alloc()
92 pub fn alloc_aligned(&mut self, layout: Layout) -> Option<usize> { in alloc_aligned()
99 fn alloc_power_of_two(&mut self, size: usize) -> Option<usize> { in alloc_power_of_two()
133 pub fn dealloc(&mut self, start_frame: usize, count: usize) { in dealloc()
141 pub fn dealloc_aligned(&mut self, start_frame: usize, layout: Layout) { in dealloc_aligned()
148 fn dealloc_power_of_two(&mut self, start_frame: usize, size: usize) { in dealloc_power_of_two()
/external/rust/crates/memchr/src/memmem/prefilter/
Dgenericsimd.rs50 ) -> Option<usize> { in find()
122 rare1i: usize, in find_in_chunk2()
123 rare2i: usize, in find_in_chunk2()
126 ) -> Option<usize> { in find_in_chunk2()
155 rare1i: usize, in find_in_chunk3()
156 rare2i: usize, in find_in_chunk3()
160 ) -> Option<usize> { in find_in_chunk3()
195 chunki: usize, in matched()
196 ) -> usize { in matched()
204 fn diff(a: *const u8, b: *const u8) -> usize { in diff()
/external/rust/crates/bstr/src/byteset/
Dscalar.rs21 fn repeat_byte(b: u8) -> usize { in repeat_byte()
25 pub fn inv_memchr(n1: u8, haystack: &[u8]) -> Option<usize> { in inv_memchr()
51 let a = *(ptr as *const usize); in inv_memchr() constant
52 let b = *(ptr.add(USIZE_BYTES) as *const usize); in inv_memchr() constant
65 pub fn inv_memrchr(n1: u8, haystack: &[u8]) -> Option<usize> { in inv_memrchr()
90 let a = *(ptr.sub(2 * USIZE_BYTES) as *const usize); in inv_memrchr() constant
91 let b = *(ptr.sub(1 * USIZE_BYTES) as *const usize); in inv_memrchr() constant
109 ) -> Option<usize> { in forward_search()
128 ) -> Option<usize> { in reverse_search()
141 unsafe fn read_unaligned_usize(ptr: *const u8) -> usize { in read_unaligned_usize()
[all …]
/external/crosvm/fuse/src/
Dserver.rs60 fn write_at<F>(&mut self, offset: usize, f: F) -> io::Result<usize> in write_at()
62 F: Fn(&mut Self::ClosureWriter) -> io::Result<usize>; in write_at()
71 fn write_at<F>(&mut self, offset: usize, f: F) -> io::Result<usize> in write_at()
73 F: Fn(&mut Self::ClosureWriter) -> io::Result<usize>, in write_at()
103 size: usize, in map()
122 size: usize, in map()
149 ) -> Result<usize> { in handle_message()
219 fn lookup<R: Reader, W: Writer>(&self, in_header: InHeader, mut r: R, w: W) -> Result<usize> { in lookup()
243 fn forget<R: Reader>(&self, in_header: InHeader, mut r: R) -> Result<usize> { in forget()
253 fn getattr<R: Reader, W: Writer>(&self, in_header: InHeader, mut r: R, w: W) -> Result<usize> { in getattr()
[all …]
/external/rust/crates/parking_lot/src/
Delision.rs43 fn elision_compare_exchange_acquire(&self, _: usize, _: usize) -> Result<usize, usize> { in elision_compare_exchange_acquire() argument
48 fn elision_fetch_sub_release(&self, _: usize) -> usize { in elision_fetch_sub_release()
58 fn elision_compare_exchange_acquire(&self, current: usize, new: usize) -> Result<usize, usize> { in elision_compare_exchange_acquire() argument
89 fn elision_fetch_sub_release(&self, val: usize) -> usize { in elision_fetch_sub_release()
/external/rust/crates/base64/benches/
Dbenchmarks.rs13 fn do_decode_bench(b: &mut Bencher, &size: &usize) { in do_decode_bench()
24 fn do_decode_bench_reuse_buf(b: &mut Bencher, &size: &usize) { in do_decode_bench_reuse_buf()
37 fn do_decode_bench_slice(b: &mut Bencher, &size: &usize) { in do_decode_bench_slice()
50 fn do_decode_bench_stream(b: &mut Bencher, &size: &usize) { in do_decode_bench_stream()
68 fn do_encode_bench(b: &mut Bencher, &size: &usize) { in do_encode_bench()
77 fn do_encode_bench_display(b: &mut Bencher, &size: &usize) { in do_encode_bench_display()
86 fn do_encode_bench_reuse_buf(b: &mut Bencher, &size: &usize) { in do_encode_bench_reuse_buf()
96 fn do_encode_bench_slice(b: &mut Bencher, &size: &usize) { in do_encode_bench_slice()
105 fn do_encode_bench_stream(b: &mut Bencher, &size: &usize) { in do_encode_bench_stream()
119 fn do_encode_bench_string_stream(b: &mut Bencher, &size: &usize) { in do_encode_bench_string_stream()
[all …]
/external/rust/crates/memchr/src/memmem/
Drarebytes.rs100 pub(crate) fn as_rare_ordered_usize(&self) -> (usize, usize) { in as_rare_ordered_usize()
119 pub(crate) fn as_rare_usize(&self) -> (usize, usize) { in as_rare_usize()
126 pub(crate) fn as_ranks(&self, needle: &[u8]) -> (usize, usize) { in as_ranks()
134 fn rank(b: u8) -> usize { in rank()
/external/rust/crates/aho-corasick/src/
Dstate_id.rs14 alphabet_len: usize, in premultiply_overflow_error()
57 impl Sealed for usize {} implementation
98 fn to_usize(self) -> usize; in to_usize()
107 impl StateID for usize { implementation
109 fn from_usize(n: usize) -> usize { in from_usize()
114 fn to_usize(self) -> usize { in to_usize()
131 fn to_usize(self) -> usize { in to_usize()
148 fn to_usize(self) -> usize { in to_usize()
166 fn to_usize(self) -> usize { in to_usize()
184 fn to_usize(self) -> usize { in to_usize()
Dautomaton.rs141 match_index: usize, in get_match()
142 end: usize, in get_match()
149 fn match_count(&self, id: Self::ID) -> usize; in match_count()
189 at: usize, in standard_find_at()
214 mut at: usize, in standard_find_at_imp()
274 at: usize, in leftmost_find_at()
299 mut at: usize, in leftmost_find_at_imp()
375 at: usize, in leftmost_find_at_no_state()
398 mut at: usize, in leftmost_find_at_no_state_imp()
479 at: usize, in overlapping_find_at()
[all …]
/external/crosvm/third_party/vmm_vhost/src/
Dbackend.rs134 fn set_vring_num(&self, queue_index: usize, num: u16) -> Result<()>; in set_vring_num()
141 fn set_vring_addr(&self, queue_index: usize, config_data: &VringConfigData) -> Result<()>; in set_vring_addr()
148 fn set_vring_base(&self, queue_index: usize, base: u16) -> Result<()>; in set_vring_base()
158 fn set_vring_call(&self, queue_index: usize, event: &Event) -> Result<()>; in set_vring_call()
166 fn set_vring_kick(&self, queue_index: usize, event: &Event) -> Result<()>; in set_vring_kick()
173 fn set_vring_err(&self, queue_index: usize, event: &Event) -> Result<()>; in set_vring_err()
220 fn set_vring_num(&mut self, queue_index: usize, num: u16) -> Result<()>; in set_vring_num()
227 fn set_vring_addr(&mut self, queue_index: usize, config_data: &VringConfigData) -> Result<()>; in set_vring_addr()
234 fn set_vring_base(&mut self, queue_index: usize, base: u16) -> Result<()>; in set_vring_base()
244 fn set_vring_call(&mut self, queue_index: usize, event: &Event) -> Result<()>; in set_vring_call()
[all …]

12345678910>>...63