Skip to content

Commit

Permalink
arithmetic: Remove misleading copy-pasta for Aarch64 bn_mul_mont.
Browse files Browse the repository at this point in the history
  • Loading branch information
briansmith committed Jan 27, 2025
1 parent b5d3117 commit c5475ed
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/arithmetic/montgomery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,6 @@ pub(super) fn limbs_mul_mont(
const MOD_FALLBACK: usize = 1; // No restriction.
cfg_if! {
if #[cfg(all(target_arch = "aarch64", target_endian = "little"))] {
// XXX: *ring* has long assumed target_arch = "x86" has SSE2.
// TODO: Use the fallback if SSE2 isn't available.
// The X86 implementation of `bn_mul_mont` has a minimum of 4.
const _MIN_LIMBS_AT_LEAST_4: () = assert!(MIN_LIMBS >= 4);
let _: cpu::Features = cpu;
bn_mul_mont_ffi!(in_out, n, n0, (), unsafe {
(MIN_LIMBS, MOD_FALLBACK, ()) => bn_mul_mont
Expand Down

0 comments on commit c5475ed

Please sign in to comment.