Alternative math libraries
Bruce Allen
ballen@gravity.phys.uwm.edu
Thu May 24 07:25:00 GMT 2001
> Bruce Allen writes:
> > I think it's too bad that the intel linux libm gives incorrect answers.
>
> I was sure that linux glibc libm on Intel uses the actual x86
> trigometric instructions to implement these routines.
>
> Later,
> David S. Miller
> davem@redhat.com
That's correct. Those hardware instructions only give the correct
answer when |x|<2^62. For larger |x| one needs to do (correct) argument
reduction. Other libraries (including solaris running on x86) do this;
glibc libm doesn't.
Bruce
More information about the Libc-alpha
mailing list