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: [ballen@uwm.edu] libc/2269: triginometric argument reductionerror in libm



> What actually happens is that if you try to use the fsin instruction
> on operands where |x| > 2^63, it does nothing and sets an error flag.
> The problem is that the glibc x86 libm doesn't recover accurately in
> this case (it should reduce the argument and use fsin again).

Since there is clearly already argument reduction code in the library, and
since it is derived from the same Sun Microsystems code that gives
agreement with BC and with the Compaq Extended Math Library when running
on AXP machines, isn't it simply a question of modifying the code for
sin() (and code for cos(), sincos(), tan(), etc to do the argument
reduction properly first, simply by calling the existing argument
reduction routines?

Bruce


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