projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'upstream'
[gnulib.git]
/
tests
/
test-ldexpl.c
diff --git
a/tests/test-ldexpl.c
b/tests/test-ldexpl.c
index
395c00f
..
5f1fbd9
100644
(file)
--- a/
tests/test-ldexpl.c
+++ b/
tests/test-ldexpl.c
@@
-26,6
+26,7
@@
#include "fpucw.h"
#include "isnanl-nolibm.h"
#include "fpucw.h"
#include "isnanl-nolibm.h"
+#include "nan.h"
#define ASSERT(expr) \
do \
#define ASSERT(expr) \
do \
@@
-66,7
+67,7
@@
main ()
BEGIN_LONG_DOUBLE_ROUNDING ();
{ /* NaN. */
BEGIN_LONG_DOUBLE_ROUNDING ();
{ /* NaN. */
- x =
0.0L / 0.0L
;
+ x =
NaNl ()
;
y = ldexpl (x, 0); ASSERT (isnanl (y));
y = ldexpl (x, 5); ASSERT (isnanl (y));
y = ldexpl (x, -5); ASSERT (isnanl (y));
y = ldexpl (x, 0); ASSERT (isnanl (y));
y = ldexpl (x, 5); ASSERT (isnanl (y));
y = ldexpl (x, -5); ASSERT (isnanl (y));