-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Reduce fdiv's into fmul's #1204
Conversation
Awesome. Please add static constant for constants that derived from |
Done! All tests still pass. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Added a bit of polishing with suggested-edits.
Provides small speedup on microarchitectures where the floating point divide is slower than the floating point multiply.
Added a digit of precision
Co-authored-by: Eugene Kliuchnikov <eustas@google.com>
Co-authored-by: Eugene Kliuchnikov <eustas@google.com>
Provides small speedup on microarchitectures where the floating point divide is slower than the floating point multiply.
As measured on an Ampere Altra, I see about +0.5% depending on the input.