NEWS.stable: log cherry-pick [e446f25]->[c092018] relocatable-shell: Update suggested...
[gnulib.git] / lib / signbitd.c
index 8907766..26f30d5 100644 (file)
@@ -1,5 +1,5 @@
 /* signbit() macro: Determine the sign bit of a floating-point number.
-   Copyright (C) 2007 Free Software Foundation, Inc.
+   Copyright (C) 2007-2014 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
 #include <math.h>
 
 #include <string.h>
-#include "isnan.h"
+#include "isnand-nolibm.h"
 #include "float+.h"
 
-#undef gl_signbitd
+#ifdef gl_signbitd_OPTIMIZED_MACRO
+# undef gl_signbitd
+#endif
 
 int
 gl_signbitd (double arg)
@@ -45,7 +47,7 @@ gl_signbitd (double arg)
 #else
   /* This does not do the right thing for NaN, but this is irrelevant for
      most use cases.  */
-  if (isnan (arg))
+  if (isnand (arg))
     return 0;
   if (arg < 0.0)
     return 1;