Skip to content

Commit

Permalink
fix feature selection
Browse files Browse the repository at this point in the history
  • Loading branch information
kwantam committed Oct 18, 2023
1 parent c98dc37 commit 34a41aa
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@
// This file may not be copied, modified, or distributed
// except according to those terms.
#![deny(missing_docs)]
#![cfg_attr(all(test, feature = "bench"), feature(test))]

/*!
fffft is a finite-field fast Fourier transform implementation
for sequences of values that implement the [ff::PrimeField] trait.
*/

#![feature(test)]
#[cfg(feature = "bench")]
#[cfg(all(test, feature = "bench"))]
extern crate test;

#[cfg(all(test, feature = "bench"))]
mod bench;
#[cfg(any(test, feature = "bench"))]
#[cfg(test)]
mod tests;

use err_derive::Error;
Expand Down Expand Up @@ -352,7 +352,7 @@ fn rou_rec<T: Field>(out: &mut [T], log_roots: &[T]) {
});
}

#[cfg(any(test, feature = "bench"))]
#[cfg(test)]
fn roots_of_unity_ser<T: Field>(mut root: T, log_len: u32, rdeg: u32) -> Vec<T> {
for _ in 0..(rdeg - log_len) {
root *= root;
Expand All @@ -363,7 +363,7 @@ fn roots_of_unity_ser<T: Field>(mut root: T, log_len: u32, rdeg: u32) -> Vec<T>
.collect()
}

#[cfg(feature = "bench")]
#[cfg(all(test, feature = "bench"))]
fn io_help_ser<T: Field>(xi: &mut [T], roots: &[T]) {
let mut gap = xi.len() / 2;
while gap > 0 {
Expand Down Expand Up @@ -400,7 +400,7 @@ fn io_help<T: Field>(xi: &mut [T], roots: &[T]) {
}
}

#[cfg(feature = "bench")]
#[cfg(all(test, feature = "bench"))]
fn oi_help_ser<T: Field>(xi: &mut [T], roots: &[T]) {
let mut gap = 1;
while gap < xi.len() {
Expand Down

0 comments on commit 34a41aa

Please sign in to comment.