Skip to content

Commit

Permalink
Improve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-chuang authored Mar 30, 2021
1 parent 695ccc8 commit 7e6104a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions poly/src/domain/radix2/fft.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,10 @@ impl<F: FftField> Radix2EvaluationDomain<F> {

fn oi_helper<T: DomainCoeff<F>>(&self, xi: &mut [T], root: F) {
let roots_cache = self.roots_of_unity(root);

// The `cmp::min` is only necessary for the case where
// `MIN_NUM_CHUNKS_FOR_COMPACTION = 1`. Else, notice that we compact
// the roots cache by a stride of at least `MIN_NUM_CHUNKS_FOR_COMPACTION`.
let compaction_size = core::cmp::min(
roots_cache.len() / 2,
roots_cache.len() / MIN_NUM_CHUNKS_FOR_COMPACTION,
Expand Down

0 comments on commit 7e6104a

Please sign in to comment.