Mercurial > hg > CbC > CbC_gcc
diff libquadmath/math/tanhq.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | 561a7518be6b |
children | 1830386684a0 |
line wrap: on
line diff
--- a/libquadmath/math/tanhq.c Sun Aug 21 07:07:55 2011 +0900 +++ b/libquadmath/math/tanhq.c Fri Oct 27 22:46:09 2017 +0900 @@ -72,7 +72,10 @@ if (u.value == 0) return x; /* x == +- 0 */ if (ix < 0x3fc60000) /* |x| < 2^-57 */ - return x * (one + tiny); /* tanh(small) = small */ + { + math_check_force_underflow (x); + return x * (one + tiny); /* tanh(small) = small */ + } u.words32.w0 = ix; /* Absolute value of x. */ if (ix >= 0x3fff0000) { /* |x| >= 1 */