Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(jolt-core): Fixes & lookup saving for ValidRemainder instrs #507

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

quangvdao
Copy link
Contributor

This PR does two things:

  1. It fixes the panic behavior in AssertValidSignedRemainder when either of the operands is the minimum i32/i64 number. This is because lookup_entry() invokes .abs() which panics when this minimum value is passed in. The fix is to use the panic-free unsigned_abs() version instead.
  2. It reduces one lookup in AssertValidUnsignedRemainder. This savings is similar to the one in SLTU, since the less-than unsigned function computation does not require the result of looking up the last chunk to EqSubtable.

Copy link
Collaborator

@moodlezoup moodlezoup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ty!

@moodlezoup moodlezoup merged commit 856c594 into a16z:main Nov 20, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants