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

Method wrapping_sub

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

Source from the content-addressed store, hash-verified

364 /// Performs wrapping subtraction
365 #[inline]
366 pub fn wrapping_sub(self, other: Self) -> Self {
367 let (low, carry) = self.low.overflowing_sub(other.low);
368 let high = self.high.wrapping_sub(other.high).wrapping_sub(carry as _);
369 Self { low, high }
370 }
371
372 /// Performs checked subtraction
373 #[inline]

Callers 8

wrapping_absMethod · 0.45
checked_subMethod · 0.45
checked_mulMethod · 0.45
abs_subMethod · 0.45
test_opsFunction · 0.45
test_i256_as_i128Function · 0.45
truncateMethod · 0.45

Calls

no outgoing calls

Tested by 2

test_opsFunction · 0.36
test_i256_as_i128Function · 0.36