Mercurial > hg > octave-lyh > gnulib-hg
changeset 9380:fb10262f5117
Use isnanf() instead of isnan(). Avoids a link error on HP-UX 11.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 21 Oct 2007 20:06:53 +0200 |
parents | 0f9d36f18b6c |
children | cf9dbdc58818 |
files | ChangeLog tests/test-ceilf1.c tests/test-floorf1.c tests/test-roundf1.c tests/test-truncf1.c |
diffstat | 5 files changed, 23 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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.
--- a/tests/test-ceilf1.c +++ b/tests/test-ceilf1.c @@ -23,6 +23,8 @@ #include <stdio.h> #include <stdlib.h> +#include "isnanf.h" + #define ASSERT(expr) \ do \ { \ @@ -77,7 +79,7 @@ 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; }
--- a/tests/test-floorf1.c +++ b/tests/test-floorf1.c @@ -23,6 +23,8 @@ #include <stdio.h> #include <stdlib.h> +#include "isnanf.h" + #define ASSERT(expr) \ do \ { \ @@ -77,7 +79,7 @@ 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; }
--- a/tests/test-roundf1.c +++ b/tests/test-roundf1.c @@ -25,6 +25,8 @@ #include <stdio.h> #include <stdlib.h> +#include "isnanf.h" + #define ASSERT(expr) \ do \ { \ @@ -84,7 +86,7 @@ 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; }
--- a/tests/test-truncf1.c +++ b/tests/test-truncf1.c @@ -23,6 +23,8 @@ #include <stdio.h> #include <stdlib.h> +#include "isnanf.h" + #define ASSERT(expr) \ do \ { \ @@ -76,7 +78,7 @@ 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; }