From 57019f1ee35bddada3b83982e5da7109d4bb752e Mon Sep 17 00:00:00 2001 From: maradini77 <140460067+maradini77@users.noreply.github.com> Date: Fri, 10 Oct 2025 11:55:03 +0200 Subject: [PATCH] Update fft.rs --- poly/src/domain/radix2/fft.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/poly/src/domain/radix2/fft.rs b/poly/src/domain/radix2/fft.rs index e73b3e891..6664976b9 100644 --- a/poly/src/domain/radix2/fft.rs +++ b/poly/src/domain/radix2/fft.rs @@ -46,7 +46,7 @@ impl Radix2EvaluationDomain { // so we handle this in initialization, and reduce the number of loops that are performing arithmetic. // The number of times we copy each initial non-zero element is as below: - let duplicity_of_initials = 1 << log_n.checked_sub(log_d).expect("domain is too small"); + let duplication_factor = 1 << log_n.checked_sub(log_d).expect("domain is too small"); coeffs.resize(n, T::zero()); @@ -59,14 +59,14 @@ impl Radix2EvaluationDomain { } // duplicate initial values - if duplicity_of_initials > 1 { - ark_std::cfg_chunks_mut!(coeffs, duplicity_of_initials).for_each(|chunk| { + if duplication_factor > 1 { + ark_std::cfg_chunks_mut!(coeffs, duplication_factor).for_each(|chunk| { let v = chunk[0]; chunk[1..].fill(v); }); } - let start_gap = duplicity_of_initials; + let start_gap = duplication_factor; self.oi_helper(&mut *coeffs, self.group_gen, start_gap); }