/external/rust/crates/num-traits/src/ops/ |
D | saturating.rs | 12 fn saturating_sub(self, v: Self) -> Self; in saturating_sub() method 24 fn saturating_sub(self, v: Self) -> Self { 25 Self::saturating_sub(self, v) 73 fn saturating_sub(&self, v: &Self) -> Self; in saturating_sub() method 76 saturating_impl!(SaturatingSub, saturating_sub, u8); 77 saturating_impl!(SaturatingSub, saturating_sub, u16); 78 saturating_impl!(SaturatingSub, saturating_sub, u32); 79 saturating_impl!(SaturatingSub, saturating_sub, u64); 80 saturating_impl!(SaturatingSub, saturating_sub, usize); 82 saturating_impl!(SaturatingSub, saturating_sub, u128); [all …]
|
/external/rust/crates/serde_json/src/lexical/ |
D | exponent.rs | 31 exponent.saturating_sub(fraction_start).saturating_sub(1) in scientific_exponent() 46 exponent.saturating_sub(into_i32(fraction_digits - truncated)) in mantissa_exponent()
|
/external/crosvm/fuzz/ |
D | fs_server_fuzzer.rs | 36 .saturating_sub(data.len().try_into().unwrap()) 37 .saturating_sub(0x100),
|
/external/rust/crates/tokio-stream/src/stream_ext/ |
D | skip.rs | 58 let lower = lower.saturating_sub(self.remaining); in size_hint() 59 let upper = upper.map(|x| x.saturating_sub(self.remaining)); in size_hint()
|
/external/rust/crates/futures-util/src/stream/stream/ |
D | skip.rs | 60 let lower = lower.saturating_sub(self.remaining as usize); in size_hint() 62 Some(x) => Some(x.saturating_sub(self.remaining as usize)), in size_hint()
|
/external/rust/crates/itertools/src/ |
D | size_hint.rs | 37 low = low.saturating_sub(x); in sub_scalar() 38 hi = hi.map(|elt| elt.saturating_sub(x)); in sub_scalar()
|
D | peek_nth.rs | 66 let unbuffered_items = (n + 1).saturating_sub(self.buf.len()); in peek_nth()
|
D | pad_tail.rs | 58 let tail = self.min.saturating_sub(self.pos); in size_hint()
|
/external/rust/crates/quiche/src/ |
D | dgram.rs | 81 self.queue_bytes_size = self.queue_bytes_size.saturating_sub(d.len()); in pop()
|
/external/rust/crates/bstr/src/ |
D | ascii.rs | 304 i.saturating_sub(align), in negative_fallback_forward() 325 i.saturating_sub(align), in negative_sse2_forward()
|
D | utf8.rs | 515 let mut backup = rejected_at.saturating_sub(1); in validate() 633 return (None, cmp::max(1, i.saturating_sub(1))); in decode() 749 let limit = slice.len().saturating_sub(4); in decode_last()
|
/external/flatbuffers/rust/flatbuffers/src/ |
D | vector.rs | 216 self.remaining = self.remaining.saturating_sub(n); in nth() 247 self.remaining = self.remaining.saturating_sub(n); in nth_back()
|
/external/rust/crates/textwrap/src/ |
D | lib.rs | 888 .saturating_sub(core::display_width(options.initial_indent)); in wrap() 891 .saturating_sub(core::display_width(options.subsequent_indent)); in wrap() 1045 .saturating_sub(core::display_width(left_gap)) in wrap_columns() 1046 .saturating_sub(core::display_width(right_gap)) in wrap_columns() 1047 .saturating_sub(core::display_width(mid_gap) * (columns - 1)); in wrap_columns()
|
/external/crosvm/devices/src/ |
D | cmos.rs | 34 mem_below_4g.saturating_sub(16 * 1024 * 1024) / (64 * 1024), in new()
|
/external/rust/crates/rayon/src/iter/ |
D | intersperse.rs | 275 len + len.saturating_sub(1) + self.clone_first as usize + self.clone_last as usize in len() 310 let base_index = index + index.saturating_sub(!self.clone_first.get() as usize); in split_at()
|
/external/rust/crates/aho-corasick/src/ |
D | prefilter.rs | 677 cmp::max(at, pos.saturating_sub(self.offset.max as usize)) in next_candidate() 738 cmp::max(at, pos.saturating_sub(offset as usize)) in next_candidate() 778 cmp::max(at, pos.saturating_sub(offset as usize)) in next_candidate()
|
/external/rust/crates/thread_local/src/ |
D | thread_id.rs | 64 let bucket_size = 1 << bucket.saturating_sub(1); in new()
|
/external/crosvm/devices/src/virtio/fs/ |
D | read_dir.rs | 63 self.end.saturating_sub(self.current) in remaining()
|
/external/rust/crates/quiche/src/recovery/ |
D | mod.rs | 303 self.in_flight_count[epoch].saturating_sub(1); in on_ack_received() 429 self.bytes_in_flight = self.bytes_in_flight.saturating_sub(unacked_bytes); in on_pkt_num_space_discarded() 457 self.congestion_window.saturating_sub(self.bytes_in_flight) in cwnd_available() 638 self.in_flight_count[epoch].saturating_sub(1); in detect_lost_packets() 720 self.bytes_in_flight = self.bytes_in_flight.saturating_sub(lost_bytes); in on_packets_lost()
|
D | reno.rs | 55 r.bytes_in_flight = r.bytes_in_flight.saturating_sub(packet.size); in on_packet_acked()
|
/external/rust/crates/zip/src/ |
D | spec.rs | 56 let search_upper_bound = file_length.saturating_sub(HEADER_SIZE + ::std::u16::MAX as u64); in find_and_parse()
|
/external/crosvm/resources/src/ |
D | address_allocator.rs | 191 slot.0.saturating_sub(range.1), in insert_at() 192 range.0.saturating_sub(slot.1), in insert_at()
|
/external/crosvm/rutabaga_gfx/src/ |
D | rutabaga_2d.rs | 85 let offset_within_src = src_copyable_start_offset.saturating_sub(src_start_offset); in transfer_2d()
|
/external/rust/crates/regex/src/ |
D | utf8.rs | 129 while start > src.len().saturating_sub(4) { in decode_last_utf8()
|
/external/rust/crates/regex-syntax/src/ |
D | error.rs | 250 let note_len = span.end.column.saturating_sub(span.start.column); in notate_line()
|