fastnum 0.7.4

Fast decimal numbers library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::bint::{carrying::carrying_impl, doc, UInt};

carrying_impl!(UInt, U);

impl<const N: usize> UInt<N> {
    #[doc = doc::carrying::carrying_mul!(U 256)]
    #[must_use = doc::must_use_op!()]
    #[inline]
    pub const fn carrying_mul(self, rhs: Self, carry: Self) -> (Self, Self) {
        let (low, high) = self.0.carrying_mul(rhs.0, carry.0);
        (Self(low), Self(high))
    }
}