diff options
Diffstat (limited to 'sysdeps/generic/e_scalb.c')
-rw-r--r-- | sysdeps/generic/e_scalb.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/generic/e_scalb.c b/sysdeps/generic/e_scalb.c index 2e4094390a..a7664db546 100644 --- a/sysdeps/generic/e_scalb.c +++ b/sysdeps/generic/e_scalb.c @@ -50,14 +50,18 @@ static char rcsid[] = "$NetBSD: e_scalb.c,v 1.6 1995/05/10 20:46:09 jtc Exp $"; return x; else if (!__finite (x)) { +# ifdef FE_INVALID feraiseexcept (FE_INVALID); +# endif return __nan (""); } else return x/(-fn); } if (__rint(fn)!=fn) { +# ifdef FE_INVALID feraiseexcept (FE_INVALID); +# endif return __nan (""); } if ( fn > 65000.0) return __scalbn(x, 65000); |