summaryrefslogtreecommitdiff
path: root/math/e_scalb.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/e_scalb.c')
-rw-r--r--math/e_scalb.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/math/e_scalb.c b/math/e_scalb.c
index 7f61ce0455..692f105d7f 100644
--- a/math/e_scalb.c
+++ b/math/e_scalb.c
@@ -16,7 +16,6 @@
License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */
-#include <fenv.h>
#include <math.h>
#include <math_private.h>
@@ -26,10 +25,7 @@ __attribute__ ((noinline))
invalid_fn (double x, double fn)
{
if (__rint (fn) != fn)
- {
- __feraiseexcept (FE_INVALID);
- return __nan ("");
- }
+ return (fn - fn) / (fn - fn);
else if (fn > 65000.0)
return __scalbn (x, 65000);
else