projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
doc: Improve wording in relocatable-maint.texi.
[gnulib.git]
/
tests
/
test-isnanf.h
diff --git
a/tests/test-isnanf.h
b/tests/test-isnanf.h
index
7f6eb12
..
60499b5
100644
(file)
--- a/
tests/test-isnanf.h
+++ b/
tests/test-isnanf.h
@@
-1,5
+1,5
@@
/* Test of isnanf() substitute.
/* Test of isnanf() substitute.
- Copyright (C) 2007-20
08
Free Software Foundation, Inc.
+ Copyright (C) 2007-20
13
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
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
@@
-17,22
+17,11
@@
/* Written by Bruno Haible <bruno@clisp.org>, 2007. */
#include <limits.h>
/* Written by Bruno Haible <bruno@clisp.org>, 2007. */
#include <limits.h>
-#include <stdio.h>
-#include <stdlib.h>
+#include "minus-zero.h"
+#include "infinity.h"
#include "nan.h"
#include "nan.h"
-
-#define ASSERT(expr) \
- do \
- { \
- if (!(expr)) \
- { \
- fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \
- fflush (stderr); \
- abort (); \
- } \
- } \
- while (0)
+#include "macros.h"
int
main ()
int
main ()
@@
-45,10
+34,10
@@
main ()
ASSERT (!isnanf (-2.718e30f));
ASSERT (!isnanf (-2.718e-30f));
ASSERT (!isnanf (0.0f));
ASSERT (!isnanf (-2.718e30f));
ASSERT (!isnanf (-2.718e-30f));
ASSERT (!isnanf (0.0f));
- ASSERT (!isnanf (
-0.0
f));
+ ASSERT (!isnanf (
minus_zero
f));
/* Infinite values. */
/* Infinite values. */
- ASSERT (!isnanf (
1.0f / 0.0f
));
- ASSERT (!isnanf (-
1.0f / 0.0f
));
+ ASSERT (!isnanf (
Infinityf ()
));
+ ASSERT (!isnanf (-
Infinityf ()
));
/* Quiet NaN. */
ASSERT (isnanf (NaNf ()));
#if defined FLT_EXPBIT0_WORD && defined FLT_EXPBIT0_BIT
/* Quiet NaN. */
ASSERT (isnanf (NaNf ()));
#if defined FLT_EXPBIT0_WORD && defined FLT_EXPBIT0_BIT