[Beowulf] Optimized math routines/transcendentals
Greg Lindahl
lindahl at pbm.com
Fri Apr 29 16:28:01 PDT 2016
On Sat, Apr 30, 2016 at 02:23:31AM +0800, C Bergström wrote:
> Surprisingly, glibc does a pretty respectable job in terms of
> accuracy, but alas it's certainly not the fastest.
If you go look in the source comments I believe it says which paper's
algorithm it is using... doing range reduction for sin(6e5) is
expensive to do accurately. Which is why the x86 sin() hardware
instruction does it inaccurately but quickly, and most people/codes
don't care.
-- greg
More information about the Beowulf
mailing list