diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c | 11 |
2 files changed, 15 insertions, 3 deletions
@@ -1,3 +1,10 @@ +2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com> + + * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c + [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype + and TF redirection to KFtype and KF only when the default + long double type is not the IEEE 128-bit floating point type. + 2018-06-05 Joseph Myers <joseph@codesourcery.com> * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New diff --git a/sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c b/sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c index 0ff897bef3..f7c8ea33d3 100644 --- a/sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c +++ b/sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c @@ -26,9 +26,14 @@ License along with the GNU C Library; if not, see <http://www.gnu.org/licenses/>. */ -/* Unavoidable hacks since TFmode is assumed to be binary128. */ -#define TFtype KFtype -#define TF KF +#include <math.h> + +/* Unavoidable hacks since TFmode is assumed to be binary128 when + -mabi=ibmlongdouble is used. */ +#if __HAVE_FLOAT128_UNLIKE_LDBL +# define TFtype KFtype +# define TF KF +#endif #include <soft-fp.h> #include <quad.h> |