diff options
author | Adhemerval Zanella <azanella@linux.vnet.ibm.com> | 2013-03-08 11:07:15 -0300 |
---|---|---|
committer | Adhemerval Zanella <azanella@linux.vnet.ibm.com> | 2013-03-08 11:07:15 -0300 |
commit | edf66e57fc2bac083ecc9756a5fe47f9041ed3bb (patch) | |
tree | 1284213b3bbc2e818076eb7775a235498dd66a3e /sysdeps/ieee754/ldbl-128ibm | |
parent | 6d9145d817e570cd986bb088cf2af0bf51ac7dde (diff) | |
download | glibc-edf66e57fc2bac083ecc9756a5fe47f9041ed3bb.tar.gz glibc-edf66e57fc2bac083ecc9756a5fe47f9041ed3bb.tar.xz 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/ldbl-128ibm')
-rw-r--r-- | sysdeps/ieee754/ldbl-128ibm/math_ldbl.h | 10 |
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. */ |