-
Notifications
You must be signed in to change notification settings - Fork 17
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
Div by zero #31
base: main
Are you sure you want to change the base?
Div by zero #31
Conversation
Previously, if the
Results may vary depending on compiler settings and targets. |
Converted to draft so I can add docs to Knuth. |
Co-authored-by: Nicholas Rodrigues Lordello <[email protected]>
|
Hey, sorry I haven't had time to look at this yet. Will get around to reviewing it either this weekend or early next week. |
As it turns out, making the division function infallible can make a big difference iff the actual result of the division is unneeded. However, in that case, it sounds reasonable to put the responsibility on the programmer to remove the useless 256-bit division call. |
This is great. Will run the fuzzer on this to make sure nothing broke, then will merge. |
Made some minor optimizations to udivmod4. Speed is not noticeably improved, but panic statements may be more helpful and binaries may be smaller.