Skip to content

Commit ff3ebaa

Browse files
committed
no longer using iter_array_chunks in non-prover builds
1 parent 57534f2 commit ff3ebaa

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

crates/stwo/src/core/fri.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -726,9 +726,9 @@ pub fn fold_line(
726726

727727
let folded_values = eval
728728
.iter()
729-
.array_chunks()
729+
.tuples()
730730
.enumerate()
731-
.map(|(i, [&f_x, &f_neg_x])| {
731+
.map(|(i, (&f_x, &f_neg_x))| {
732732
// TODO(andrew): Inefficient. Update when domain twiddles get stored in a buffer.
733733
let x = domain.at(bit_reverse_index(i << FOLD_STEP, domain.log_size()));
734734

@@ -755,9 +755,9 @@ pub fn fold_circle_into_line(
755755
let alpha_sq = alpha * alpha;
756756

757757
src.iter()
758-
.array_chunks()
758+
.tuples()
759759
.enumerate()
760-
.for_each(|(i, [&f_p, &f_neg_p])| {
760+
.for_each(|(i, (&f_p, &f_neg_p))| {
761761
// TODO(andrew): Inefficient. Update when domain twiddles get stored in a buffer.
762762
let p = src_domain.at(bit_reverse_index(
763763
i << CIRCLE_TO_LINE_FOLD_STEP,

crates/stwo/src/lib.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,10 @@
44
feature(stdarch_x86_avx512)
55
)]
66
#![cfg_attr(not(feature = "std"), no_std)]
7-
#![feature(
8-
array_chunks,
9-
array_try_from_fn,
10-
int_roundings,
11-
iter_array_chunks,
12-
portable_simd,
13-
slice_ptr_get
7+
#![feature(array_try_from_fn)]
8+
#![cfg_attr(
9+
feature = "prover",
10+
feature(array_chunks, iter_array_chunks, portable_simd, slice_ptr_get)
1411
)]
1512
pub mod core;
1613

0 commit comments

Comments
 (0)