Blame SOURCES/coreutils-8.22-ppc64le.patch

f180de
diff -up coreutils-8.22/gnulib-tests/test-isnanl.h.ppc coreutils-8.22/gnulib-tests/test-isnanl.h
f180de
--- coreutils-8.22/gnulib-tests/test-isnanl.h.ppc	2014-06-23 14:01:05.925541920 +0200
f180de
+++ coreutils-8.22/gnulib-tests/test-isnanl.h	2014-06-23 14:01:39.437617584 +0200
f180de
@@ -51,6 +51,15 @@ main ()
f180de
   /* A bit pattern that is different from a Quiet NaN.  With a bit of luck,
f180de
      it's a Signalling NaN.  */
f180de
   {
f180de
+#if defined __powerpc__ && LDBL_MANT_DIG == 106
f180de
+    /* This is PowerPC "double double", a pair of two doubles.  Inf and Nan are
f180de
+       represented as the corresponding 64-bit IEEE values in the first double;
f180de
+       the second is ignored.  Manipulate only the first double.  */
f180de
+    #undef NWORDS
f180de
+    #define NWORDS \
f180de
+      ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
f180de
+#endif
f180de
+
f180de
     memory_long_double m;
f180de
     m.value = NaNl ();
f180de
 # if LDBL_EXPBIT0_BIT > 0
f180de
diff -up coreutils-8.22/gnulib-tests/test-signbit.c.ppc coreutils-8.22/gnulib-tests/test-signbit.c
f180de
--- coreutils-8.22/gnulib-tests/test-signbit.c.ppc	2013-12-04 15:53:33.000000000 +0100
f180de
+++ coreutils-8.22/gnulib-tests/test-signbit.c	2014-06-23 13:59:20.378307385 +0200
f180de
@@ -151,6 +151,16 @@ test_signbitl ()
f180de
     #define NWORDS \
f180de
       ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
f180de
     typedef union { long double value; unsigned int word[NWORDS]; } memory_long_double;
f180de
+
f180de
+#if defined __powerpc__ && LDBL_MANT_DIG == 106
f180de
+    /* This is PowerPC "double double", a pair of two doubles.  Inf and Nan are
f180de
+       represented as the corresponding 64-bit IEEE values in the first double;
f180de
+       the second is ignored.  Manipulate only the first double.  */
f180de
+    #undef NWORDS
f180de
+    #define NWORDS \
f180de
+      ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
f180de
+#endif
f180de
+
f180de
     memory_long_double m;
f180de
     m.value = zerol / zerol;
f180de
 # if LDBL_EXPBIT0_BIT > 0