From: Alan Cox Date: Mon, 5 Mar 2018 20:25:58 +0000 (+0000) Subject: atanh: fix build X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=ded69a62f936315cc1a25a65cf12b0df925b303c;p=FUZIX.git atanh: fix build --- diff --git a/Library/libs/atanh.c b/Library/libs/atanh.c index 0f7a3058..7f6f329c 100644 --- a/Library/libs/atanh.c +++ b/Library/libs/atanh.c @@ -42,9 +42,9 @@ double atanh(double x) EXTRACT_WORDS(hx, lx, x); ix = hx & 0x7fffffff; if ((ix | ((lx|-lx)>>31)) > 0x3ff00000) /* |x| > 1 */ - return __sNaN; + return (x-x)/(x-x); if (ix == 0x3ff00000) - return __Nan; + return x/0.0; if (ix < 0x3e300000 && (huge+x) > 0.0) /* x < 2**-28 */ return x; SET_HIGH_WORD(x, ix);