diff options
Diffstat (limited to 'sysdeps/libm-ieee754/s_ilogbf.c')
-rw-r--r-- | sysdeps/libm-ieee754/s_ilogbf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sysdeps/libm-ieee754/s_ilogbf.c b/sysdeps/libm-ieee754/s_ilogbf.c index 2440803c20..e652b93619 100644 --- a/sysdeps/libm-ieee754/s_ilogbf.c +++ b/sysdeps/libm-ieee754/s_ilogbf.c @@ -8,7 +8,7 @@ * * Developed at SunPro, a Sun Microsystems, Inc. business. * Permission to use, copy, modify, and distribute this - * software is freely granted, provided that this notice + * software is freely granted, provided that this notice * is preserved. * ==================================================== */ @@ -32,13 +32,13 @@ static char rcsid[] = "$NetBSD: s_ilogbf.c,v 1.4 1995/05/10 20:47:31 jtc Exp $"; GET_FLOAT_WORD(hx,x); hx &= 0x7fffffff; if(hx<0x00800000) { - if(hx==0) - return 0x80000001; /* ilogb(0) = 0x80000001 */ + if(hx==0) + return FP_ILOGB0; /* ilogb(0) = FP_ILOGB0 */ else /* subnormal x */ for (ix = -126,hx<<=8; hx>0; hx<<=1) ix -=1; return ix; } else if (hx<0x7f800000) return (hx>>23)-127; - else return 0x7fffffff; + else return FP_ILOGBNAN; } weak_alias (__ilogbf, ilogbf) |