Home
last modified time | relevance | path

Searched refs:checked_div (Results 1 – 10 of 10) sorted by relevance

/external/rust/crates/num-traits/src/ops/
Dchecked.rs90 fn checked_div(&self, v: &Self) -> Option<Self>; in checked_div() method
93 checked_impl!(CheckedDiv, checked_div, u8);
94 checked_impl!(CheckedDiv, checked_div, u16);
95 checked_impl!(CheckedDiv, checked_div, u32);
96 checked_impl!(CheckedDiv, checked_div, u64);
97 checked_impl!(CheckedDiv, checked_div, usize);
99 checked_impl!(CheckedDiv, checked_div, u128);
101 checked_impl!(CheckedDiv, checked_div, i8);
102 checked_impl!(CheckedDiv, checked_div, i16);
103 checked_impl!(CheckedDiv, checked_div, i32);
[all …]
/external/rust/pica/src/
Dposition.rs63 fn checked_div(num: f32, den: f32) -> Option<f32> { in checked_div() function
72 checked_div(delta.x, delta.z).map_or( in azimuth()
87 checked_div(delta.y, f32::sqrt(delta.x.powi(2) + delta.z.powi(2))) in elevation()
/external/crosvm/rutabaga_gfx/src/
Dmacros.rs43 checked_arithmetic!($x checked_div $y "/")
/external/rust/crates/num-bigint/tests/
Dbigint.rs978 assert!(c.checked_div(&a).unwrap() == b); in test_checked_div()
979 assert!((-&c).checked_div(&(-&a)).unwrap() == b); in test_checked_div()
980 assert!((-&c).checked_div(&a).unwrap() == -&b); in test_checked_div()
983 assert!(c.checked_div(&b).unwrap() == a); in test_checked_div()
984 assert!((-&c).checked_div(&(-&b)).unwrap() == a); in test_checked_div()
985 assert!((-&c).checked_div(&b).unwrap() == -&a); in test_checked_div()
988 assert!(c.checked_div(&Zero::zero()).is_none()); in test_checked_div()
989 assert!((-&c).checked_div(&Zero::zero()).is_none()); in test_checked_div()
Dbiguint.rs1040 assert!(c.checked_div(&a).unwrap() == b); in test_checked_div()
1043 assert!(c.checked_div(&b).unwrap() == a); in test_checked_div()
1046 assert!(c.checked_div(&Zero::zero()).is_none()); in test_checked_div()
/external/crosvm/tools/audio_streams_conformance_test/src/
Dperformance_data.rs184 .checked_div(steps.len() as u32) in gen_report()
/external/rust/crates/num-bigint/src/bigint/
Ddivision.rs442 fn checked_div(&self, v: &BigInt) -> Option<BigInt> { in checked_div() method
/external/rust/crates/openssl/src/
Dbn.rs475 pub fn checked_div( in checked_div() method
1285 r.checked_div(self, oth, &mut ctx).unwrap(); in div()
/external/rust/crates/num-bigint/src/biguint/
Ddivision.rs614 fn checked_div(&self, v: &BigUint) -> Option<BigUint> { in checked_div() method
/external/rust/crates/num-bigint/src/
Dbigint.rs1004 pub fn checked_div(&self, v: &BigInt) -> Option<BigInt> { in checked_div() method