This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: A patch for typo in sysdeps/ieee754/flt-32/s_sincosf.c
On Fri, Dec 15, 2000 at 07:42:27AM +0100, Andreas Jaeger wrote:
> >>>>> H J Lu writes:
>
> > Here is a patch for sysdeps/ieee754/flt-32/s_sincosf.c. The exponent
> > field in a float is 8 bits, not 11 bits. We should check against
> > 0x7f800000 not 0x7ff00000.
>
> Thanks, I've committed this. Do you have a testcase for this? I'd
> like to add a regression test to libm-tests.
>
I don't have a testcase. I noticed it because "make check" failed under
ia64 with -O2 :-). I have been wondering how it works on other CPUs :-).
The wrong sincosf (NAN, &x, &y) should generate the invalid exception.
But it only did on ia64 with -O2.
H.J.