Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/algorithms/div/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//! [K97]: https://cs.stanford.edu/~knuth/taocp.html
//! [MG10]: https://gmplib.org/~tege/division-paper.pdf

#![allow(clippy::similar_names)] // TODO
#![allow(clippy::similar_names)] // Variable names follow the referenced papers.

mod knuth;
mod reciprocal;
Expand Down
2 changes: 1 addition & 1 deletion src/algorithms/gcd/matrix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ impl Matrix {
///
/// # Panics
///
/// Panics if `r0 < r1`.
/// Panics if `r1 > r0`.
// OPT: Would this be faster using extended binary gcd?
// See <https://en.algorithmica.org/hpc/algorithms/gcd>
#[inline]
Expand Down
2 changes: 1 addition & 1 deletion src/algorithms/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//! notice.
//! </div>

#![allow(missing_docs)] // TODO: document algorithms
#![allow(missing_docs)]

macro_rules! unstable_warning {
() => {
Expand Down
6 changes: 3 additions & 3 deletions src/cmp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,13 @@ impl<const BITS: usize, const LIMBS: usize> Uint<BITS, LIMBS> {
// TODO: Replace with `self == other` and deprecate once `PartialEq` is const.
let a = self.as_limbs();
let b = other.as_limbs();
let mut equal_count = 0usize;
let mut i = 0;
let mut r = true;
while i < LIMBS {
r &= a[i] == b[i];
equal_count += (a[i] == b[i]) as usize;
i += 1;
}
r
equal_count == LIMBS
}
}

Expand Down
Loading