Skip to content

Commit

Permalink
fix no-std
Browse files Browse the repository at this point in the history
  • Loading branch information
ColoCarletti committed Oct 24, 2024
1 parent 8b2b3d2 commit ebc5e9d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion math/src/circle/cosets.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
extern crate alloc;
use crate::circle::point::CirclePoint;
use crate::field::fields::mersenne31::field::Mersenne31Field;
use alloc::vec::Vec;

/// Given g_n, a generator of the subgroup <g_n> of the circle of size n,
/// and given a shift, that is a another point of the cirvle,
Expand Down
3 changes: 1 addition & 2 deletions math/src/circle/polynomial.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ use crate::{
fft::cpu::bit_reversing::in_place_bit_reverse_permute,
field::{element::FieldElement, fields::mersenne31::field::Mersenne31Field},
};

#[cfg(feature = "alloc")]
use super::{
cfft::{cfft, icfft, order_cfft_result_naive, order_icfft_input_naive},
cosets::Coset,
twiddles::{get_twiddles, TwiddlesConfig},
};
use alloc::vec::Vec;

/// Given the 2^n coefficients of a two-variables polynomial of degree 2^n - 1 in the basis {1, y, x, xy, 2xˆ2 -1, 2xˆ2y-y, 2xˆ3-x, 2xˆ3y-xy,...}
/// returns the evaluation of the polynomial on the points of the standard coset of size 2^n.
Expand Down
2 changes: 0 additions & 2 deletions math/src/circle/twiddles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ use crate::{
circle::cosets::Coset,
field::{element::FieldElement, fields::mersenne31::field::Mersenne31Field},
};
use alloc::vec;
use alloc::vec::Vec;

#[derive(PartialEq)]
pub enum TwiddlesConfig {
Expand Down

0 comments on commit ebc5e9d

Please sign in to comment.