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]

A patch for typo in sysdeps/ieee754/flt-32/s_sincosf.c


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.


-- 
H.J. Lu (hjl@valinux.com)
---
2000-12-14  H.J. Lu  <hjl@gnu.org>

	* sysdeps/ieee754/flt-32/s_sincosf.c (__sincosf): The exponent
	field in a float is 8 bits, not 11 bits.

Index: sysdeps/ieee754/flt-32/s_sincosf.c
===================================================================
RCS file: /work/cvs/gnu/glibc/sysdeps/ieee754/flt-32/s_sincosf.c,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 s_sincosf.c
--- sysdeps/ieee754/flt-32/s_sincosf.c	2000/05/21 21:11:36	1.1.1.1
+++ sysdeps/ieee754/flt-32/s_sincosf.c	2000/12/15 01:35:46
@@ -38,7 +38,7 @@ __sincosf (float x, float *sinx, float *
       *sinx = __kernel_sinf (x, 0.0, 0);
       *cosx = __kernel_cosf (x, 0.0);
     }
-  else if (ix>=0x7ff00000)
+  else if (ix>=0x7f800000)
     {
       /* sin(Inf or NaN) is NaN */
       *sinx = *cosx = x - x;

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