summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2008-07-31 20:09:47 +0000
committerdas <das@FreeBSD.org>2008-07-31 20:09:47 +0000
commit586e2dbb6a95a58d92989b9366ff355b2d211177 (patch)
tree33878bb9cca83ea3e9aa036d11b1a26a210d969d
parent9f333dcb2cca361c8dcfe7743d1061e62e59913a (diff)
downloadFreeBSD-src-586e2dbb6a95a58d92989b9366ff355b2d211177.zip
FreeBSD-src-586e2dbb6a95a58d92989b9366ff355b2d211177.tar.gz
The high part of the mantissa is 64 bits on sparc64.
-rw-r--r--lib/msun/src/e_fmodl.c2
-rw-r--r--lib/msun/src/s_remquol.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/msun/src/e_fmodl.c b/lib/msun/src/e_fmodl.c
index c983000..e315f76 100644
--- a/lib/msun/src/e_fmodl.c
+++ b/lib/msun/src/e_fmodl.c
@@ -132,7 +132,7 @@ fmodl(long double x, long double y)
/* convert back to floating value and restore the sign */
if((hx|lx)==0) /* return sign(x)*0 */
return Zero[sx];
- while(hx<(1U<<HFRAC_BITS)) { /* normalize x */
+ while(hx<(1ULL<<HFRAC_BITS)) { /* normalize x */
hx = hx+hx+(lx>>MANL_SHIFT); lx = lx+lx;
iy -= 1;
}
diff --git a/lib/msun/src/s_remquol.c b/lib/msun/src/s_remquol.c
index 9f20ee0..9f5b578 100644
--- a/lib/msun/src/s_remquol.c
+++ b/lib/msun/src/s_remquol.c
@@ -141,7 +141,7 @@ remquol(long double x, long double y, int *quo)
*quo = (sxy ? -q : q);
return Zero[sx];
}
- while(hx<(1U<<HFRAC_BITS)) { /* normalize x */
+ while(hx<(1ULL<<HFRAC_BITS)) { /* normalize x */
hx = hx+hx+(lx>>MANL_SHIFT); lx = lx+lx;
iy -= 1;
}
OpenPOWER on IntegriCloud