summaryrefslogtreecommitdiff
path: root/debian/patches/float-endian-detection.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/float-endian-detection.patch')
-rw-r--r--debian/patches/float-endian-detection.patch20
1 files changed, 12 insertions, 8 deletions
diff --git a/debian/patches/float-endian-detection.patch b/debian/patches/float-endian-detection.patch
index d094516..66bed0d 100644
--- a/debian/patches/float-endian-detection.patch
+++ b/debian/patches/float-endian-detection.patch
@@ -5,11 +5,13 @@ Author: Colin Watson <cjwatson@ubuntu.com>
Forwarded: no
Last-Update: 2013-12-18
+Index: b/tests/test-isnanl.h
+===================================================================
--- a/tests/test-isnanl.h
+++ b/tests/test-isnanl.h
-@@ -24,6 +24,12 @@
- #include "nan.h"
- #include "macros.h"
+@@ -38,6 +38,12 @@
+ long double minus_zero = -0.0L;
+ #endif
+#ifdef __FLOAT_WORD_ORDER__
+# define FLOAT_BIG_ENDIAN (__FLOAT_WORD_ORDER__ != __ORDER_LITTLE_ENDIAN__)
@@ -20,7 +22,7 @@ Last-Update: 2013-12-18
int
main ()
{
-@@ -65,10 +71,10 @@
+@@ -70,10 +76,10 @@
# if LDBL_EXPBIT0_BIT > 0
m.word[LDBL_EXPBIT0_WORD] ^= (unsigned int) 1 << (LDBL_EXPBIT0_BIT - 1);
# else
@@ -33,11 +35,13 @@ Last-Update: 2013-12-18
|= (unsigned int) 1 << LDBL_EXPBIT0_BIT;
ASSERT (isnanl (m.value));
}
+Index: b/tests/test-signbit.c
+===================================================================
--- a/tests/test-signbit.c
+++ b/tests/test-signbit.c
-@@ -36,6 +36,12 @@
- double zerod = 0.0;
- long double zerol = 0.0L;
+@@ -56,6 +56,12 @@
+ long double minus_zerol = -0.0L;
+ #endif
+#ifdef __FLOAT_WORD_ORDER__
+# define FLOAT_BIG_ENDIAN (__FLOAT_WORD_ORDER__ != __ORDER_LITTLE_ENDIAN__)
@@ -48,7 +52,7 @@ Last-Update: 2013-12-18
static void
test_signbitf ()
{
-@@ -166,10 +172,10 @@
+@@ -176,10 +182,10 @@
# if LDBL_EXPBIT0_BIT > 0
m.word[LDBL_EXPBIT0_WORD] ^= (unsigned int) 1 << (LDBL_EXPBIT0_BIT - 1);
# else