summaryrefslogtreecommitdiffstats
path: root/lib/msun/ld80
diff options
context:
space:
mode:
authorkargl <kargl@FreeBSD.org>2013-06-03 19:13:44 +0000
committerkargl <kargl@FreeBSD.org>2013-06-03 19:13:44 +0000
commit812c0e439302690bddbfa8b33d733285a3b24fe9 (patch)
treefb306508993bc0afee36e06852dc656db25fe49f /lib/msun/ld80
parent1f81e8e0a39d8b471b432e644a47a090d7505e25 (diff)
downloadFreeBSD-src-812c0e439302690bddbfa8b33d733285a3b24fe9.zip
FreeBSD-src-812c0e439302690bddbfa8b33d733285a3b24fe9.tar.gz
ld80/s_expl.c:
* Use integral numerical constants, and let the compiler do the conversion to long double. ld128/s_expl.c: * Use integral numerical constants, and let the compiler do the conversion to long double. * Use the ENTERI/RETURNI macros, which are no-ops on ld128. This however makes the ld80 and ld128 identical. Reviewed by: bde (as part of larger diff)
Diffstat (limited to 'lib/msun/ld80')
-rw-r--r--lib/msun/ld80/s_expl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/msun/ld80/s_expl.c b/lib/msun/ld80/s_expl.c
index 79c5110..5bec63b 100644
--- a/lib/msun/ld80/s_expl.c
+++ b/lib/msun/ld80/s_expl.c
@@ -278,7 +278,7 @@ expl(long double x)
r2 = fn * -L2;
/* Prepare scale factors. */
- v.e = 1ULL << 63;
+ v.e = 1;
if (k >= LDBL_MIN_EXP) {
v.xbits.expsign = BIAS + k;
twopk = v.e;
@@ -296,7 +296,7 @@ expl(long double x)
/* Scale by 2**k. */
if (k >= LDBL_MIN_EXP) {
if (k == LDBL_MAX_EXP)
- RETURNI(t * 2.0L * 0x1p16383L);
+ RETURNI(t * 2 * 0x1p16383L);
RETURNI(t * twopk);
} else {
RETURNI(t * twopkp10000 * twom10000);
OpenPOWER on IntegriCloud