Skip to content

Commit

Permalink
Remove BoxedLimbs::is_zero()
Browse files Browse the repository at this point in the history
  • Loading branch information
briansmith committed Nov 19, 2024
1 parent befdc87 commit 4112d4f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion src/arithmetic/bigint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ impl<M, E> Clone for Elem<M, E> {
impl<M, E> Elem<M, E> {
#[inline]
pub fn is_zero(&self) -> bool {
self.limbs.is_zero()
limb::limbs_are_zero_constant_time(&self.limbs) == LimbMask::True
}
}

Expand Down
5 changes: 0 additions & 5 deletions src/arithmetic/bigint/boxed_limbs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,6 @@ impl<M> BoxedLimbs<M> {
Ok(r)
}

#[inline]
pub(super) fn is_zero(&self) -> bool {
limb::limbs_are_zero_constant_time(&self.limbs) == LimbMask::True
}

pub(super) fn zero(len: usize) -> Self {
Self {
limbs: vec![0; len].into_boxed_slice(),
Expand Down

0 comments on commit 4112d4f

Please sign in to comment.