summary refs log tree commit diff
path: root/math/e_scalbf.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/e_scalbf.c')
-rw-r--r--math/e_scalbf.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/math/e_scalbf.c b/math/e_scalbf.c
index 7377f6e1e8..8df86f4bb8 100644
--- a/math/e_scalbf.c
+++ b/math/e_scalbf.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 (float x, float fn)
 {
   if (__rintf (fn) != fn)
-    {
-      feraiseexcept (FE_INVALID);
-      return __nan ("");
-    }
+    return (fn - fn) / (fn - fn);
   else if (fn > 65000.0f)
     return __scalbnf (x, 65000);
   else