Searched refs:checked_div (Results 1 – 10 of 10) sorted by relevance
/external/rust/crates/num-traits/src/ops/ |
D | checked.rs | 90 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/ |
D | position.rs | 63 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/ |
D | macros.rs | 43 checked_arithmetic!($x checked_div $y "/")
|
/external/rust/crates/num-bigint/tests/ |
D | bigint.rs | 978 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()
|
D | biguint.rs | 1040 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/ |
D | performance_data.rs | 184 .checked_div(steps.len() as u32) in gen_report()
|
/external/rust/crates/num-bigint/src/bigint/ |
D | division.rs | 442 fn checked_div(&self, v: &BigInt) -> Option<BigInt> { in checked_div() method
|
/external/rust/crates/openssl/src/ |
D | bn.rs | 475 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/ |
D | division.rs | 614 fn checked_div(&self, v: &BigUint) -> Option<BigUint> { in checked_div() method
|
/external/rust/crates/num-bigint/src/ |
D | bigint.rs | 1004 pub fn checked_div(&self, v: &BigInt) -> Option<BigInt> { in checked_div() method
|