summaryrefslogtreecommitdiffstats
path: root/modules/fdlibm/patches/14_do_not_use_hexadecimal_floating_point_number.patch
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-11-15 15:17:37 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-11-15 15:17:37 +0100
commit59f4de4c45e126f5f20633808ce28548d5879b16 (patch)
tree2db061bafcebcac423ca7deeb152435c44944419 /modules/fdlibm/patches/14_do_not_use_hexadecimal_floating_point_number.patch
parent5e902a4a9a25a9e151b5d3945c68517bc0c73139 (diff)
downloadUXP-59f4de4c45e126f5f20633808ce28548d5879b16.tar
UXP-59f4de4c45e126f5f20633808ce28548d5879b16.tar.gz
UXP-59f4de4c45e126f5f20633808ce28548d5879b16.tar.lz
UXP-59f4de4c45e126f5f20633808ce28548d5879b16.tar.xz
UXP-59f4de4c45e126f5f20633808ce28548d5879b16.zip
Issue #1291 - Part 4: Update patch files
Diffstat (limited to 'modules/fdlibm/patches/14_do_not_use_hexadecimal_floating_point_number.patch')
-rw-r--r--modules/fdlibm/patches/14_do_not_use_hexadecimal_floating_point_number.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/fdlibm/patches/14_do_not_use_hexadecimal_floating_point_number.patch b/modules/fdlibm/patches/14_do_not_use_hexadecimal_floating_point_number.patch
index 627603448..85f511882 100644
--- a/modules/fdlibm/patches/14_do_not_use_hexadecimal_floating_point_number.patch
+++ b/modules/fdlibm/patches/14_do_not_use_hexadecimal_floating_point_number.patch
@@ -3,9 +3,9 @@ diff --git a/modules/fdlibm/src/e_exp.cpp b/modules/fdlibm/src/e_exp.cpp
+++ b/modules/fdlibm/src/e_exp.cpp
@@ -146,14 +146,17 @@ double
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);