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

Optimize Integer Division with Constant Values #1138

Closed
tgiphil opened this issue Sep 4, 2023 · 1 comment · Fixed by #1139
Closed

Optimize Integer Division with Constant Values #1138

tgiphil opened this issue Sep 4, 2023 · 1 comment · Fixed by #1139

Comments

@tgiphil
Copy link
Member

tgiphil commented Sep 4, 2023

Read Hacker's Delight book.

Use the following to determine the magic numbers.

https://github.com/hcs0/Hackers-Delight/blob/master/magicu.c.txt

https://github.com/hcs0/Hackers-Delight/blob/master/magic.c.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant