Skip to content

Commit

Permalink
fix underflow in rotate_left
Browse files Browse the repository at this point in the history
  • Loading branch information
tamirhemo committed Jan 12, 2024
1 parent 11f8c3e commit e5859ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion curta/src/chip/uint/bytes/bit_operations/rotate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ impl<L: AirParameters> AirBuilder<L> {
for i in 0..n {
self.set_select(
&bit,
&temp.get((i - num_shift_bits) % n),
&temp.get((n + i - num_shift_bits) % n),
&temp.get(i),
&res.get(i),
);
Expand Down
2 changes: 1 addition & 1 deletion curta/src/chip/uint/operations/instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ mod tests {
type Instruction = UintInstruction;

const NUM_FREE_COLUMNS: usize = 1100;
const EXTENDED_COLUMNS: usize = 1300;
const EXTENDED_COLUMNS: usize = 1500;
const NUM_ARITHMETIC_COLUMNS: usize = 0;
}

Expand Down

0 comments on commit e5859ea

Please sign in to comment.