Home
last modified time | relevance | path

Searched refs:get_unchecked (Results 1 – 25 of 38) sorted by relevance

12

/external/rust/crates/ryu/src/pretty/
Dmantissa.rs18 ptr::copy_nonoverlapping(DIGIT_TABLE.get_unchecked(c0 as usize), result.offset(-2), 2); in write_mantissa_long()
19 ptr::copy_nonoverlapping(DIGIT_TABLE.get_unchecked(c1 as usize), result.offset(-4), 2); in write_mantissa_long()
20 ptr::copy_nonoverlapping(DIGIT_TABLE.get_unchecked(d0 as usize), result.offset(-6), 2); in write_mantissa_long()
21 ptr::copy_nonoverlapping(DIGIT_TABLE.get_unchecked(d1 as usize), result.offset(-8), 2); in write_mantissa_long()
34 ptr::copy_nonoverlapping(DIGIT_TABLE.get_unchecked(c0 as usize), result.offset(-2), 2); in write_mantissa()
35 ptr::copy_nonoverlapping(DIGIT_TABLE.get_unchecked(c1 as usize), result.offset(-4), 2); in write_mantissa()
41 ptr::copy_nonoverlapping(DIGIT_TABLE.get_unchecked(c as usize), result.offset(-2), 2); in write_mantissa()
46 ptr::copy_nonoverlapping(DIGIT_TABLE.get_unchecked(c as usize), result.offset(-2), 2); in write_mantissa()
Dexponent.rs17 let d = DIGIT_TABLE.get_unchecked(k as usize * 2); in write_exponent3()
21 let d = DIGIT_TABLE.get_unchecked(k as usize * 2); in write_exponent3()
41 let d = DIGIT_TABLE.get_unchecked(k as usize * 2); in write_exponent2()
/external/rust/crates/itertools/benches/extra/
Dzipslices.rs84 self.t.get_unchecked(i), in next()
85 self.u.get_unchecked(i))) in next()
110 self.t.get_unchecked(i), in next_back()
111 self.u.get_unchecked(i))) in next_back()
132 unsafe fn get_unchecked(&mut self, i: usize) -> Self::Item { in get_unchecked() function
133 (self.t.get_unchecked(i), in get_unchecked()
134 self.u.get_unchecked(i)) in get_unchecked()
149 unsafe fn get_unchecked(&mut self, i: usize) -> Self::Item; in get_unchecked() method
157 unsafe fn get_unchecked(&mut self, i: usize) -> &'a T { in get_unchecked() method
159 (**self).get_unchecked(i) in get_unchecked()
[all …]
/external/rust/crates/ryu/src/
Dd2s_small_table.rs106 let mul = *DOUBLE_POW5_SPLIT2.get_unchecked(base as usize); in compute_pow5()
111 let m = *DOUBLE_POW5_TABLE.get_unchecked(offset as usize); in compute_pow5()
118 + ((*POW5_OFFSETS.get_unchecked((i / 16) as usize) >> ((i % 16) << 1)) & 3) as u128; in compute_pow5()
130 let mul = *DOUBLE_POW5_INV_SPLIT2.get_unchecked(base as usize); // 1/5^base2 in compute_inv_pow5()
135 let m = *DOUBLE_POW5_TABLE.get_unchecked(offset as usize); // 5^offset in compute_inv_pow5()
142 + ((*POW5_INV_OFFSETS.get_unchecked((i / 16) as usize) >> ((i % 16) << 1)) & 3) as u128; in compute_inv_pow5()
154 let mul = *DOUBLE_POW5_SPLIT2.get_unchecked(base as usize); in compute_pow5()
159 let m = *DOUBLE_POW5_TABLE.get_unchecked(offset as usize); in compute_pow5()
171 + ((*POW5_OFFSETS.get_unchecked((i / 16) as usize) >> ((i % 16) << 1)) & 3) as u64, in compute_pow5()
184 let mul = *DOUBLE_POW5_INV_SPLIT2.get_unchecked(base as usize); // 1/5^base2 in compute_inv_pow5()
[all …]
Ds2d.rs31 if unsafe { *buffer.get_unchecked(0) } == b'-' { in s2d()
144 unsafe { d2s::DOUBLE_POW5_SPLIT.get_unchecked(e10 as usize) }, in s2d()
169 unsafe { d2s::DOUBLE_POW5_INV_SPLIT.get_unchecked(-e10 as usize) }, in s2d()
Df2s_intrinsics.rs93 d2s::DOUBLE_POW5_INV_SPLIT.get_unchecked(q as usize).1 + 1, in mul_pow5_inv_div_pow2()
111 unsafe { mul_shift_32(m, d2s::DOUBLE_POW5_SPLIT.get_unchecked(i as usize).1, j) } in mul_pow5_div_pow2()
Dd2s.rs147 DOUBLE_POW5_INV_SPLIT.get_unchecked(q as usize) in d2d()
206 DOUBLE_POW5_SPLIT.get_unchecked(i as usize) in d2d()
/external/rust/crates/rayon/src/slice/
Dquicksort.rs62 if len >= 2 && is_less(v.get_unchecked(1), v.get_unchecked(0)) { in shift_head()
67 value: Some(ptr::read(v.get_unchecked(0))), in shift_head()
73 ptr::copy_nonoverlapping(v.get_unchecked(1), v.get_unchecked_mut(0), 1); in shift_head()
76 if !is_less(v.get_unchecked(i), tmp.value.as_ref().unwrap()) { in shift_head()
81 ptr::copy_nonoverlapping(v.get_unchecked(i), v.get_unchecked_mut(i - 1), 1); in shift_head()
97 if len >= 2 && is_less(v.get_unchecked(len - 1), v.get_unchecked(len - 2)) { in shift_tail()
102 value: Some(ptr::read(v.get_unchecked(len - 1))), in shift_tail()
108 ptr::copy_nonoverlapping(v.get_unchecked(len - 2), v.get_unchecked_mut(len - 1), 1); in shift_tail()
111 if !is_less(&tmp.value.as_ref().unwrap(), v.get_unchecked(i)) { in shift_tail()
116 ptr::copy_nonoverlapping(v.get_unchecked(i), v.get_unchecked_mut(i + 1), 1); in shift_tail()
[all …]
Dmergesort.rs325 if is_less(v.get_unchecked(start + 1), v.get_unchecked(start)) { in mergesort()
326 while start > 0 && is_less(v.get_unchecked(start), v.get_unchecked(start - 1)) { in mergesort()
337 while start > 0 && !is_less(v.get_unchecked(start), v.get_unchecked(start - 1)) { in mergesort()
/external/rust/crates/tokio/src/sync/
Donce_cell.rs125 unsafe fn get_unchecked(&self) -> &T { in get_unchecked() method
148 Some(unsafe { self.get_unchecked() }) in get()
222 unsafe { self.get_unchecked() } in get_or_init()
241 unsafe { self.get_unchecked() } in get_or_init()
250 unsafe { self.get_unchecked() } in get_or_init()
278 unsafe { Ok(self.get_unchecked()) } in get_or_try_init()
299 unsafe { Ok(self.get_unchecked()) } in get_or_try_init()
311 unsafe { Ok(self.get_unchecked()) } in get_or_try_init()
/external/rust/crates/criterion/src/stats/univariate/
Dpercentiles.rs33 let &floor = self.0.get_unchecked(n); in at_unchecked()
34 let &ceiling = self.0.get_unchecked(n + 1); in at_unchecked()
/external/rust/crates/itertools/benches/
Dbench1.rs310 let x = *xs.get_unchecked(i); in zip_unchecked_counted_loop()
311 let y = *ys.get_unchecked(i); in zip_unchecked_counted_loop()
332 let x = *xs.get_unchecked(i); in zipdot_i32_unchecked_counted_loop()
333 let y = *ys.get_unchecked(i); in zipdot_i32_unchecked_counted_loop()
354 let x = *xs.get_unchecked(i); in zipdot_f32_unchecked_counted_loop()
355 let y = *ys.get_unchecked(i); in zipdot_f32_unchecked_counted_loop()
377 let x = *xs.get_unchecked(i); in zip_unchecked_counted_loop3()
378 let y = *ys.get_unchecked(i); in zip_unchecked_counted_loop3()
379 let z = *zs.get_unchecked(i); in zip_unchecked_counted_loop3()
/external/rust/crates/aho-corasick/src/packed/
Dvector.rs141 let ptr = slice.get_unchecked(at..).as_ptr(); in loadu128()
155 let ptr = slice.get_unchecked(at..).as_ptr(); in loadu256()
Dpattern.rs170 pub unsafe fn get_unchecked(&self, id: PatternID) -> Pattern { in get_unchecked() method
171 Pattern(self.by_id.get_unchecked(id as usize)) in get_unchecked()
/external/rust/crates/criterion/src/stats/bivariate/
Dmod.rs126 unsafe { Some((self.data.0.get_unchecked(i), self.data.1.get_unchecked(i))) } in next()
/external/rust/crates/crossbeam-deque/src/
Ddeque.rs1128 let slot = (*this).slots.get_unchecked(i); in destroy()
1272 let slot = (*block).slots.get_unchecked(offset); in push()
1364 let slot = (*block).slots.get_unchecked(offset); in steal()
1487 let slot = (*block).slots.get_unchecked(offset + i); in steal_batch()
1499 let slot = (*block).slots.get_unchecked(offset + i); in steal_batch()
1525 let slot = (*block).slots.get_unchecked(i); in steal_batch()
1641 let slot = (*block).slots.get_unchecked(offset); in steal_batch_and_pop()
1650 let slot = (*block).slots.get_unchecked(offset + i + 1); in steal_batch_and_pop()
1663 let slot = (*block).slots.get_unchecked(offset + i + 1); in steal_batch_and_pop()
1689 let slot = (*block).slots.get_unchecked(i); in steal_batch_and_pop()
[all …]
/external/rust/crates/once_cell/src/
Dlib.rs758 Some(unsafe { self.get_unchecked() }) in get()
778 pub unsafe fn get_unchecked(&self) -> &T { in get_unchecked() method
779 self.0.get_unchecked() in get_unchecked()
889 Ok(unsafe { self.get_unchecked() }) in get_or_try_init()
Dimp_pl.rs88 pub(crate) unsafe fn get_unchecked(&self) -> &T { in get_unchecked() method
/external/rust/crates/regex-automata/src/
Dclasses.rs60 pub unsafe fn get_unchecked(&self, byte: u8) -> u8 { in get_unchecked() method
61 *self.0.get_unchecked(byte as usize) in get_unchecked()
/external/rust/crates/crossbeam-channel/src/flavors/
Dlist.rs101 let slot = (*this).slots.get_unchecked(i); in destroy()
288 let slot = (*block).slots.get_unchecked(offset); in write()
392 let slot = (*block).slots.get_unchecked(offset); in read()
578 let slot = (*block).slots.get_unchecked(offset); in drop()
/external/rust/crates/protobuf/src/
Dbuf_read_iter.rs179 .get_unchecked(self.pos_within_buf..self.limit_within_buf) in remaining_in_buf()
219 unsafe { *self.buf.get_unchecked(self.pos_within_buf) } in read_byte()
420 .get_unchecked(self.pos_within_buf..self.limit_within_buf) in fill_buf()
/external/rust/crates/rand_core/src/
Dblock.rs365 *results.get_unchecked(index) in next_u32()
367 *results.get_unchecked(index ^ 1) in next_u32()
/external/rust/cxx/src/
Dcxx_vector.rs56 Some(unsafe { self.get_unchecked(pos) }) in get()
82 pub unsafe fn get_unchecked(&self, pos: usize) -> &T { in get_unchecked() function
/external/rust/crates/thread_local/src/
Dlib.rs231 unsafe { self.buckets.get_unchecked(thread.bucket) }.load(Ordering::Acquire); in get_inner()
251 let bucket_atomic_ptr = unsafe { self.buckets.get_unchecked(thread.bucket) }; in insert()
380 let bucket = unsafe { thread_local.buckets.get_unchecked(self.bucket) }; in next()
/external/rust/crates/slab/src/
Dlib.rs539 pub unsafe fn get_unchecked(&self, key: usize) -> &T { in get_unchecked() method
540 match *self.entries.get_unchecked(key) { in get_unchecked()

12