Use isnanf() instead of isnan(). Avoids a link error on HP-UX 11.
authorBruno Haible <bruno@clisp.org>
Sun, 21 Oct 2007 18:06:53 +0000 (20:06 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 21 Oct 2007 18:06:53 +0000 (20:06 +0200)
ChangeLog
tests/test-ceilf1.c
tests/test-floorf1.c
tests/test-roundf1.c
tests/test-truncf1.c

index 6752fda..2638e84 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2007-10-21  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-floorf1.c: Include isnanf.h.
+       (main): Use isnanf() instead of isnan().
+       * tests/test-ceil1.c: Include isnanf.h.
+       (main): Use isnanf() instead of isnan().
+       * tests/test-trunc1.c: Include isnanf.h.
+       (main): Use isnanf() instead of isnan().
+       * tests/test-round1.c: Include isnanf.h.
+       (main): Use isnanf() instead of isnan().
+
 2007-10-21  Eric Blake  <ebb9@byu.net>
 
        * users.txt: Update URL for m4.
index 485b16f..36a1163 100644 (file)
@@ -23,6 +23,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 
+#include "isnanf.h"
+
 #define ASSERT(expr) \
   do                                                                        \
     {                                                                       \
@@ -77,7 +79,7 @@ main ()
   ASSERT (ceilf (1.0f / 0.0f) == 1.0f / 0.0f);
   ASSERT (ceilf (-1.0f / 0.0f) == -1.0f / 0.0f);
   /* NaNs.  */
-  ASSERT (isnan (ceilf (NaN ())));
+  ASSERT (isnanf (ceilf (NaN ())));
 
   return 0;
 }
index c411520..afd006b 100644 (file)
@@ -23,6 +23,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 
+#include "isnanf.h"
+
 #define ASSERT(expr) \
   do                                                                        \
     {                                                                       \
@@ -77,7 +79,7 @@ main ()
   ASSERT (floorf (1.0f / 0.0f) == 1.0f / 0.0f);
   ASSERT (floorf (-1.0f / 0.0f) == -1.0f / 0.0f);
   /* NaNs.  */
-  ASSERT (isnan (floorf (NaN ())));
+  ASSERT (isnanf (floorf (NaN ())));
 
   return 0;
 }
index 6311e3a..67d5c7f 100644 (file)
@@ -25,6 +25,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 
+#include "isnanf.h"
+
 #define ASSERT(expr) \
   do                                                                        \
     {                                                                       \
@@ -84,7 +86,7 @@ main ()
   ASSERT (roundf (1.0 / 0.0f) == 1.0 / 0.0f);
   ASSERT (roundf (-1.0 / 0.0f) == -1.0 / 0.0f);
   /* NaNs.  */
-  ASSERT (isnan (roundf (NaN ())));
+  ASSERT (isnanf (roundf (NaN ())));
 
   return 0;
 }
index 0fefc7f..8915f9f 100644 (file)
@@ -23,6 +23,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 
+#include "isnanf.h"
+
 #define ASSERT(expr) \
   do                                                                        \
     {                                                                       \
@@ -76,7 +78,7 @@ main ()
   ASSERT (truncf (1.0f / 0.0f) == 1.0f / 0.0f);
   ASSERT (truncf (-1.0f / 0.0f) == -1.0f / 0.0f);
   /* NaNs.  */
-  ASSERT (isnan (truncf (NaN ())));
+  ASSERT (isnanf (truncf (NaN ())));
 
   return 0;
 }