]> Savannah Git Hosting - gnulib.git/commitdiff
Fix LDBL80_WORDS macro on big endian platforms.
authorBruno Haible <bruno@clisp.org>
Fri, 5 Dec 2014 10:30:27 +0000 (11:30 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 5 Dec 2014 10:30:27 +0000 (11:30 +0100)
* m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
LDBL80_WORDS macro.
* m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
* m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
* tests/test-isfinite.c (test_isfinitel): Likewise.
* tests/test-isinf.c (test_isinfl): Likewise.
* tests/test-isnan.c (test_long_double): Likewise.
* tests/test-isnanl.h (main): Likewise.
* tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
* tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
* tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
* tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
Reported by Pádraig Brady.

12 files changed:
ChangeLog
m4/isfinite.m4
m4/isinf.m4
m4/isnanl.m4
tests/test-isfinite.c
tests/test-isinf.c
tests/test-isnan.c
tests/test-isnanl.h
tests/test-snprintf-posix.h
tests/test-sprintf-posix.h
tests/test-vasnprintf-posix.c
tests/test-vasprintf-posix.c

index 7379fa6d780543e06e5a1ee3228c90e2668fb521..fb6723b1732f8e3c7e91dd92e6e191d13d20ffa8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,20 @@
+2014-12-05  Bruno Haible  <bruno@clisp.org>
+
+       Fix LDBL80_WORDS macro on big endian platforms.
+       * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
+       LDBL80_WORDS macro.
+       * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
+       * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
+       * tests/test-isfinite.c (test_isfinitel): Likewise.
+       * tests/test-isinf.c (test_isinfl): Likewise.
+       * tests/test-isnan.c (test_long_double): Likewise.
+       * tests/test-isnanl.h (main): Likewise.
+       * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
+       * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
+       * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
+       * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
+       Reported by Pádraig Brady.
+
 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
 
        git-version-gen: do not print new line characters
index 53ad9092a728cf398306c008e8d97a4c630c783a..bfd1ea39ae6e8817fbf5a5acc8b26b9cca53f5b5 100644 (file)
@@ -1,4 +1,4 @@
-# isfinite.m4 serial 13
+# isfinite.m4 serial 14
 dnl Copyright (C) 2007-2014 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -94,7 +94,7 @@ int main ()
 # ifdef WORDS_BIGENDIAN
 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
      { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
-       ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16),    \
+       ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16),   \
        (unsigned int) (mantlo) << 16                                        \
      }
 # else
index 7174acecdbdd150b643c104bcd0df8789f1780a8..4d844b0f02a4f59f2fad01ad2324b0c3c3035d82 100644 (file)
@@ -1,4 +1,4 @@
-# isinf.m4 serial 9
+# isinf.m4 serial 10
 dnl Copyright (C) 2007-2014 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -101,7 +101,7 @@ int main ()
 # ifdef WORDS_BIGENDIAN
 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
      { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
-       ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16),    \
+       ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16),   \
        (unsigned int) (mantlo) << 16                                        \
      }
 # else
index 98b2b69fce5b362bd50c682012f8a75379ebea8d..a26cc93fc69755c1be86b7c3123e456f4f561520 100644 (file)
@@ -1,4 +1,4 @@
-# isnanl.m4 serial 17
+# isnanl.m4 serial 18
 dnl Copyright (C) 2007-2014 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -177,7 +177,7 @@ int main ()
 # ifdef WORDS_BIGENDIAN
 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
      { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
-       ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16),    \
+       ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16),   \
        (unsigned int) (mantlo) << 16                                        \
      }
 # else
index 5d320eafe8ae05a5bdcf893989c640baa8d0c58f..5b3f1dde2bd008b1a480c6102f7a1eab865a8b1c 100644 (file)
@@ -181,7 +181,7 @@ test_isfinitel ()
 # ifdef WORDS_BIGENDIAN
 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
      { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
-       ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16),    \
+       ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16),   \
        (unsigned int) (mantlo) << 16                                        \
      }
 # else
index 2505c320189fa570a4f29603098cb850c42a66d0..2a582572b47ad38e15aaf372c3a2606ce0eefb5e 100644 (file)
@@ -187,7 +187,7 @@ test_isinfl ()
 # ifdef WORDS_BIGENDIAN
 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
      { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
-       ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16),    \
+       ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16),   \
        (unsigned int) (mantlo) << 16                                        \
      }
 # else
index 9cb5e072adfba41e1ed77cb32d91b7f1742172fb..e7693677a9dce8259823ae6e5688eaa15fdb04ac 100644 (file)
@@ -168,7 +168,7 @@ test_long_double (void)
 # ifdef WORDS_BIGENDIAN
 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
      { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
-       ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16),    \
+       ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16),   \
        (unsigned int) (mantlo) << 16                                        \
      }
 # else
index 015b0864971058ba922a7b0ecccb80ed9adf3694..3b8fb3da4a628d4c533ac0aae0fd0f17914ed635 100644 (file)
@@ -80,7 +80,7 @@ main ()
 # ifdef WORDS_BIGENDIAN
 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
      { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
-       ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16),    \
+       ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16),   \
        (unsigned int) (mantlo) << 16                                        \
      }
 # else
index ce8a6d25aa03713232e31c08692961b1f73e6dbf..1f723b37c5182e292e5e737ea4530c631a434e1d 100644 (file)
@@ -34,7 +34,7 @@ have_minus_zero ()
 #ifdef WORDS_BIGENDIAN
 # define LDBL80_WORDS(exponent,manthi,mantlo) \
     { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
-      ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16),    \
+      ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16),   \
       (unsigned int) (mantlo) << 16                                        \
     }
 #else
index 3871a1f692e967f16930cc1fe362b117b248fe0a..e23d34db59e3e7e03236e83538044e237be57d03 100644 (file)
@@ -34,7 +34,7 @@ have_minus_zero ()
 #ifdef WORDS_BIGENDIAN
 # define LDBL80_WORDS(exponent,manthi,mantlo) \
     { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
-      ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16),    \
+      ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16),   \
       (unsigned int) (mantlo) << 16                                        \
     }
 #else
index 4fd21c8836bbcf91efd530dc97a0edbc5d374432..5f9094762d15946d881c0c5dfda939896abe409b 100644 (file)
@@ -47,7 +47,7 @@ have_minus_zero ()
 #ifdef WORDS_BIGENDIAN
 # define LDBL80_WORDS(exponent,manthi,mantlo) \
     { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
-      ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16),    \
+      ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16),   \
       (unsigned int) (mantlo) << 16                                        \
     }
 #else
index 6a28cffbfa9dc6e0f2e9ec40ac56e109e82ebe13..40cdfa965678363c24a439bf0dbae7eac4f9542d 100644 (file)
@@ -46,7 +46,7 @@ have_minus_zero ()
 #ifdef WORDS_BIGENDIAN
 # define LDBL80_WORDS(exponent,manthi,mantlo) \
     { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
-      ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16),    \
+      ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16),   \
       (unsigned int) (mantlo) << 16                                        \
     }
 #else