aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/ieee754
diff options
context:
space:
mode:
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>2013-03-08 11:07:15 -0300
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>2013-03-08 11:07:15 -0300
commitedf66e57fc2bac083ecc9756a5fe47f9041ed3bb (patch)
tree1284213b3bbc2e818076eb7775a235498dd66a3e /sysdeps/ieee754
parent6d9145d817e570cd986bb088cf2af0bf51ac7dde (diff)
downloadglibc-edf66e57fc2bac083ecc9756a5fe47f9041ed3bb.tar
glibc-edf66e57fc2bac083ecc9756a5fe47f9041ed3bb.tar.gz
glibc-edf66e57fc2bac083ecc9756a5fe47f9041ed3bb.tar.bz2
glibc-edf66e57fc2bac083ecc9756a5fe47f9041ed3bb.zip
PowerPC: unify math_ldbl.h implementations
This patch removes redudant definition from PowerPC specific math_ldbl, using the definitions from ieee754 math_ldbl.h.
Diffstat (limited to 'sysdeps/ieee754')
-rw-r--r--sysdeps/ieee754/ldbl-128ibm/math_ldbl.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/sysdeps/ieee754/ldbl-128ibm/math_ldbl.h b/sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
index be9ac71cb0..1cce1fc4dc 100644
--- a/sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
+++ b/sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
@@ -125,7 +125,7 @@ ldbl_insert_mantissa (int sign, int exp, int64_t hi64, u_int64_t lo64)
/* Handy utility functions to pack/unpack/cononicalize and find the nearbyint
of long double implemented as double double. */
static inline long double
-ldbl_pack (double a, double aa)
+default_ldbl_pack (double a, double aa)
{
union ibm_extended_long_double u;
u.dd[0] = a;
@@ -134,7 +134,7 @@ ldbl_pack (double a, double aa)
}
static inline void
-ldbl_unpack (long double l, double *a, double *aa)
+default_ldbl_unpack (long double l, double *a, double *aa)
{
union ibm_extended_long_double u;
u.d = l;
@@ -142,6 +142,12 @@ ldbl_unpack (long double l, double *a, double *aa)
*aa = u.dd[1];
}
+#ifndef ldbl_pack
+# define ldbl_pack default_ldbl_pack
+#endif
+#ifndef ldbl_unpack
+# define ldbl_unpack default_ldbl_unpack
+#endif
/* Convert a finite long double to canonical form.
Does not handle +/-Inf properly. */