Home
last modified time | relevance | path

Searched refs:wrapping_neg (Results 1 – 15 of 15) sorted by relevance

/external/rust/crates/num-traits/src/ops/
Dwrapping.rs122 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/
Delision.rs99 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/
Dfma.rs129 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/
Droots.rs143 -((self.wrapping_neg() as $U).nth_root(n) as Self)
158 -((self.wrapping_neg() as $U).cbrt() as Self)
/external/rust/crates/fastrand/src/
Dlib.rs150 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/
Dsupport.rs35 ((xorshifted >> rot) | (xorshifted << (rot.wrapping_neg() & 31))) as u32 in next_u32()
/external/rust/crates/oorandom/src/
Dlib.rs144 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/
Dtsc.rs140 .wrapping_add(tsc_state.offsets[pinned_core].1.wrapping_neg() as i64 as u64), in tsc_sync_mitigations_inner()
/external/rust/crates/bstr/src/
Dascii.rs245 ptr.offset((amt as isize).wrapping_neg()) in ptr_sub()
/external/crosvm/x86_64/src/
Dregs.rs145 let mask: u64 = len.wrapping_neg() & phys_mask | MTRR_VAR_VALID; in mtrr_msrs()
/external/rust/crates/cexpr/src/
Dexpr.rs273 …(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/
DRELEASES.md59 boundary of the type, e.g. `i32::MIN.wrapping_neg() == i32::MIN`.
/external/rust/crates/num-bigint/src/
Dbigint.rs322 Negative(self.wrapping_neg() as $Unsigned)
/external/rust/crates/num-traits/src/
Dfloat.rs678 exp = exp.wrapping_neg(); in powi()
/external/rust/crates/serde_json/src/
Dde.rs437 let neg = (significand as i64).wrapping_neg(); in parse_number()