summaryrefslogtreecommitdiffstats
path: root/modules/fdlibm/src/e_exp.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-11-15 15:17:01 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-11-15 15:17:01 +0100
commit5e902a4a9a25a9e151b5d3945c68517bc0c73139 (patch)
treea2e314bc193f4bdd52bb45adfc12f2803c265469 /modules/fdlibm/src/e_exp.cpp
parent6ca0b4704367f8804e0373cb439e6e17e5146e4a (diff)
downloadUXP-5e902a4a9a25a9e151b5d3945c68517bc0c73139.tar
UXP-5e902a4a9a25a9e151b5d3945c68517bc0c73139.tar.gz
UXP-5e902a4a9a25a9e151b5d3945c68517bc0c73139.tar.lz
UXP-5e902a4a9a25a9e151b5d3945c68517bc0c73139.tar.xz
UXP-5e902a4a9a25a9e151b5d3945c68517bc0c73139.zip
Issue #1291 - Part 3: Update fdlibm to Sept 2019 version
Diffstat (limited to 'modules/fdlibm/src/e_exp.cpp')
-rw-r--r--modules/fdlibm/src/e_exp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/fdlibm/src/e_exp.cpp b/modules/fdlibm/src/e_exp.cpp
index c4e530d4d..92af819ce 100644
--- a/modules/fdlibm/src/e_exp.cpp
+++ b/modules/fdlibm/src/e_exp.cpp
@@ -147,9 +147,9 @@ __ieee754_exp(double x) /* default IEEE double exp */
/* x is now in primary range */
t = x*x;
if(k >= -1021)
- INSERT_WORDS(twopk,0x3ff00000+(k<<20), 0);
+ INSERT_WORDS(twopk,((u_int32_t)(0x3ff+k))<<20, 0);
else
- INSERT_WORDS(twopk,0x3ff00000+((k+1000)<<20), 0);
+ INSERT_WORDS(twopk,((u_int32_t)(0x3ff+(k+1000)))<<20, 0);
c = x - t*(P1+t*(P2+t*(P3+t*(P4+t*P5))));
if(k==0) return one-((x*c)/(c-2.0)-x);
else y = one-((lo-(x*c)/(2.0-c))-hi);