public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
286e41a
)
atanh: fix build
author
Alan Cox
<alan@linux.intel.com>
Mon, 5 Mar 2018 20:25:58 +0000
(20:25 +0000)
committer
Alan Cox
<alan@linux.intel.com>
Mon, 5 Mar 2018 20:25:58 +0000
(20:25 +0000)
Library/libs/atanh.c
patch
|
blob
|
history
diff --git
a/Library/libs/atanh.c
b/Library/libs/atanh.c
index
0f7a305
..
7f6f329
100644
(file)
--- 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);