mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-07 16:23:12 +00:00
commit
cbfd19edb7
@ -38,11 +38,7 @@ fn fft_dispatch<F: Field>(
|
|||||||
zero_factor: Option<usize>,
|
zero_factor: Option<usize>,
|
||||||
root_table: Option<&FftRootTable<F>>,
|
root_table: Option<&FftRootTable<F>>,
|
||||||
) {
|
) {
|
||||||
let computed_root_table = if root_table.is_some() {
|
let computed_root_table = root_table.is_none().then(|| fft_root_table(input.len()));
|
||||||
None
|
|
||||||
} else {
|
|
||||||
Some(fft_root_table(input.len()))
|
|
||||||
};
|
|
||||||
let used_root_table = root_table.or(computed_root_table.as_ref()).unwrap();
|
let used_root_table = root_table.or(computed_root_table.as_ref()).unwrap();
|
||||||
|
|
||||||
fft_classic(input, zero_factor.unwrap_or(0), used_root_table);
|
fft_classic(input, zero_factor.unwrap_or(0), used_root_table);
|
||||||
|
|||||||
@ -126,8 +126,6 @@ where
|
|||||||
);
|
);
|
||||||
|
|
||||||
// Permutation arguments.
|
// Permutation arguments.
|
||||||
|
|
||||||
let constraint_degree = stark.constraint_degree();
|
|
||||||
let lookup_challenges = stark.uses_lookups().then(|| {
|
let lookup_challenges = stark.uses_lookups().then(|| {
|
||||||
if let Some(c) = ctl_challenges {
|
if let Some(c) = ctl_challenges {
|
||||||
c.challenges.iter().map(|ch| ch.beta).collect::<Vec<_>>()
|
c.challenges.iter().map(|ch| ch.beta).collect::<Vec<_>>()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user