Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
diegokingston committed Aug 27, 2024
1 parent dffbe87 commit 0ac77da
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions math/src/field/fields/montgomery_backed_prime_fields.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,7 @@ where

#[inline(always)]
fn square(a: &UnsignedInteger<NUM_LIMBS>) -> UnsignedInteger<NUM_LIMBS> {
if Self::MODULUS_HAS_ONE_SPARE_BIT {
MontgomeryAlgorithms::sos_square(a, &M::MODULUS, &Self::MU)
} else {
MontgomeryAlgorithms::cios(a, a, &M::MODULUS, &Self::MU)
}
MontgomeryAlgorithms::sos_square(a, &M::MODULUS, &Self::MU)
}

#[inline(always)]
Expand Down

0 comments on commit 0ac77da

Please sign in to comment.