glibc/math/Versions
Joseph Myers 0d93b7fd7c Add _Float64, _Float32x function aliases.
This patch continues filling out TS 18661-3 support by adding *f64 and
*f32x function aliases, supporting _Float64 and _Float32x, as aliases
for double functions.  These types are supported for all glibc
configurations.  The API corresponds exactly to that for _Float128 and
_Float64x.  _Float32 aliases to float functions remain to be added in
subsequent patches to complete this process (then there are a few
miscellaneous functions in TS 18661-3 to implement that aren't simply
versions of existing functions for new types).

The patch enables the feature in bits/floatn-common.h, adds symbol
versions and documentation with updates to ABI baselines, and arranges
for the libm functions for the new types to be tested.  As with the
_Float64x changes there are some x86 ulps updates because of header
inlines not used for the new types (and one other change to the
non-multiarch libm-test-ulps, which I suppose comes from using a
different compiler version / configuration from when it was last
regenerated).

Tested for x86_64 and x86, and with build-many-glibcs.py, with both
GCC 6 and GCC 7.

	* bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
	(__HAVE_FLOAT32X): Likewise.
	* manual/math.texi (Mathematics): Document support for _Float64
	and _Float32x.
	* math/Makefile (test-types): Add float64 and float32x.
	* math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
	functions.
	* stdlib/Versions (GLIBC_2.27): Likewise.
	* wcsmbs/Versions (GLIBC_2.27): Likewise.
	* sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
	* sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
	* sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
	* sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
	* sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
	* sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
	* sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
	* sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
	* sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
	* sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
	* sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
	* sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
	* sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
	* sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
	* sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
	* sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
	* sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
	* sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
	* sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
	* sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
	* sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
	Likewise.
	* sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
	* sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
	* sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
	* sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
	* sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
	Likewise.
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
	Likewise.
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
	Likewise.
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
	Likewise.
	* sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
	Likewise.
	* sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
	Likewise.
	* sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
	Likewise.
	* sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
	Likewise.
	* sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
	* sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
	* sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
	* sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
	* sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
	* sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
	* sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
	* sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
	* sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
	* sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
	* sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
	Likewise.
	* sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
	Likewise.
	* sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
	Likewise.
	* sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
	Likewise.
	* sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
	* sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
	* sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
	* sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
	* sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
	* sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
	* sysdeps/i386/fpu/libm-test-ulps: Likewise.
	* sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2017-12-06 00:58:03 +00:00

555 lines
13 KiB
Plaintext

