summaryrefslogtreecommitdiff
path: root/math/test-misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/test-misc.c')
-rw-r--r--math/test-misc.c27
1 files changed, 14 insertions, 13 deletions
diff --git a/math/test-misc.c b/math/test-misc.c
index 962e5f69de..515277f5ad 100644
--- a/math/test-misc.c
+++ b/math/test-misc.c
@@ -26,19 +26,20 @@ main (void)
{
int result = 0;
- if (sizeof (long double) >= 12)
- {
- long double x = 0x100000001ll + (long double) 0.5;
- long double q;
- long double r;
-
- r = modfl (x, &q);
- if (q != (long double) 0x100000001ll || r != 0.5)
- {
- printf ("modfl (%Lg, ...) failed\n", x);
- result = 1;
- }
- }
+#ifndef NO_LONG_DOUBLE
+ {
+ long double x = 0x100000001ll + (long double) 0.5;
+ long double q;
+ long double r;
+
+ r = modfl (x, &q);
+ if (q != (long double) 0x100000001ll || r != 0.5)
+ {
+ printf ("modfl (%Lg, ...) failed\n", x);
+ result = 1;
+ }
+ }
+#endif
{
double x = 0x100000001ll + (double) 0.5;