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

SignedDivRem #242

Closed
Tracked by #164
cicr99 opened this issue Mar 11, 2024 · 0 comments · Fixed by #318
Closed
Tracked by #164

SignedDivRem #242

cicr99 opened this issue Mar 11, 2024 · 0 comments · Fixed by #318
Assignees
Labels
cairo zero Exclusively targets cairo zero Difficulty: easy Easy - good first issue Duration: under a day Should only take a few hours vm hint Related with VM hints

Comments

@cicr99
Copy link
Contributor

cicr99 commented Mar 11, 2024

Performs a signed division and modulus operation on a given value, ensuring the quotient is within a specified range.

Reference: https://github.com/starkware-libs/cairo-lang/blob/efa9648f57568aad8f8a13fbf027d2de7c63c2c0/src/starkware/cairo/common/math.cairo#L329

Note: This hint uses divmod function and range_check_builtin, both have been already implemented in this hint section so just check the code for clarification

@cicr99 cicr99 changed the title SignedDivRem: Performs a signed division and modulus operation on a given value, ensuring the quotient is within a specified range. SignedDivRem Mar 11, 2024
@cicr99 cicr99 added vm hint Related with VM hints cairo zero Exclusively targets cairo zero Difficulty: easy Easy - good first issue Duration: under a day Should only take a few hours labels Mar 11, 2024
@cicr99 cicr99 assigned cicr99 and Giri-Aayush and unassigned cicr99 Mar 12, 2024
@MaksymMalicki MaksymMalicki linked a pull request Mar 28, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cairo zero Exclusively targets cairo zero Difficulty: easy Easy - good first issue Duration: under a day Should only take a few hours vm hint Related with VM hints
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants