-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improved implementation of hypot(a,b) (#31922)
* Replacement for hypot(a,b) Provides a fast and accurate implementation of hypot() that leverages the fused multiply add where available. The approach is explained and tested in detail in the paper: An Improved Algorithm for hypot(a,b) by Carlos F. Borges The article is available online at ArXiv at the link https://arxiv.org/abs/1904.09481 This version gives correctly rounded results more than 99% of the time. It is 10 times better than the C math library hypot function in this respect.
- Loading branch information
1 parent
b9ea972
commit 4a04600
Showing
2 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters