X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fmath%2Fatan.c;h=63b0ab25e3cf02ea81bab5a9ee4d99d6c40bb582;hb=33ce920857405d4f4b342c85b74588a15e2702e5;hp=5a1d33e6a05c644610933b1bea8ea8e39f3f99f1;hpb=e216951f509b71da193da2fc63e25b998740d58b;p=oweals%2Fmusl.git diff --git a/src/math/atan.c b/src/math/atan.c index 5a1d33e6..63b0ab25 100644 --- a/src/math/atan.c +++ b/src/math/atan.c @@ -77,8 +77,9 @@ double atan(double x) } if (ix < 0x3fdc0000) { /* |x| < 0.4375 */ if (ix < 0x3e400000) { /* |x| < 2^-27 */ - /* raise inexact if x!=0 */ - FORCE_EVAL(x + 0x1p120f); + if (ix < 0x00100000) + /* raise underflow for subnormal x */ + FORCE_EVAL((float)x); return x; } id = -1;