%include <float128-abi.h>
libc {
GLIBC_2.0 {
# functions used in inline functions or macros
__isnan; __isnanf; __isnanl; __finite; __finitef; __finitel;
__isinf; __isinff; __isinfl;
# global variables
__fpu_control;
# c*
copysign; copysignf; copysignl;
# f*
finite; finitef; finitel; frexp; frexpf; frexpl;
# i*
isinf; isinff; isinfl; isnan; isnanf; isnanl; ldexp; ldexpf; ldexpl;
# m*
modf; modff; modfl;
# s*
scalbn; scalbnf; scalbnl;
}
GLIBC_2.1 {
# functions used in inline functions or macros
__signbit; __signbitf; __signbitl;
# s*
scalbln; scalblnf; scalblnl;
}
GLIBC_2.20 {
}
}
libm {
GLIBC_2.0 {
# mathematical functions
acos; acosf; acosl;
acosh; acoshf; acoshl;
asin; asinf; asinl;
asinh; asinhf; asinhl;
atan2; atan2f; atan2l;
atan; atanf; atanl;
atanh; atanhf; atanhl;
cbrt; cbrtf; cbrtl;
ceil; ceilf; ceill;
copysign; copysignf; copysignl;
cos; cosf; cosl;
coshf; cosh; coshl;
drem; dremf; dreml;
erf; erff; erfl;
erfc; erfcf; erfcl;
exp; expf; expl;
expm1; expm1f; expm1l;
fabs; fabsf; fabsl;
finite; finitef; finitel;
floor; floorf; floorl;
fmod; fmodf; fmodl;
frexp; frexpf; frexpl;
gamma; gammaf; gammal;
gamma_r; gammaf_r; gammal_r;
hypot; hypotf; hypotl;
ilogb; ilogbf; ilogbl;
j0; j0f; j0l;
j1; j1f; j1l;
jn; jnf; jnl;
ldexp; ldexpf; ldexpl;
lgamma; lgammaf; lgammal;
lgamma_r; lgammaf_r; lgammal_r;
log10; log10f; log10l;
log1p; log1pf; log1pl;
log; logf; logl;
logb; logbf; logbl;
matherr;
modf; modff; modfl;
nextafter; nextafterf; nextafterl;
pow; powf; powl;
remainder; remainderf; remainderl;
rint; rintf; rintl;
scalb; scalbf; scalbl;
scalbn; scalbnf; scalbnl;
significand; significandf; significandl;
sin; sinf; sinl;
sinh; sinhf; sinhl;
sqrt; sqrtf; sqrtl;
tan; tanf; tanl;
tanh; tanhf; tanhl;
y0; y0f; y0l;
y1; y1f; y1l;
yn; ynf; ynl;
# global variables
_LIB_VERSION; signgam;
}
GLIBC_2.1 {
# mathematical functions
exp2; exp2f; # exp2l; -- bug omitted this until GLIBC_2.4 (below)
exp10; exp10f; exp10l;
fdim; fdimf; fdiml;
fma; fmaf; fmal;
fmax; fmaxf; fmaxl;
fmin; fminf; fminl;
log2; log2f; log2l;
nan; nanf; nanl;
nearbyint; nearbyintf; nearbyintl;
nexttoward; nexttowardf; nexttowardl;
pow10; pow10f; pow10l;
remquo; remquof; remquol;
lrint; lrintf; lrintl;
llrint; llrintf; llrintl;
round; roundf; roundl;
lround; lroundf; lroundl;
llround; llroundf; llroundl;
scalbln; scalblnf; scalblnl;
sincos; sincosf; sincosl;
trunc; truncf; truncl;
tgamma; tgammaf; tgammal;
# complex functions
cabs; cabsf; cabsl;
cacos; cacosf; cacosl;
cacosh; cacoshf; cacoshl;
carg; cargf; cargl;
casin; casinf; casinl;
casinh; casinhf; casinhl;
catan; catanf; catanl;
catanh; catanhf; catanhl;
ccos; ccosf; ccosl;
ccosh; ccoshf; ccoshl;
cexp; cexpf; cexpl;
cimag; cimagf; cimagl;
clog; clogf; clogl;
clog10; clog10f; clog10l;
__clog10; __clog10f; __clog10l;
conj; conjf; conjl;
cpow; cpowf; cpowl;
cproj; cprojf; cprojl;
creal; crealf; creall;
csin; csinf; csinl;
csinh; csinhf; csinhl;
csqrt; csqrtf; csqrtl;
ctan; ctanf; ctanl;
ctanh; ctanhf; ctanhl;
# fp environment functions
feclearexcept; fegetenv; fegetexceptflag;
fegetround; feholdexcept; feraiseexcept;
fesetenv; fesetexceptflag; fesetround;
fetestexcept; feupdateenv;
# functions used in inline functions or macros
__finite; __finitef; __finitel;
__fpclassify; __fpclassifyf; __fpclassifyl;
__signbit; __signbitf; __signbitl;
}
GLIBC_2.2 {
# fp environment functions changes from ISO C99 TR1
feclearexcept; fegetenv; fegetexceptflag; feraiseexcept;
fesetenv; fesetexceptflag; feupdateenv;
# fp environment function
feenableexcept; fedisableexcept; fegetexcept;
}
GLIBC_2.4 {
# A bug in sysdeps/generic/w_exp2.c kept this from appearing
# in GLIBC_2.1 as it should have on platforms using that
# implementation file. On others, sysdeps/CPU/Versions now
# puts exp2l in GLIBC_2.1, which will override this entry.
exp2l;
}
GLIBC_2.15 {
# Optimized -ffinite-math-only entry points
__acos_finite; __acosf_finite; __acosl_finite;
__acosh_finite; __acoshf_finite; __acoshl_finite;
__asin_finite; __asinf_finite; __asinl_finite;
__atan2_finite; __atan2f_finite; __atan2l_finite;
__atanh_finite; __atanhf_finite; __atanhl_finite;
__cosh_finite; __coshf_finite; __coshl_finite;
__exp10_finite; __exp10f_finite; __exp10l_finite;
__exp2_finite; __exp2f_finite; __exp2l_finite;
__fmod_finite; __fmodf_finite; __fmodl_finite;
__hypot_finite; __hypotf_finite; __hypotl_finite;
__j0_finite; __j0f_finite; __j0l_finite;
__y0_finite; __y0f_finite; __y0l_finite;
__j1_finite; __j1f_finite; __j1l_finite;
__y1_finite; __y1f_finite; __y1l_finite;
__jn_finite; __jnf_finite; __jnl_finite;
__yn_finite; __ynf_finite; __ynl_finite;
__lgamma_r_finite; __lgammaf_r_finite; __lgammal_r_finite;
__log_finite; __logf_finite; __logl_finite;
__log10_finite; __log10f_finite; __log10l_finite;
__log2_finite; __log2f_finite; __log2l_finite;
__pow_finite; __powf_finite; __powl_finite;
__remainder_finite; __remainderf_finite; __remainderl_finite;
__scalb_finite; __scalbf_finite; __scalbl_finite;
__sinh_finite; __sinhf_finite; __sinhl_finite;
__sqrt_finite; __sqrtf_finite; __sqrtl_finite;
__gamma_r_finite; __gammaf_r_finite; __gammal_r_finite;
__exp_finite; __expf_finite; __expl_finite;
}
GLIBC_2.18 {
__issignaling; __issignalingf; __issignalingl;
}
GLIBC_2.23 {
# The __signgam name must be exported for the signgam weak alias
# to work. New symbol versions of lgamma* that set __signgam are
# needed to preserve compatibility with old binaries that have a
# dynamic symbol for signgam but not __signgam.
lgamma; lgammaf; lgammal; __signgam;
}
GLIBC_2.24 {
nextup; nextupf; nextupl;
nextdown; nextdownf; nextdownl;
}
GLIBC_2.25 {
fesetexcept; fetestexceptflag; fegetmode; fesetmode;
__iscanonicall; __iseqsigf; __iseqsig; __iseqsigl;
totalorder; totalorderf; totalorderl;
totalordermag; totalordermagf; totalordermagl;
getpayload; getpayloadf; getpayloadl;
canonicalize; canonicalizef; canonicalizel;
setpayload; setpayloadf; setpayloadl;
setpayloadsig; setpayloadsigf; setpayloadsigl;
llogb; llogbf; llogbl;
fmaxmag; fmaxmagf; fmaxmagl; fminmag; fminmagf; fminmagl;
roundeven; roundevenf; roundevenl;
fromfp; fromfpf; fromfpl; ufromfp; ufromfpf; ufromfpl;
fromfpx; fromfpxf; fromfpxl; ufromfpx; ufromfpxf; ufromfpxl;
}
%ifdef FLOAT128_VERSION
FLOAT128_VERSION {
acosf128;
acoshf128;
asinf128;
asinhf128;
atan2f128;
atanf128;
atanhf128;
cabsf128;
cacosf128;
cacoshf128;
canonicalizef128;
cargf128;
casinf128;
casinhf128;
catanf128;
catanhf128;
cbrtf128;
ccosf128;
ccoshf128;
ceilf128;
cexpf128;
cimagf128;
clog10f128;
clogf128;
conjf128;
copysignf128;
cosf128;
coshf128;
cpowf128;
cprojf128;
crealf128;
csinf128;
csinhf128;
csqrtf128;
ctanf128;
ctanhf128;
erfcf128;
erff128;
exp10f128;
exp2f128;
expf128;
expm1f128;
fabsf128;
fdimf128;
floorf128;
fmaf128;
fmaxf128;
fmaxmagf128;
fminf128;
fminmagf128;
fmodf128;
frexpf128;
fromfpf128;
fromfpxf128;
getpayloadf128;
hypotf128;
ilogbf128;
j0f128;
j1f128;
jnf128;
ldexpf128;
lgammaf128;
lgammaf128_r;
llogbf128;
llrintf128;
llroundf128;
log10f128;
log1pf128;
log2f128;
logbf128;
logf128;
lrintf128;
lroundf128;
modff128;
nanf128;
nearbyintf128;
nextafterf128;
nextdownf128;
nextupf128;
powf128;
remainderf128;
remquof128;
rintf128;
roundevenf128;
roundf128;
scalblnf128;
scalbnf128;
setpayloadf128;
setpayloadsigf128;
sincosf128;
sinf128;
sinhf128;
sqrtf128;
tanf128;
tanhf128;
tgammaf128;
totalorderf128;
totalordermagf128;
truncf128;
ufromfpf128;
ufromfpxf128;
y0f128;
y1f128;
ynf128;
}
%endif
GLIBC_2.27 {
expf; exp2f; logf; log2f; powf;
# _Float64x functions, only present for some configurations.
acosf64x;
acoshf64x;
asinf64x;
asinhf64x;
atan2f64x;
atanf64x;
atanhf64x;
cabsf64x;
cacosf64x;
cacoshf64x;
canonicalizef64x;
cargf64x;
casinf64x;
casinhf64x;
catanf64x;
catanhf64x;
cbrtf64x;
ccosf64x;
ccoshf64x;
ceilf64x;
cexpf64x;
cimagf64x;
clog10f64x;
clogf64x;
conjf64x;
copysignf64x;
cosf64x;
coshf64x;
cpowf64x;
cprojf64x;
crealf64x;
csinf64x;
csinhf64x;
csqrtf64x;
ctanf64x;
ctanhf64x;
erfcf64x;
erff64x;
exp10f64x;
exp2f64x;
expf64x;
expm1f64x;
fabsf64x;
fdimf64x;
floorf64x;
fmaf64x;
fmaxf64x;
fmaxmagf64x;
fminf64x;
fminmagf64x;
fmodf64x;
frexpf64x;
fromfpf64x;
fromfpxf64x;
getpayloadf64x;
hypotf64x;
ilogbf64x;
j0f64x;
j1f64x;
jnf64x;
ldexpf64x;
lgammaf64x;
lgammaf64x_r;
llogbf64x;
llrintf64x;
llroundf64x;
log10f64x;
log1pf64x;
log2f64x;
logbf64x;
logf64x;
lrintf64x;
lroundf64x;
modff64x;
nanf64x;
nearbyintf64x;
nextafterf64x;
nextdownf64x;
nextupf64x;
powf64x;
remainderf64x;
remquof64x;
rintf64x;
roundevenf64x;
roundf64x;
scalblnf64x;
scalbnf64x;
setpayloadf64x;
setpayloadsigf64x;
sincosf64x;
sinf64x;
sinhf64x;
sqrtf64x;
tanf64x;
tanhf64x;
tgammaf64x;
totalorderf64x;
totalordermagf64x;
truncf64x;
ufromfpf64x;
ufromfpxf64x;
y0f64x;
y1f64x;
ynf64x;
# _Float64 and _Float32x functions, for all configurations.
acosf64; acosf32x;
acoshf64; acoshf32x;
asinf64; asinf32x;
asinhf64; asinhf32x;
atan2f64; atan2f32x;
atanf64; atanf32x;
atanhf64; atanhf32x;
cabsf64; cabsf32x;
cacosf64; cacosf32x;
cacoshf64; cacoshf32x;
canonicalizef64; canonicalizef32x;
cargf64; cargf32x;
casinf64; casinf32x;
casinhf64; casinhf32x;
catanf64; catanf32x;
catanhf64; catanhf32x;
cbrtf64; cbrtf32x;
ccosf64; ccosf32x;
ccoshf64; ccoshf32x;
ceilf64; ceilf32x;
cexpf64; cexpf32x;
cimagf64; cimagf32x;
clog10f64; clog10f32x;
clogf64; clogf32x;
conjf64; conjf32x;
copysignf64; copysignf32x;
cosf64; cosf32x;
coshf64; coshf32x;
cpowf64; cpowf32x;
cprojf64; cprojf32x;
crealf64; crealf32x;
csinf64; csinf32x;
csinhf64; csinhf32x;
csqrtf64; csqrtf32x;
ctanf64; ctanf32x;
ctanhf64; ctanhf32x;
erfcf64; erfcf32x;
erff64; erff32x;
exp10f64; exp10f32x;
exp2f64; exp2f32x;
expf64; expf32x;
expm1f64; expm1f32x;
fabsf64; fabsf32x;
fdimf64; fdimf32x;
floorf64; floorf32x;
fmaf64; fmaf32x;
fmaxf64; fmaxf32x;
fmaxmagf64; fmaxmagf32x;
fminf64; fminf32x;
fminmagf64; fminmagf32x;
fmodf64; fmodf32x;
frexpf64; frexpf32x;
fromfpf64; fromfpf32x;
fromfpxf64; fromfpxf32x;
getpayloadf64; getpayloadf32x;
hypotf64; hypotf32x;
ilogbf64; ilogbf32x;
j0f64; j0f32x;
j1f64; j1f32x;
jnf64; jnf32x;
ldexpf64; ldexpf32x;
lgammaf64; lgammaf32x;
lgammaf64_r; lgammaf32x_r;
llogbf64; llogbf32x;
llrintf64; llrintf32x;
llroundf64; llroundf32x;
log10f64; log10f32x;
log1pf64; log1pf32x;
log2f64; log2f32x;
logbf64; logbf32x;
logf64; logf32x;
lrintf64; lrintf32x;
lroundf64; lroundf32x;
modff64; modff32x;
nanf64; nanf32x;
nearbyintf64; nearbyintf32x;
nextafterf64; nextafterf32x;
nextdownf64; nextdownf32x;
nextupf64; nextupf32x;
powf64; powf32x;
remainderf64; remainderf32x;
remquof64; remquof32x;
rintf64; rintf32x;
roundevenf64; roundevenf32x;
roundf64; roundf32x;
scalblnf64; scalblnf32x;
scalbnf64; scalbnf32x;
setpayloadf64; setpayloadf32x;
setpayloadsigf64; setpayloadsigf32x;
sincosf64; sincosf32x;
sinf64; sinf32x;
sinhf64; sinhf32x;
sqrtf64; sqrtf32x;
tanf64; tanf32x;
tanhf64; tanhf32x;
tgammaf64; tgammaf32x;
totalorderf64; totalorderf32x;
totalordermagf64; totalordermagf32x;
truncf64; truncf32x;
ufromfpf64; ufromfpf32x;
ufromfpxf64; ufromfpxf32x;
y0f64; y0f32x;
y1f64; y1f32x;
ynf64; ynf32x;
}
}