glibc/sysdeps/ieee754/float128
Joseph Myers c38a4bfd59 Move some float128 symbol version definitions.
With support for _Float128 functions on platforms where that type has
the same ABI as long double, as well as on platforms where it is
ABI-distinct, those functions will need to be exported from glibc's
shared libraries at appropriate symbol versions in each case.

This patch avoids duplication of lists of symbols to export by moving
the symbols other than __* to math/Versions and stdlib/Versions.
There, they are conditional on <float128-abi.h> defining
FLOAT128_VERSION and a default version of that header is added that
does not define that macro.  Enabling the float128 function aliases
will then include adding a sysdeps/ieee754/ldbl-128/float128-abi.h
that defines FLOAT128_VERSION to GLIBC_2.27.  Symbols __* remain in
sysdeps/ieee754/float128/Versions; those symbols should be present
only once per floating-point format, not once per type.

Note that if any platforms currently lacking support for a type with
binary128 format get glibc support for such a type in future (whether
only as _Float128, or also as a new long double format), and new libm
functions (present for all types) have been added by then, additional
macros will be needed to allow such functions to get a version of the
form "GLIBC_2.28 if the platform had _Float128 support by then, or the
later version at which that platform had _Float128 support added".
This is not however a preexisting condition, but would have applied
equally to the existing support for _Float128 as an ABI-distinct
type.  New all-type libm functions should just be added to the
appropriate symbol version (currently GLIBC_2.27) for all types, with
such special-case handling for _Float128 versions (and _Float64x as
well in future) waiting until someone actually wants to add support
for _Float128 to an existing platform after a release in which that
platform and a post-2.26 libm function had support but that platform
lacked _Float128 support.

Tested with build-many-glibcs.py that installed stripped shared
libraries are unchanged by this patch.  Also tested in conjunction
with the remaining changes to enable float128 aliases.

	* sysdeps/generic/float128-abi.h: New file.
	* sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
	non-__prefixed symbols to ....
	* math/Versions: ... here.  Include <float128-abi.h>.
	* stdlib/Versions ... and here.  Include <float128-abi.h>
2017-10-16 22:04:42 +00:00
..
e_acosf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
e_acoshf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
e_asinf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
e_atan2f128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
e_atanhf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
e_coshf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
e_exp10f128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
e_expf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
e_fmodf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
e_gammaf128_r.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
e_hypotf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
e_ilogbf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
e_j0f128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
e_j1f128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
e_jnf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
e_lgammaf128_r.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
e_log2f128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
e_log10f128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
e_logf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
e_powf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
e_rem_pio2f128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
e_remainderf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
e_scalbf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
e_sinhf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
float128_private.h Use libm_alias_ldouble for ldbl-128 functions. 2017-10-06 17:45:05 +00:00
float1282mpn.c float128: Add conversion from float128 to mpn 2017-06-07 17:03:43 -03:00
gamma_productf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
ieee754_float128.h float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
k_cosf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
k_sincosf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
k_sinf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
k_tanf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
lgamma_negf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
lgamma_productf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
Makeconfig
Makefile Add libio-mtsafe flags to the build of strfromf128 2017-06-23 10:31:49 -03:00
mpn2float128.c float128: Add strtof128, wcstof128, and related functions. 2017-06-12 14:48:53 -03:00
s_asinhf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
s_atanf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
s_cbrtf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
s_ceilf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
s_copysignf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
s_cosf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
s_erff128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
s_expm1f128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
s_fabsf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
s_finitef128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
s_floorf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
s_fmaf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
s_fpclassifyf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
s_frexpf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
s_fromfpf128.c Make more libm functions into weak aliases. 2017-09-14 22:28:53 +00:00
s_fromfpxf128.c Make more libm functions into weak aliases. 2017-09-14 22:28:53 +00:00
s_getpayloadf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
s_isinff128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
s_isnanf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
s_issignalingf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
s_llrintf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
s_llroundf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
s_log1pf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
s_logbf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
s_lrintf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
s_lroundf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
s_modff128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
s_nearbyintf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
s_nextafterf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
s_nexttowardf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
s_nextupf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
s_remquof128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
s_rintf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
s_roundevenf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
s_roundf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
s_scalblnf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
s_scalbnf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
s_setpayloadf128.c Make more libm functions into weak aliases. 2017-09-14 22:28:53 +00:00
s_setpayloadsigf128.c Make more libm functions into weak aliases. 2017-09-14 22:28:53 +00:00
s_signbitf128.c float128: Add signbit alternative for old compilers 2017-06-30 18:34:29 -03:00
s_significandf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
s_sincosf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
s_sinf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
s_tanf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
s_tanhf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
s_totalorderf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
s_totalordermagf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
s_truncf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
s_ufromfpf128.c Make more libm functions into weak aliases. 2017-09-14 22:28:53 +00:00
s_ufromfpxf128.c Make more libm functions into weak aliases. 2017-09-14 22:28:53 +00:00
strfromf128.c float128: Add strfromf128 2017-06-07 17:08:21 -03:00
strtod_nan_float128.h float128: Add strtof128, wcstof128, and related functions. 2017-06-12 14:48:53 -03:00
strtof128_l.c Fix float128 uses of xlocale.h. 2017-06-22 22:34:49 +00:00
strtof128_nan.c float128: Add strtof128, wcstof128, and related functions. 2017-06-12 14:48:53 -03:00
strtof128.c float128: Add strtof128, wcstof128, and related functions. 2017-06-12 14:48:53 -03:00
t_sincosf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
Versions Move some float128 symbol version definitions. 2017-10-16 22:04:42 +00:00
wcstof128_l.c Mark ____wcsto*_l_internal functions with attribute_hidden [BZ #18822] 2017-10-01 15:09:28 -07:00
wcstof128_nan.c float128: Add strtof128, wcstof128, and related functions. 2017-06-12 14:48:53 -03:00
wcstof128.c Mark ____wcsto*_l_internal functions with attribute_hidden [BZ #18822] 2017-10-01 15:09:28 -07:00
x2y2m1f128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00