Skip to content

Commit

Permalink
remove macro
Browse files Browse the repository at this point in the history
  • Loading branch information
ColoCarletti committed Oct 24, 2024
1 parent b645a7b commit c7cfd8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions math/src/circle/polynomial.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
extern crate alloc;
#[cfg(feature = "alloc")]
use super::{
cfft::{cfft, icfft, order_cfft_result_naive, order_icfft_input_naive},
Expand Down
4 changes: 2 additions & 2 deletions math/src/circle/twiddles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ pub fn get_twiddles(
let half_domain_points = Coset::get_coset_points(&Coset::half_coset(domain.clone()));

// The first set of twiddles are all the y coordinates of the half coset.
let mut twiddles: Vec<Vec<FieldElement<Mersenne31Field>>> =
vec![half_domain_points.iter().map(|p| p.y).collect()];
let mut twiddles: Vec<Vec<FieldElement<Mersenne31Field>>> = Vec::new();
twiddles.push(half_domain_points.iter().map(|p| p.y).collect());

if domain.log_2_size >= 2 {
// The second set of twiddles are the x coordinates of the first half of the half coset.
Expand Down

0 comments on commit c7cfd8f

Please sign in to comment.