MCPcopy Create free account
hub / github.com/apache/arrow-rs / wrapping_div

Method wrapping_div

arrow-buffer/src/bigint/mod.rs:485–491  ·  view source on GitHub ↗
(self, other: Self)

Source from the content-addressed store, hash-verified

483 /// Performs wrapping division
484 #[inline]
485 pub fn wrapping_div(self, other: Self) -> Self {
486 match self.div_rem(other) {
487 Ok((v, _)) => v,
488 Err(DivRemError::DivideByZero) => panic!("attempt to divide by zero"),
489 Err(_) => Self::MIN,
490 }
491 }
492
493 /// Performs checked division
494 #[inline]

Callers 1

test_opsFunction · 0.45

Calls 1

div_remMethod · 0.80

Tested by 1

test_opsFunction · 0.36