diff --git a/include/math.h b/include/math.h index 84d44d44dc..2565a4723a 100644 --- a/include/math.h +++ b/include/math.h @@ -114,9 +114,11 @@ __issignalingf (float x) # if __HAVE_DISTINCT_FLOAT128 +# ifdef __USE_EXTERN_INLINES + /* __builtin_isinf_sign is broken in GCC < 7 for float128. */ -# if ! __GNUC_PREREQ (7, 0) -# include +# if ! __GNUC_PREREQ (7, 0) +# include extern inline int __isinff128 (_Float128 x) { @@ -126,13 +128,16 @@ __isinff128 (_Float128 x) lx |= -lx; return ~(lx >> 63) & (hx >> 62); } -# endif +# endif extern inline _Float128 fabsf128 (_Float128 x) { return __builtin_fabsf128 (x); } +# else +libm_hidden_proto (fabsf128) +# endif # endif diff --git a/sysdeps/ieee754/float128/s_fabsf128.c b/sysdeps/ieee754/float128/s_fabsf128.c index 79ba47c3fd..d877b0214f 100644 --- a/sysdeps/ieee754/float128/s_fabsf128.c +++ b/sysdeps/ieee754/float128/s_fabsf128.c @@ -1,2 +1,5 @@ #include #include "../ldbl-128/s_fabsl.c" +#ifndef __USE_EXTERN_INLINES +libm_hidden_def (fabsf128) +#endif