projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
qacl: port to Windows better
[gnulib.git]
/
tests
/
test-floorl-ieee.c
diff --git
a/tests/test-floorl-ieee.c
b/tests/test-floorl-ieee.c
index
7ca6191
..
855356b
100644
(file)
--- a/
tests/test-floorl-ieee.c
+++ b/
tests/test-floorl-ieee.c
@@
-1,5
+1,5
@@
/* Test of rounding towards negative infinity.
/* Test of rounding towards negative infinity.
- Copyright (C) 2010-201
1
Free Software Foundation, Inc.
+ Copyright (C) 2010-201
3
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
@@
-19,7
+19,10
@@
#include <math.h>
#include "fpucw.h"
#include <math.h>
#include "fpucw.h"
+#include "isnanl-nolibm.h"
#include "minus-zero.h"
#include "minus-zero.h"
+#include "infinity.h"
+#include "nan.h"
#include "macros.h"
int
#include "macros.h"
int
@@
-44,5
+47,13
@@
main ()
ASSERT (!!signbit (floorl (-0.3L)) == !!signbit (minus_zerol));
ASSERT (!!signbit (floorl (-0.7L)) == !!signbit (minus_zerol));
ASSERT (!!signbit (floorl (-0.3L)) == !!signbit (minus_zerol));
ASSERT (!!signbit (floorl (-0.7L)) == !!signbit (minus_zerol));
+ /* [MX] shaded specification in POSIX. */
+
+ /* NaN. */
+ ASSERT (isnanl (floorl (NaNl ())));
+ /* Infinity. */
+ ASSERT (floorl (Infinityl ()) == Infinityl ());
+ ASSERT (floorl (- Infinityl ()) == - Infinityl ());
+
return 0;
}
return 0;
}