summaryrefslogtreecommitdiff
path: root/test/Unit/fixunsxfdi_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Unit/fixunsxfdi_test.c')
-rw-r--r--test/Unit/fixunsxfdi_test.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/Unit/fixunsxfdi_test.c b/test/Unit/fixunsxfdi_test.c
index c839a361..f8c89451 100644
--- a/test/Unit/fixunsxfdi_test.c
+++ b/test/Unit/fixunsxfdi_test.c
@@ -11,11 +11,12 @@
//
//===----------------------------------------------------------------------===//
-#if !_ARCH_PPC
-
#include "int_lib.h"
#include <stdio.h>
+#include <limits.h>
+
+#if HAS_80_BIT_LONG_DOUBLE
// Returns: convert a to a unsigned long long, rounding toward zero.
// Negative values all become zero.
@@ -41,12 +42,11 @@ int test__fixunsxfdi(long double a, du_int expected)
char assumption_1[sizeof(du_int) == 2*sizeof(su_int)] = {0};
char assumption_2[sizeof(du_int)*CHAR_BIT == 64] = {0};
char assumption_3[sizeof(long double)*CHAR_BIT == 128] = {0};
-
#endif
int main()
{
-#if !_ARCH_PPC
+#if HAS_80_BIT_LONG_DOUBLE
if (test__fixunsxfdi(0.0, 0))
return 1;