fastnum/bint/uint/carrying.rs
1use crate::bint::{carrying::carrying_impl, doc, UInt};
2
3carrying_impl!(UInt, U);
4
5impl<const N: usize> UInt<N> {
6 #[doc = doc::carrying::carrying_mul!(U 256)]
7 #[must_use = doc::must_use_op!()]
8 #[inline]
9 pub const fn carrying_mul(self, rhs: Self, carry: Self) -> (Self, Self) {
10 let (low, high) = self.0.carrying_mul(rhs.0, carry.0);
11 (Self(low), Self(high))
12 }
13}