diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2008-12-22 05:22:28 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2008-12-22 05:22:28 +0000 |
commit | af59a8070928c9465a7563f7eda803b999b4a4d2 (patch) | |
tree | c520e5c0b3b83eb1563488f6f179ff9c3f67f218 /lib/libm | |
parent | 56deebd9548483b798423fa839262a719a3f4bde (diff) |
Let this compile with gcc 2.
Diffstat (limited to 'lib/libm')
-rw-r--r-- | lib/libm/src/ld80/s_exp2l.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libm/src/ld80/s_exp2l.c b/lib/libm/src/ld80/s_exp2l.c index 8e6cea6d183..b84dc955f66 100644 --- a/lib/libm/src/ld80/s_exp2l.c +++ b/lib/libm/src/ld80/s_exp2l.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s_exp2l.c,v 1.1 2008/12/09 20:00:35 martynas Exp $ */ +/* $OpenBSD: s_exp2l.c,v 1.2 2008/12/22 05:22:27 miod Exp $ */ /*- * Copyright (c) 2005-2008 David Schultz <das@FreeBSD.ORG> * All rights reserved. @@ -213,7 +213,7 @@ exp2l(long double x) long double e; struct ieee_ext bits; } u, v; - long double r, twopk, twopkp10000, z; + long double r, twopk, twopkp10000, z, t_hi, t_lo; uint32_t es, hx, ix, i0; int k; @@ -274,8 +274,8 @@ exp2l(long double x) } /* Compute r = exp2l(y) = exp2lt[i0] * p(z). */ - long double t_hi = tbl[i0]; - long double t_lo = tbl[i0 + 1]; + t_hi = tbl[i0]; + t_lo = tbl[i0 + 1]; /* XXX This gives > 1 ulp errors outside of FE_TONEAREST mode */ r = t_lo + (t_hi + t_lo) * z * (P1 + z * (P2 + z * (P3 + z * (P4 + z * (P5 + z * P6))))) + t_hi; |