projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
getloadavg: clean out old Emacs and Autoconf cruft
[gnulib.git]
/
tests
/
test-ceilf-ieee.c
diff --git
a/tests/test-ceilf-ieee.c
b/tests/test-ceilf-ieee.c
index
15a9fbf
..
63de131
100644
(file)
--- a/
tests/test-ceilf-ieee.c
+++ b/
tests/test-ceilf-ieee.c
@@
-1,5
+1,5
@@
/* Test of rounding towards positive infinity.
/* Test of rounding towards positive infinity.
- Copyright (C) 2010 Free Software Foundation, Inc.
+ Copyright (C) 2010
-2012
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
@@
-18,7
+18,10
@@
#include <math.h>
#include <math.h>
+#include "isnanf-nolibm.h"
#include "minus-zero.h"
#include "minus-zero.h"
+#include "infinity.h"
+#include "nan.h"
#include "macros.h"
/* If IEEE compliance was not requested, the ICC compiler inlines its
#include "macros.h"
/* If IEEE compliance was not requested, the ICC compiler inlines its
@@
-52,5
+55,13
@@
main (int argc, char **argv _GL_UNUSED)
ASSERT (!!signbit (my_ceilf (-0.3f)) == !!signbit (minus_zerof));
ASSERT (!!signbit (my_ceilf (-0.7f)) == !!signbit (minus_zerof));
ASSERT (!!signbit (my_ceilf (-0.3f)) == !!signbit (minus_zerof));
ASSERT (!!signbit (my_ceilf (-0.7f)) == !!signbit (minus_zerof));
+ /* [MX] shaded specification in POSIX. */
+
+ /* NaN. */
+ ASSERT (isnanf (ceilf (NaNf ())));
+ /* Infinity. */
+ ASSERT (ceilf (Infinityf ()) == Infinityf ());
+ ASSERT (ceilf (- Infinityf ()) == - Infinityf ());
+
return 0;
}
return 0;
}