mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-05 07:13:08 +00:00
cleanup
This commit is contained in:
parent
905c5eb5a0
commit
45c0d894d1
@ -33,7 +33,6 @@ rand_chacha = "0.3.1"
|
||||
rlp = "0.5.1"
|
||||
rlp-derive = "0.1.0"
|
||||
serde = { version = "1.0.144", features = ["derive"] }
|
||||
|
||||
static_assertions = "1.1.0"
|
||||
hashbrown = { version = "0.12.3" }
|
||||
tiny-keccak = "2.0.2"
|
||||
|
||||
@ -270,6 +270,7 @@ pub struct PrefixedGate<F: RichField + Extendable<D>, const D: usize> {
|
||||
|
||||
/// A gate's filter designed so that it is non-zero if `s = row`.
|
||||
fn compute_filter<K: Field>(row: usize, group_range: Range<usize>, s: K, many_selector: bool) -> K {
|
||||
debug_assert!(group_range.contains(&row));
|
||||
group_range
|
||||
.filter(|&i| i != row)
|
||||
.chain(many_selector.then_some(UNUSED_SELECTOR))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user