We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31f712f commit 8671bebCopy full SHA for 8671beb
libm/src/math/support/int_traits/narrowing_div.rs
@@ -6,6 +6,7 @@ use crate::support::{DInt, HInt, Int, MinInt, u256};
6
/// This is the inverse of widening multiplication:
7
/// - for any `x` and nonzero `y`: `x.widen_mul(y).checked_narrowing_div_rem(y) == Some((x, 0))`,
8
/// - and for any `r in 0..y`: `x.carrying_mul(y, r).checked_narrowing_div_rem(y) == Some((x, r))`,
9
+#[allow(dead_code)]
10
pub trait NarrowingDiv: DInt + MinInt<Unsigned = Self> {
11
/// Computes `(self / n, self % n))`
12
///
0 commit comments