/external/rust/crates/num-traits/src/ops/ |
D | checked.rs | 66 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/ |
D | time.rs | 16 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/ |
D | bzimage.rs | 86 .checked_mul(512) in load_bzimage() 89 .checked_mul(16) in load_bzimage()
|
/external/crosvm/gpu_display/src/ |
D | lib.rs | 96 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/ |
D | size_hint.rs | 62 (Some(x), Some(y)) => x.checked_mul(y), in mul() 74 hi = hi.and_then(|elt| elt.checked_mul(x)); in mul_scalar()
|
D | permutations.rs | 254 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/ |
D | digit.rs | 14 value.checked_mul(10)?.checked_add(digit as u64) in add_digit()
|
D | algorithm.rs | 54 let value = mantissa.checked_mul(power)?; in fast_path()
|
/external/rust/crates/chrono/src/format/ |
D | scan.rs | 59 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/ |
D | pow.rs | 246 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/ |
D | oldtime.rs | 73 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/ |
D | bits.rs | 30 let bits = bytes.checked_mul(8).ok_or(error::Unspecified)?; in from_usize_bytes()
|
D | digest.rs | 101 .checked_mul(polyfill::u64_from_usize(block_len)) in finish() 105 .checked_mul(8) in finish()
|
/external/crosvm/rutabaga_gfx/src/ |
D | macros.rs | 40 checked_arithmetic!($x checked_mul $y "*")
|
/external/rust/crates/aho-corasick/src/ |
D | state_id.rs | 16 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/ |
D | waitaddress.rs | 94 .checked_mul(1000) in park_until()
|
D | keyed_event.rs | 146 .checked_mul(-10000000) in park_until()
|
/external/rust/crates/gdbstub/src/protocol/common/ |
D | hex.rs | 31 result = result.checked_mul(&radix).ok_or(Overflow)?; in decode_hex()
|
/external/rust/crates/nom/src/bits/ |
D | mod.rs | 102 Err(Err::Incomplete(Needed::Size(sz))) => Err(match sz.checked_mul(8) { in bytes()
|
/external/rust/crates/rusqlite/src/ |
D | busy.rs | 27 .checked_mul(1000) in busy_timeout()
|
/external/rust/crates/regex-automata/src/ |
D | state_id.rs | 25 let requested = match last_state.to_usize().checked_mul(alphabet_len) { in premultiply_overflow_error()
|
/external/rust/crates/csv/src/ |
D | byte_record.rs | 528 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/ |
D | time.rs | 284 .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/ |
D | c.rs | 66 .checked_mul(item_size) in zalloc()
|
/external/crosvm/sys_util/src/ |
D | poll.rs | 453 .checked_mul(1_000) in wait_timeout()
|