summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2007-03-25 02:29:46 +0000
committerBruno Haible <bruno@clisp.org>2007-03-25 02:29:46 +0000
commitcdaeb6bb213d6042df46e0b3584718ede9f18511 (patch)
tree720f43db5fc46ea76cdde6ff5aab51e94b8699c6 /tests
parent4dc27a0bc853c709864c40afadcd06a63236a63a (diff)
downloadgnulib-cdaeb6bb213d6042df46e0b3584718ede9f18511.tar.gz
New module 'fpucw'.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-frexpl.c5
-rw-r--r--tests/test-printf-frexpl.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/test-frexpl.c b/tests/test-frexpl.c
index f98fcf109d..447c3b9a7a 100644
--- a/tests/test-frexpl.c
+++ b/tests/test-frexpl.c
@@ -24,6 +24,8 @@
#include <float.h>
#include <stdlib.h>
+#include "fpucw.h"
+
#define ASSERT(expr) if (!(expr)) abort ();
static long double
@@ -41,6 +43,9 @@ main ()
{
int i;
long double x;
+ DECL_LONG_DOUBLE_ROUNDING
+
+ BEGIN_LONG_DOUBLE_ROUNDING ();
{ /* NaN. */
int exp = -9999;
diff --git a/tests/test-printf-frexpl.c b/tests/test-printf-frexpl.c
index 32c92e8f30..15cd91d85b 100644
--- a/tests/test-printf-frexpl.c
+++ b/tests/test-printf-frexpl.c
@@ -24,6 +24,8 @@
#include <float.h>
#include <stdlib.h>
+#include "fpucw.h"
+
#define ASSERT(expr) if (!(expr)) abort ();
static long double
@@ -41,6 +43,9 @@ main ()
{
int i;
long double x;
+ DECL_LONG_DOUBLE_ROUNDING
+
+ BEGIN_LONG_DOUBLE_ROUNDING ();
for (i = 1, x = 1.0L; i <= LDBL_MAX_EXP; i++, x *= 2.0L)
{