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

opti: use simple div by 32 instead of divmod when using ceil32 #613

Open
obatirou opened this issue Jan 30, 2025 · 0 comments
Open

opti: use simple div by 32 instead of divmod when using ceil32 #613

obatirou opened this issue Jan 30, 2025 · 0 comments
Milestone

Comments

@obatirou
Copy link
Contributor

obatirou commented Jan 30, 2025

Following #612
The codebase should use simple div by 32 instead of divmod when using ceil3

How:

  • use native cairo division when we are sure the number being divided is a multiple
  • look for all calls to divmod and unsigned_div_rem, if the number being divided is a multiple of the divider, then replace by native cairo operation and document it
@obatirou obatirou added this to Keth Jan 30, 2025
@github-project-automation github-project-automation bot moved this to Backlog in Keth Jan 30, 2025
@Eikix Eikix moved this from Backlog to Todo in Keth Feb 3, 2025
@Eikix Eikix added this to the Optimization milestone Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

2 participants