Skip to content

Commit

Permalink
reserve more disabled rows for circuits
Browse files Browse the repository at this point in the history
  • Loading branch information
junyu0312 committed Jul 1, 2024
1 parent 7c9f9f6 commit 744c1c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/zkwasm/src/circuits/zkwasm_circuit/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ pub const VAR_COLUMNS: usize = if cfg!(feature = "continuation") {
40
};

// Reserve a few rows to keep usable rows away from blind rows.
// The maximal step size of all tables is bit_table::STEP_SIZE.
// Reserve 128 rows(greater than step size of all tables) to keep usable rows away from
// blind rows and range checking rows.
// Reserve (1 << 16) / 2 to allow u16 range checking based on shuffle with step 2.
pub(crate) const RESERVE_ROWS: usize = crate::circuits::bit_table::STEP_SIZE + (1 << 15);
pub(crate) const RESERVE_ROWS: usize = 128 + (1 << 15);

#[derive(Default, Clone)]
struct AssignedCells<F: FieldExt> {
Expand Down

0 comments on commit 744c1c5

Please sign in to comment.