diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-frexpl.c | 5 | ||||
-rw-r--r-- | tests/test-printf-frexpl.c | 5 |
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) { |