mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-07 08:13:11 +00:00
Feedback
This commit is contained in:
parent
095140fda5
commit
30cc318cde
@ -147,14 +147,14 @@ fn ctl_memory<F: Field>() -> CrossTableLookup<F> {
|
||||
let keccak_memory_reads = (0..KECCAK_WIDTH_BYTES).map(|i| {
|
||||
TableWithColumns::new(
|
||||
Table::KeccakMemory,
|
||||
keccak_memory_stark::ctl_looking_memory_read(i),
|
||||
keccak_memory_stark::ctl_looking_memory(i, true),
|
||||
Some(keccak_memory_stark::ctl_filter()),
|
||||
)
|
||||
});
|
||||
let keccak_memory_writes = (0..KECCAK_WIDTH_BYTES).map(|i| {
|
||||
TableWithColumns::new(
|
||||
Table::KeccakMemory,
|
||||
keccak_memory_stark::ctl_looking_memory_write(i),
|
||||
keccak_memory_stark::ctl_looking_memory(i, false),
|
||||
Some(keccak_memory_stark::ctl_filter()),
|
||||
)
|
||||
});
|
||||
|
||||
@ -40,15 +40,7 @@ pub(crate) fn ctl_looking_keccak<F: Field>() -> Vec<Column<F>> {
|
||||
input_cols.chain(output_cols).collect()
|
||||
}
|
||||
|
||||
pub(crate) fn ctl_looking_memory_read<F: Field>(i: usize) -> Vec<Column<F>> {
|
||||
ctl_looking_memory(i, true)
|
||||
}
|
||||
|
||||
pub(crate) fn ctl_looking_memory_write<F: Field>(i: usize) -> Vec<Column<F>> {
|
||||
ctl_looking_memory(i, false)
|
||||
}
|
||||
|
||||
fn ctl_looking_memory<F: Field>(i: usize, is_read: bool) -> Vec<Column<F>> {
|
||||
pub(crate) fn ctl_looking_memory<F: Field>(i: usize, is_read: bool) -> Vec<Column<F>> {
|
||||
let mut res = vec![Column::constant(F::from_bool(is_read))];
|
||||
res.extend(Column::singles([COL_CONTEXT, COL_SEGMENT, COL_VIRTUAL]));
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user