Issue #1291 - Part 3: Update fdlibm to Sept 2019 version

This commit is contained in:
wolfbeast 2019-11-15 15:17:01 +01:00 committed by Roy Tam
commit ddb1aaaee3
16 changed files with 163 additions and 102 deletions

View file

@ -187,7 +187,7 @@ expm1(double x)
e = hxs*((r1-t)/(6.0 - x*t));
if(k==0) return x - (x*e-hxs); /* c is 0 */
else {
INSERT_WORDS(twopk,0x3ff00000+(k<<20),0); /* 2^k */
INSERT_WORDS(twopk,((u_int32_t)(0x3ff+k))<<20,0); /* 2^k */
e = (x*(e-c)-c);
e -= hxs;
if(k== -1) return 0.5*(x-e)-0.5;