Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr. Capybara committed Nov 10, 2023
1 parent d468623 commit ad9bdd8
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/uint/div.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,17 +166,6 @@ impl<const LIMBS: usize> Uint<LIMBS> {
}

/// Computes self / rhs, returns the quotient, remainder.
/// ### Usage:
/// ```
/// use crypto_bigint::{U448, NonZero};
///
/// let a = U448::from(8_u64);
/// let b = NonZero::new(U448::from(4_u64)).unwrap();
/// let res = a.div_rem(&b);
///
/// assert!(res.0 == U448::from(2_u64));
/// assert!(res.1 == U448::ZERO);
/// ```
pub fn div_rem(&self, rhs: &NonZero<Self>) -> (Self, Self) {
// Since `rhs` is nonzero, this should always hold.
let (q, r, _c) = self.ct_div_rem(rhs);
Expand Down

0 comments on commit ad9bdd8

Please sign in to comment.