Searched refs:wrapping_neg (Results 1 – 15 of 15) sorted by relevance
/external/rust/crates/num-traits/src/ops/ |
D | wrapping.rs | 122 fn wrapping_neg(&self) -> Self; in wrapping_neg() method 125 wrapping_unary_impl!(WrappingNeg, wrapping_neg, u8); 126 wrapping_unary_impl!(WrappingNeg, wrapping_neg, u16); 127 wrapping_unary_impl!(WrappingNeg, wrapping_neg, u32); 128 wrapping_unary_impl!(WrappingNeg, wrapping_neg, u64); 129 wrapping_unary_impl!(WrappingNeg, wrapping_neg, usize); 131 wrapping_unary_impl!(WrappingNeg, wrapping_neg, u128); 132 wrapping_unary_impl!(WrappingNeg, wrapping_neg, i8); 133 wrapping_unary_impl!(WrappingNeg, wrapping_neg, i16); 134 wrapping_unary_impl!(WrappingNeg, wrapping_neg, i32); [all …]
|
/external/rust/crates/parking_lot/src/ |
D | elision.rs | 99 inout(reg) val.wrapping_neg() => prev, in elision_fetch_sub_release() 107 inout(reg) val.wrapping_neg() => prev, in elision_fetch_sub_release()
|
/external/rust/crates/libm/src/math/ |
D | fma.rs | 129 rlo = (rlo as i64).wrapping_neg() as u64; in fma() 130 rhi = (rhi as i64).wrapping_neg() as u64 - (rlo != 0) as u64; in fma()
|
/external/rust/crates/num-integer/src/ |
D | roots.rs | 143 -((self.wrapping_neg() as $U).nth_root(n) as Self) 158 -((self.wrapping_neg() as $U).cbrt() as Self)
|
/external/rust/crates/fastrand/src/ |
D | lib.rs | 150 let t = n.wrapping_neg() % n; in gen_mod_u32() 168 let t = n.wrapping_neg() % n; in gen_mod_u64() 186 let t = n.wrapping_neg() % n; in gen_mod_u128()
|
/external/rust/crates/glam/benches/ |
D | support.rs | 35 ((xorshifted >> rot) | (xorshifted << (rot.wrapping_neg() & 31))) as u32 in next_u32()
|
/external/rust/crates/oorandom/src/ |
D | lib.rs | 144 let threshold: u32 = s.wrapping_neg() % s; in rand_range() 253 let threshold: u64 = s.wrapping_neg() % s; in rand_range()
|
/external/crosvm/devices/src/ |
D | tsc.rs | 140 .wrapping_add(tsc_state.offsets[pinned_core].1.wrapping_neg() as i64 as u64), in tsc_sync_mitigations_inner()
|
/external/rust/crates/bstr/src/ |
D | ascii.rs | 245 ptr.offset((amt as isize).wrapping_neg()) in ptr_sub()
|
/external/crosvm/x86_64/src/ |
D | regs.rs | 145 let mask: u64 = len.wrapping_neg() & phys_mask | MTRR_VAR_VALID; in mtrr_msrs()
|
/external/rust/crates/cexpr/src/ |
D | expr.rs | 273 …(b'-', Int(i)) => Some(Int(Wrapping(i.0.wrapping_neg()))), // impl Neg for Wrapping not until rust… in unary_op()
|
/external/rust/crates/num-traits/ |
D | RELEASES.md | 59 boundary of the type, e.g. `i32::MIN.wrapping_neg() == i32::MIN`.
|
/external/rust/crates/num-bigint/src/ |
D | bigint.rs | 322 Negative(self.wrapping_neg() as $Unsigned)
|
/external/rust/crates/num-traits/src/ |
D | float.rs | 678 exp = exp.wrapping_neg(); in powi()
|
/external/rust/crates/serde_json/src/ |
D | de.rs | 437 let neg = (significand as i64).wrapping_neg(); in parse_number()
|