commit | 99ef447d0fe8a11a134b817c9406bc2ce2b84dff | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Wed Jan 12 17:51:20 2022 -0800 |
committer | Elliott Hughes <enh@google.com> | Wed Jan 12 17:52:15 2022 -0800 |
tree | 8c29d7170f83e81a003e4cc44bfca10c09619046 | |
parent | c79b02088b0cc46f13a6c2391526761aa2d49c54 [diff] [blame] |
libm: sync with upstream. There's potential here to maybe lose some/all of builtins.cpp, but I'll look at that separately later. Test: treehugger Change-Id: I2c2bc1d0753affdd214daeb09fa1ac7cd73db347
diff --git a/libm/upstream-freebsd/lib/msun/src/s_ctanhf.c b/libm/upstream-freebsd/lib/msun/src/s_ctanhf.c index d2bd0b6..c46f86d 100644 --- a/libm/upstream-freebsd/lib/msun/src/s_ctanhf.c +++ b/libm/upstream-freebsd/lib/msun/src/s_ctanhf.c
@@ -61,7 +61,7 @@ } if (!isfinite(y)) - return (CMPLXF(y - y, y - y)); + return (CMPLXF(ix ? y - y : x, y - y)); if (ix >= 0x41300000) { /* |x| >= 11 */ float exp_mx = expf(-fabsf(x));