aboutsummaryrefslogtreecommitdiff
path: root/newlib/libm/math/e_exp.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libm/math/e_exp.c')
-rw-r--r--newlib/libm/math/e_exp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/newlib/libm/math/e_exp.c b/newlib/libm/math/e_exp.c
index ce093c6..e7455ee 100644
--- a/newlib/libm/math/e_exp.c
+++ b/newlib/libm/math/e_exp.c
@@ -109,7 +109,7 @@ P5 = 4.13813679705723846039e-08; /* 0x3E663769, 0x72BEA4D0 */
#endif
{
double y,hi,lo,c,t;
- __int32_t k,xsb;
+ __int32_t k = 0,xsb;
__uint32_t hx;
GET_HIGH_WORD(hx,x);
@@ -144,7 +144,6 @@ P5 = 4.13813679705723846039e-08; /* 0x3E663769, 0x72BEA4D0 */
else if(hx < 0x3e300000) { /* when |x|<2**-28 */
if(huge+x>one) return one+x;/* trigger inexact */
}
- else k = 0;
/* x is now in primary range */
t = x*x;