/external/rust/crates/num-traits/src/ops/ |
D | wrapping.rs | 27 fn wrapping_add(&self, v: &Self) -> Self; in wrapping_add() method 30 wrapping_impl!(WrappingAdd, wrapping_add, u8); 31 wrapping_impl!(WrappingAdd, wrapping_add, u16); 32 wrapping_impl!(WrappingAdd, wrapping_add, u32); 33 wrapping_impl!(WrappingAdd, wrapping_add, u64); 34 wrapping_impl!(WrappingAdd, wrapping_add, usize); 36 wrapping_impl!(WrappingAdd, wrapping_add, u128); 38 wrapping_impl!(WrappingAdd, wrapping_add, i8); 39 wrapping_impl!(WrappingAdd, wrapping_add, i16); 40 wrapping_impl!(WrappingAdd, wrapping_add, i32); [all …]
|
/external/rust/crates/ryu/src/ |
D | d2s_intrinsics.rs | 147 mid = mid.wrapping_add(tmp); in mul_shift_all_64() 148 hi = hi.wrapping_add((mid < tmp) as u64); // overflow into hi in mul_shift_all_64() 150 let lo2 = lo.wrapping_add(mul.0); in mul_shift_all_64() 151 let mid2 = mid.wrapping_add(mul.1).wrapping_add((lo2 < lo) as u64); in mul_shift_all_64() 152 let hi2 = hi.wrapping_add((mid2 < mid) as u64); in mul_shift_all_64() 162 let mid3 = mid.wrapping_add(mid).wrapping_add((lo3 < lo) as u64); in mul_shift_all_64() 163 let hi3 = hi.wrapping_add(hi).wrapping_add((mid3 < mid) as u64); in mul_shift_all_64()
|
D | s2d.rs | 130 .wrapping_add(e10 as u32) in s2d() 131 .wrapping_add(log2_pow5(e10) as u32) in s2d() 139 .wrapping_add(d2s::DOUBLE_POW5_BITCOUNT); in s2d() 158 .wrapping_add(e10 as u32) in s2d() 163 .wrapping_add(ceil_log2_pow5(-e10)) in s2d() 165 .wrapping_add(d2s::DOUBLE_POW5_INV_BITCOUNT); in s2d() 205 let mut ieee_m2 = (m2 >> shift).wrapping_add(round_up as u64); in s2d()
|
D | s2f.rs | 130 .wrapping_add(e10 as u32) in s2f() 131 .wrapping_add(log2_pow5(e10) as u32) in s2f() 139 .wrapping_add(f2s::FLOAT_POW5_BITCOUNT); in s2f() 153 .wrapping_add(e10 as u32) in s2f() 158 .wrapping_add(ceil_log2_pow5(-e10)) in s2f() 160 .wrapping_add(f2s::FLOAT_POW5_INV_BITCOUNT); in s2f() 196 let mut ieee_m2 = (m2 >> shift).wrapping_add(round_up as u32); in s2f()
|
/external/rust/crates/crossbeam-deque/src/ |
D | deque.rs | 132 i = i.wrapping_add(1); in drop() 296 i = i.wrapping_add(1); in resize() 422 self.inner.back.store(b.wrapping_add(1), Ordering::Release); in push() 458 let new_f = f.wrapping_add(1); in pop() 495 self.inner.back.store(b.wrapping_add(1), Ordering::Relaxed); in pop() 510 f.wrapping_add(1), in pop() 521 self.inner.back.store(b.wrapping_add(1), Ordering::Relaxed); in pop() 641 .compare_exchange(f, f.wrapping_add(1), Ordering::SeqCst, Ordering::Relaxed) in steal() 728 let task = buffer.deref().read(f.wrapping_add(i)); in steal_batch() 729 dest_buffer.write(dest_b.wrapping_add(i), task); in steal_batch() [all …]
|
/external/crosvm/x86_64/src/ |
D | mptable.rs | 95 checksum = checksum.wrapping_add(*i); in compute_checksum() 102 (!checksum).wrapping_add(1) in mpf_intel_compute_checksum() 186 checksum = checksum.wrapping_add(compute_checksum(&mpc_cpu)); in setup_mptable() 200 checksum = checksum.wrapping_add(compute_checksum(&mpc_ioapic)); in setup_mptable() 212 checksum = checksum.wrapping_add(compute_checksum(&mpc_bus)); in setup_mptable() 224 checksum = checksum.wrapping_add(compute_checksum(&mpc_bus)); in setup_mptable() 240 checksum = checksum.wrapping_add(compute_checksum(&mpc_intsrc)); in setup_mptable() 258 checksum = checksum.wrapping_add(compute_checksum(&mpc_intsrc)); in setup_mptable() 277 checksum = checksum.wrapping_add(compute_checksum(&mpc_intsrc)); in setup_mptable() 295 checksum = checksum.wrapping_add(compute_checksum(&mpc_intsrc)); in setup_mptable() [all …]
|
/external/rust/crates/tokio/src/runtime/ |
D | queue.rs | 157 self.inner.tail.store(tail.wrapping_add(1), Release); in push_back() 202 pack(head.wrapping_add(n), head.wrapping_add(n)), in push_overflow() 218 let i_idx = i.wrapping_add(head) as usize & MASK; in push_overflow() 219 let j_idx = j.wrapping_add(head) as usize & MASK; in push_overflow() 268 let next_real = real.wrapping_add(1); in pop() 329 let ret_pos = dst_tail.wrapping_add(n); in steal_into() 342 dst.inner.tail.store(dst_tail.wrapping_add(n), Release); in steal_into() 373 let steal_to = src_head_real.wrapping_add(n); in steal_into2() 398 let src_pos = first.wrapping_add(i); in steal_into2() 399 let dst_pos = dst_tail.wrapping_add(i); in steal_into2()
|
/external/rust/crates/crossbeam-utils/benches/ |
D | atomic_cell.rs | 35 let _ = a.compare_exchange(i, i.wrapping_add(1)); in compare_exchange_u8() 36 i = i.wrapping_add(1); in compare_exchange_u8() 109 let _ = a.compare_exchange(i, i.wrapping_add(1)); in compare_exchange_usize() 110 i = i.wrapping_add(1); in compare_exchange_usize()
|
/external/crosvm/acpi_tables/src/ |
D | lib.rs | 12 (255 - data.iter().fold(0u8, |acc, x| acc.wrapping_add(*x))).wrapping_add(1) in generate_checksum()
|
D | rsdp.rs | 59 .fold(0u8, |acc, x| acc.wrapping_add(*x)); in test_rsdp() 64 .fold(0u8, |acc, x| acc.wrapping_add(*x)); in test_rsdp()
|
/external/rust/crates/rand/src/rngs/ |
D | xoshiro256plusplus.rs | 50 state = state.wrapping_add(PHI); in seed_from_u64() 72 .wrapping_add(self.s[3]) in next_u64() 74 .wrapping_add(self.s[0]); in next_u64()
|
D | xoshiro128plusplus.rs | 50 state = state.wrapping_add(PHI); in seed_from_u64() 65 .wrapping_add(self.s[3]) in next_u32() 67 .wrapping_add(self.s[0]); in next_u32()
|
/external/rust/crates/rand_chacha/src/ |
D | guts.rs | 112 pos = pos.wrapping_add(1); 114 pos = pos.wrapping_add(1); 116 pos = pos.wrapping_add(1); 133 pos = pos.wrapping_add(1); 135 pos = pos.wrapping_add(1); 137 pos = pos.wrapping_add(1); 139 pos = pos.wrapping_add(1);
|
/external/rust/crates/once_cell/examples/ |
D | bench_acquire.rs | 35 *j = (*j).wrapping_add(accum); in thread_main() 36 accum = accum.wrapping_add(k); in thread_main()
|
/external/rust/crates/libm/src/math/ |
D | atan2.rs | 99 if ix.wrapping_add(64 << 20) < iy || iy == 0x7ff00000 { in atan2() 104 let z = if (m & 2 != 0) && iy.wrapping_add(64 << 20) < ix { in atan2()
|
/external/rust/crates/ahash/src/ |
D | fallback_hash.rs | 105 self.buffer = (combined.wrapping_add(self.buffer) ^ self.pad).rotate_left(ROT); in large_update() 119 self.buffer.wrapping_add(self.pad) in short_finish() 163 self.buffer = self.buffer.wrapping_add(length).wrapping_mul(MULTIPLE); in write()
|
/external/rust/crates/crossbeam-channel/src/flavors/ |
D | array.rs | 185 lap.wrapping_add(self.one_lap) in start_send() 206 } else if stamp.wrapping_add(self.one_lap) == tail + 1 { in start_send() 211 if head.wrapping_add(self.one_lap) == tail { in start_send() 267 lap.wrapping_add(self.one_lap) in start_recv() 280 token.array.stamp = head.wrapping_add(self.one_lap); in start_recv() 526 head.wrapping_add(self.one_lap) == tail & !self.mark_bit in is_full()
|
/external/rust/crates/crossbeam-utils/src/atomic/ |
D | seq_lock_wide.rs | 121 let state_lo = self.state_lo.wrapping_add(2); in drop() 130 .store(state_hi.wrapping_add(1), Ordering::Release); in drop()
|
/external/rust/crates/rayon/src/ |
D | range.rs | 127 let mid = self.range.start.wrapping_add(index as $t); 162 move |i| start.wrapping_add(i as $t) 192 let mid = self.range.start.wrapping_add(index as $t); 334 (0..(usize::MAX as u64).wrapping_add(1)) in test_u64_opt_len()
|
/external/rust/crates/aho-corasick/src/packed/ |
D | rabinkarp.rs | 172 hash = hash.wrapping_shl(1).wrapping_add(b as usize); in hash() 183 .wrapping_add(new_byte as usize) in update_hash()
|
/external/rust/crates/tokio-stream/src/ |
D | stream_map.rs | 512 idx = idx.wrapping_add(1) % self.entries.len(); in poll_next_entry() 516 idx = idx.wrapping_add(1) % self.entries.len(); in poll_next_entry() 652 s0.wrapping_add(s1) in fastrand()
|
/external/rust/crates/arbitrary/src/ |
D | unstructured.rs | 338 T::from_widest(start.as_widest().wrapping_add(result)), in int_in_range_impl() 619 fn wrapping_add(self, rhs: Self) -> Self; in wrapping_add() method 653 fn wrapping_add(self, rhs: Self) -> Self { 654 <$ty>::wrapping_add(self, rhs)
|
/external/rust/crates/tokio/src/sync/ |
D | broadcast.rs | 612 tail.pos = tail.pos.wrapping_add(1); in send2() 705 let next_pos = slot.pos.wrapping_add(self.shared.buffer.len() as u64); in recv_ref() 731 let next_pos = slot.pos.wrapping_add(self.shared.buffer.len() as u64); in recv_ref() 790 self.next = self.next.wrapping_add(1); in recv_ref() 801 self.next = self.next.wrapping_add(1); in recv_ref()
|
/external/rust/crates/ahash/tests/ |
D | map_tests.rs | 178 total = total.wrapping_add(hasher.finish()); in ahash_vec() 188 total = total.wrapping_add(hasher.finish()); in fxhash_vec()
|
/external/rust/crates/oorandom/src/ |
D | lib.rs | 67 rng.state = rng.state.wrapping_add(seed); in new_inc() 92 .wrapping_add(self.inc); in rand_u32() 190 rng.state = rng.state.wrapping_add(seed); in new_inc() 215 .wrapping_add(self.inc); in rand_u64()
|