Home
last modified time | relevance | path

Searched refs:checked_mul (Results 1 – 25 of 38) sorted by relevance

12

/external/rust/crates/num-traits/src/ops/
Dchecked.rs66 fn checked_mul(&self, v: &Self) -> Option<Self>; in checked_mul() method
69 checked_impl!(CheckedMul, checked_mul, u8);
70 checked_impl!(CheckedMul, checked_mul, u16);
71 checked_impl!(CheckedMul, checked_mul, u32);
72 checked_impl!(CheckedMul, checked_mul, u64);
73 checked_impl!(CheckedMul, checked_mul, usize);
75 checked_impl!(CheckedMul, checked_mul, u128);
77 checked_impl!(CheckedMul, checked_mul, i8);
78 checked_impl!(CheckedMul, checked_mul, i16);
79 checked_impl!(CheckedMul, checked_mul, i32);
[all …]
/external/rust/crates/nix/src/sys/
Dtime.rs16 let secs = hours.checked_mul(SECS_PER_HOUR) in hours()
23 let secs = minutes.checked_mul(SECS_PER_MINUTE) in minutes()
135 let nanoseconds = milliseconds.checked_mul(1_000_000) in milliseconds()
144 let nanoseconds = microseconds.checked_mul(1_000) in microseconds()
233 let usec = self.num_nanoseconds().checked_mul(i64::from(rhs)) in mul()
336 let microseconds = milliseconds.checked_mul(1_000) in milliseconds()
438 let usec = self.num_microseconds().checked_mul(i64::from(rhs)) in mul()
/external/crosvm/x86_64/src/
Dbzimage.rs86 .checked_mul(512) in load_bzimage()
89 .checked_mul(16) in load_bzimage()
/external/crosvm/gpu_display/src/
Dlib.rs96 let x_byte_offset = x.checked_mul(self.bytes_per_pixel)?; in sub_region()
97 let y_byte_offset = y.checked_mul(self.stride)?; in sub_region()
100 let width_bytes = width.checked_mul(self.bytes_per_pixel)?; in sub_region()
102 .checked_mul(self.stride)? in sub_region()
/external/rust/crates/itertools/src/
Dsize_hint.rs62 (Some(x), Some(y)) => x.checked_mul(y), in mul()
74 hi = hi.and_then(|elt| elt.checked_mul(x)); in mul_scalar()
Dpermutations.rs254 acc.and_then(|acc| acc.checked_mul(i)) in remaining()
267 let next_count = count.checked_mul(radix) in remaining()
/external/rust/crates/serde_json/src/lexical/
Ddigit.rs14 value.checked_mul(10)?.checked_add(digit as u64) in add_digit()
Dalgorithm.rs54 let value = mantissa.checked_mul(power)?; in fast_path()
/external/rust/crates/chrono/src/format/
Dscan.rs59 n = match n.checked_mul(10).and_then(|n| n.checked_add((c - b'0') as i64)) { in number()
79 let v = v.checked_mul(SCALE[consumed]).ok_or(OUT_OF_RANGE)?; in nanosecond()
96 let v = v.checked_mul(SCALE[digits]).ok_or(OUT_OF_RANGE)?; in nanosecond_fixed()
/external/rust/crates/num-traits/src/
Dpow.rs246 base = optry!(base.checked_mul(&base)); in checked_pow()
256 base = optry!(base.checked_mul(&base)); in checked_pow()
258 acc = optry!(acc.checked_mul(&base)); in checked_pow()
/external/rust/crates/chrono/src/
Doldtime.rs73 let secs = weeks.checked_mul(SECS_PER_WEEK).expect("Duration::weeks out of bounds"); in weeks()
82 let secs = days.checked_mul(SECS_PER_DAY).expect("Duration::days out of bounds"); in days()
91 let secs = hours.checked_mul(SECS_PER_HOUR).expect("Duration::hours ouf of bounds"); in hours()
100 let secs = minutes.checked_mul(SECS_PER_MINUTE).expect("Duration::minutes out of bounds"); in minutes()
195 let secs_part = try_opt!(self.num_seconds().checked_mul(MICROS_PER_SEC)); in num_microseconds()
203 let secs_part = try_opt!(self.num_seconds().checked_mul(NANOS_PER_SEC as i64)); in num_nanoseconds()
/external/rust/crates/ring/src/
Dbits.rs30 let bits = bytes.checked_mul(8).ok_or(error::Unspecified)?; in from_usize_bytes()
Ddigest.rs101 .checked_mul(polyfill::u64_from_usize(block_len)) in finish()
105 .checked_mul(8) in finish()
/external/crosvm/rutabaga_gfx/src/
Dmacros.rs40 checked_arithmetic!($x checked_mul $y "*")
/external/rust/crates/aho-corasick/src/
Dstate_id.rs16 let requested = match last_state.to_usize().checked_mul(alphabet_len) { in premultiply_overflow_error()
/external/rust/crates/parking_lot_core/src/thread_parker/windows/
Dwaitaddress.rs94 .checked_mul(1000) in park_until()
Dkeyed_event.rs146 .checked_mul(-10000000) in park_until()
/external/rust/crates/gdbstub/src/protocol/common/
Dhex.rs31 result = result.checked_mul(&radix).ok_or(Overflow)?; in decode_hex()
/external/rust/crates/nom/src/bits/
Dmod.rs102 Err(Err::Incomplete(Needed::Size(sz))) => Err(match sz.checked_mul(8) { in bytes()
/external/rust/crates/rusqlite/src/
Dbusy.rs27 .checked_mul(1000) in busy_timeout()
/external/rust/crates/regex-automata/src/
Dstate_id.rs25 let requested = match last_state.to_usize().checked_mul(alphabet_len) { in premultiply_overflow_error()
/external/rust/crates/csv/src/
Dbyte_record.rs528 let new_len = self.0.fields.len().checked_mul(2).unwrap(); in expand_fields()
710 let new_len = self.ends.len().checked_mul(2).unwrap(); in expand()
/external/rust/crates/chrono/src/naive/
Dtime.rs284 .checked_mul(1_000_000) in from_hms_milli_opt()
335 micro.checked_mul(1_000).and_then(|nano| NaiveTime::from_hms_nano_opt(hour, min, sec, nano)) in from_hms_micro_opt()
/external/rust/crates/flate2/src/ffi/
Dc.rs66 .checked_mul(item_size) in zalloc()
/external/crosvm/sys_util/src/
Dpoll.rs453 .checked_mul(1_000) in wait_timeout()

12