diff options
Diffstat (limited to 'sysdeps/generic/w_coshf.c')
-rw-r--r-- | sysdeps/generic/w_coshf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/generic/w_coshf.c b/sysdeps/generic/w_coshf.c index 53ca84108e..c38fd1d93f 100644 --- a/sysdeps/generic/w_coshf.c +++ b/sysdeps/generic/w_coshf.c @@ -37,7 +37,7 @@ static char rcsid[] = "$NetBSD: w_coshf.c,v 1.3 1995/05/10 20:48:49 jtc Exp $"; float z; z = __ieee754_coshf(x); if(_LIB_VERSION == _IEEE_ || __isnanf(x)) return z; - if(fabsf(x)>(float)8.9415985107e+01) { + if(!__finite(z) && __finite(x)) { /* cosh overflow */ return (float)__kernel_standard((double)x,(double)x,105); } else |