2014-01-04 23:54:58 +01:00
|
|
|
---
|
|
|
|
gnulib-tests/test-isnanl.h | 9 +++++++++
|
|
|
|
gnulib-tests/test-signbit.c | 10 ++++++++++
|
|
|
|
2 files changed, 19 insertions(+)
|
|
|
|
|
|
|
|
Index: gnulib-tests/test-isnanl.h
|
|
|
|
===================================================================
|
2014-01-24 14:44:10 +01:00
|
|
|
--- gnulib-tests/test-isnanl.h.orig
|
|
|
|
+++ gnulib-tests/test-isnanl.h
|
2013-12-22 22:33:12 +01:00
|
|
|
@@ -51,6 +51,15 @@ main ()
|
|
|
|
/* A bit pattern that is different from a Quiet NaN. With a bit of luck,
|
|
|
|
it's a Signalling NaN. */
|
|
|
|
{
|
|
|
|
+#if defined __powerpc__ && LDBL_MANT_DIG == 106
|
|
|
|
+ /* This is PowerPC "double double", a pair of two doubles. Inf and Nan are
|
|
|
|
+ represented as the corresponding 64-bit IEEE values in the first double;
|
|
|
|
+ the second is ignored. Manipulate only the first double. */
|
|
|
|
+ #undef NWORDS
|
|
|
|
+ #define NWORDS \
|
|
|
|
+ ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
memory_long_double m;
|
|
|
|
m.value = NaNl ();
|
|
|
|
# if LDBL_EXPBIT0_BIT > 0
|
2014-01-04 23:54:58 +01:00
|
|
|
Index: gnulib-tests/test-signbit.c
|
|
|
|
===================================================================
|
2014-01-24 14:44:10 +01:00
|
|
|
--- gnulib-tests/test-signbit.c.orig
|
|
|
|
+++ gnulib-tests/test-signbit.c
|
2013-12-22 22:33:12 +01:00
|
|
|
@@ -151,6 +151,16 @@ test_signbitl ()
|
|
|
|
#define NWORDS \
|
|
|
|
((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
|
|
|
|
typedef union { long double value; unsigned int word[NWORDS]; } memory_long_double;
|
|
|
|
+
|
|
|
|
+#if defined __powerpc__ && LDBL_MANT_DIG == 106
|
|
|
|
+ /* This is PowerPC "double double", a pair of two doubles. Inf and Nan are
|
|
|
|
+ represented as the corresponding 64-bit IEEE values in the first double;
|
|
|
|
+ the second is ignored. Manipulate only the first double. */
|
|
|
|
+ #undef NWORDS
|
|
|
|
+ #define NWORDS \
|
|
|
|
+ ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
memory_long_double m;
|
|
|
|
m.value = zerol / zerol;
|
|
|
|
# if LDBL_EXPBIT0_BIT > 0
|