From c5475ed402387341077d82b1e9528dbe2dd7e0c2 Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Sun, 26 Jan 2025 15:22:15 -0800 Subject: [PATCH] arithmetic: Remove misleading copy-pasta for Aarch64 bn_mul_mont. --- src/arithmetic/montgomery.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/arithmetic/montgomery.rs b/src/arithmetic/montgomery.rs index b2a7a7958..ffbaa2e3c 100644 --- a/src/arithmetic/montgomery.rs +++ b/src/arithmetic/montgomery.rs @@ -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