This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Alternative math libraries



> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]