diff --git a/src/fields/fp.rs b/src/fields/fp.rs index 332598b..0c0028c 100644 --- a/src/fields/fp.rs +++ b/src/fields/fp.rs @@ -325,7 +325,7 @@ impl Fp { } #[allow(clippy::too_many_arguments)] - #[inline(always)] + #[cfg_attr(not(feature = "uninline-portable"), inline(always))] const fn montgomery_reduce( r0: u64, r1: u64, diff --git a/src/fields/fq.rs b/src/fields/fq.rs index c0296c4..4d80c69 100644 --- a/src/fields/fq.rs +++ b/src/fields/fq.rs @@ -325,7 +325,7 @@ impl Fq { } #[allow(clippy::too_many_arguments)] - #[inline(always)] + #[cfg_attr(not(feature = "uninline-portable"), inline(always))] const fn montgomery_reduce( r0: u64, r1: u64,