|
|
ce426f |
# commit 32c301dfc9b786453e59b61fe4a821a89e1a206b
|
|
|
ce426f |
# Author: Alan Modra <amodra@gmail.com>
|
|
|
ce426f |
# Date: Sat Aug 17 18:26:39 2013 +0930
|
|
|
ce426f |
#
|
|
|
ce426f |
# PowerPC floating point little-endian [5 of 15]
|
|
|
ce426f |
# http://sourceware.org/ml/libc-alpha/2013-08/msg00085.html
|
|
|
ce426f |
#
|
|
|
ce426f |
# Rid ourselves of ieee854.
|
|
|
ce426f |
#
|
|
|
ce426f |
# * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
|
|
|
ce426f |
# Delete.
|
|
|
ce426f |
# (IEEE854_LONG_DOUBLE_BIAS): Delete.
|
|
|
ce426f |
# * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
|
|
|
ce426f |
# version of math_ldbl.h.
|
|
|
ce426f |
#
|
|
|
ce426f |
diff -urN glibc-2.17-c758a686/sysdeps/ieee754/ldbl-128ibm/ieee754.h glibc-2.17-c758a686/sysdeps/ieee754/ldbl-128ibm/ieee754.h
|
|
|
ce426f |
--- glibc-2.17-c758a686/sysdeps/ieee754/ldbl-128ibm/ieee754.h 2014-05-27 22:10:43.000000000 -0500
|
|
|
ce426f |
+++ glibc-2.17-c758a686/sysdeps/ieee754/ldbl-128ibm/ieee754.h 2014-05-27 22:11:10.000000000 -0500
|
|
|
ce426f |
@@ -112,61 +112,6 @@
|
|
|
ce426f |
#define IEEE754_DOUBLE_BIAS 0x3ff /* Added to exponent. */
|
|
|
ce426f |
|
|
|
ce426f |
|
|
|
ce426f |
-union ieee854_long_double
|
|
|
ce426f |
- {
|
|
|
ce426f |
- long double d;
|
|
|
ce426f |
-
|
|
|
ce426f |
- /* This is the IEEE 854 quad-precision format. */
|
|
|
ce426f |
- struct
|
|
|
ce426f |
- {
|
|
|
ce426f |
-#if __BYTE_ORDER == __BIG_ENDIAN
|
|
|
ce426f |
- unsigned int negative:1;
|
|
|
ce426f |
- unsigned int exponent:15;
|
|
|
ce426f |
- /* Together these comprise the mantissa. */
|
|
|
ce426f |
- unsigned int mantissa0:16;
|
|
|
ce426f |
- unsigned int mantissa1:32;
|
|
|
ce426f |
- unsigned int mantissa2:32;
|
|
|
ce426f |
- unsigned int mantissa3:32;
|
|
|
ce426f |
-#endif /* Big endian. */
|
|
|
ce426f |
-#if __BYTE_ORDER == __LITTLE_ENDIAN
|
|
|
ce426f |
- /* Together these comprise the mantissa. */
|
|
|
ce426f |
- unsigned int mantissa3:32;
|
|
|
ce426f |
- unsigned int mantissa2:32;
|
|
|
ce426f |
- unsigned int mantissa1:32;
|
|
|
ce426f |
- unsigned int mantissa0:16;
|
|
|
ce426f |
- unsigned int exponent:15;
|
|
|
ce426f |
- unsigned int negative:1;
|
|
|
ce426f |
-#endif /* Little endian. */
|
|
|
ce426f |
- } ieee;
|
|
|
ce426f |
-
|
|
|
ce426f |
- /* This format makes it easier to see if a NaN is a signalling NaN. */
|
|
|
ce426f |
- struct
|
|
|
ce426f |
- {
|
|
|
ce426f |
-#if __BYTE_ORDER == __BIG_ENDIAN
|
|
|
ce426f |
- unsigned int negative:1;
|
|
|
ce426f |
- unsigned int exponent:15;
|
|
|
ce426f |
- unsigned int quiet_nan:1;
|
|
|
ce426f |
- /* Together these comprise the mantissa. */
|
|
|
ce426f |
- unsigned int mantissa0:15;
|
|
|
ce426f |
- unsigned int mantissa1:32;
|
|
|
ce426f |
- unsigned int mantissa2:32;
|
|
|
ce426f |
- unsigned int mantissa3:32;
|
|
|
ce426f |
-#else
|
|
|
ce426f |
- /* Together these comprise the mantissa. */
|
|
|
ce426f |
- unsigned int mantissa3:32;
|
|
|
ce426f |
- unsigned int mantissa2:32;
|
|
|
ce426f |
- unsigned int mantissa1:32;
|
|
|
ce426f |
- unsigned int mantissa0:15;
|
|
|
ce426f |
- unsigned int quiet_nan:1;
|
|
|
ce426f |
- unsigned int exponent:15;
|
|
|
ce426f |
- unsigned int negative:1;
|
|
|
ce426f |
-#endif
|
|
|
ce426f |
- } ieee_nan;
|
|
|
ce426f |
- };
|
|
|
ce426f |
-
|
|
|
ce426f |
-#define IEEE854_LONG_DOUBLE_BIAS 0x3fff /* Added to exponent. */
|
|
|
ce426f |
-
|
|
|
ce426f |
-
|
|
|
ce426f |
/* IBM extended format for long double.
|
|
|
ce426f |
|
|
|
ce426f |
Each long double is made up of two IEEE doubles. The value of the
|
|
|
ce426f |
diff -urN glibc-2.17-c758a686/sysdeps/ieee754/ldbl-128ibm/math_ldbl.h glibc-2.17-c758a686/sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
|
|
|
ce426f |
--- glibc-2.17-c758a686/sysdeps/ieee754/ldbl-128ibm/math_ldbl.h 2014-05-27 22:10:43.000000000 -0500
|
|
|
ce426f |
+++ glibc-2.17-c758a686/sysdeps/ieee754/ldbl-128ibm/math_ldbl.h 2014-05-27 22:11:10.000000000 -0500
|
|
|
ce426f |
@@ -2,7 +2,6 @@
|
|
|
ce426f |
#error "Never use <math_ldbl.h> directly; include <math_private.h> instead."
|
|
|
ce426f |
#endif
|
|
|
ce426f |
|
|
|
ce426f |
-#include <sysdeps/ieee754/ldbl-128/math_ldbl.h>
|
|
|
ce426f |
#include <ieee754.h>
|
|
|
ce426f |
|
|
|
ce426f |
static inline void
|