diff options
author | Joseph Myers <joseph@codesourcery.com> | 2017-11-27 14:16:47 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2017-11-27 14:16:47 +0000 |
commit | a23aa5b7272ec4a04578d82399ec2bf536281119 (patch) | |
tree | ca8063afcf28f64aa6b890acbda0f4bc0b6db902 /sysdeps/unix/sysv/linux/sparc/sparc32 | |
parent | c2c299fd24e87b83c63191ff979d41a86b37d714 (diff) | |
download | glibc-a23aa5b7272ec4a04578d82399ec2bf536281119.tar.gz glibc-a23aa5b7272ec4a04578d82399ec2bf536281119.tar.xz glibc-a23aa5b7272ec4a04578d82399ec2bf536281119.zip |
Add _Float64x function aliases.
This patch continues filling out TS 18661-3 support by adding *f64x function aliases on platforms with _Float64x support. (It so happens the set of such platforms is exactly the same as the set of platforms with _Float128 support, although on x86_64, x86 and ia32 the _Float64x format is Intel extended rather than binary128.) The API provided corresponds exactly to that provided for _Float128, mostly coming from TS 18661-3. As these functions always alias those for another type (long double, _Float128 or both), __* function names are not provided, as in other cases of alias types. Given the preparation done in previous patches, this one just enables the feature via Makeconfig and bits/floatn.h, adds symbol versions, and updates documentation and ABI baselines. The symbol versions are present unconditionally as GLIBC_2.27 in the relevant Versions files, as it's OK for those to specify versions for functions that may not be present in some configurations; no additional complexity is needed unless in future some configuration gains support for this type that didn't have such support in 2.27. The Makeconfig additions for ia64 and x86 aren't strictly needed, as those configurations also get float64x-alias-fcts definitions from sysdeps/ieee754/float128/Makeconfig, but still seem appropriate given that _Float64x is not _Float128 for those configurations. A libm-test-ulps update for x86 is included. This is because bits/mathinline.h does not have _Float64x support added and for two functions the use of out-of-line functions results in increased ulps (ifloat64x shares ulps with ildouble / ifloat128 as appropriate). Given that we'd like generally to eliminate bits/mathinline.h optimizations, preferring to have such optimizations in GCC instead, it seems reasonable not to add such support there for new types. GCC support for _FloatN / _FloatNx built-in functions is limited, but has been improved in GCC 8, and at some point I hope the full set of libm built-in functions in GCC, and other optimizations with per-floating-type aspects, will be enabled for all _FloatN / _FloatNx types. Tested for x86_64 and x86, and with build-many-glibcs.py, with both GCC 6 and GCC 7. * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable. * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts): Likewise. * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts): Likewise. * sysdeps/x86/Makeconfig: New file. * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro. (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise. * bits/floatn.h (__HAVE_FLOAT64X): New macro. (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise. * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise. (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise. * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X): Likewise. (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise. * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise. (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise. * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise. (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise. * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise. (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise. * manual/math.texi (Mathematics): Document support for _Float64x. * math/Versions (GLIBC_2.27): Add _Float64x 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/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/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/powerpc/powerpc64/libc-le.abilist: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.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/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/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.
Diffstat (limited to 'sysdeps/unix/sysv/linux/sparc/sparc32')
-rw-r--r-- | sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist | 5 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist | 104 |
2 files changed, 109 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist b/sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist index 93e6d092ac..899d5ff604 100644 --- a/sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist +++ b/sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist @@ -1984,10 +1984,15 @@ GLIBC_2.27 glob F GLIBC_2.27 glob64 F GLIBC_2.27 memfd_create F GLIBC_2.27 strfromf128 F +GLIBC_2.27 strfromf64x F GLIBC_2.27 strtof128 F GLIBC_2.27 strtof128_l F +GLIBC_2.27 strtof64x F +GLIBC_2.27 strtof64x_l F GLIBC_2.27 wcstof128 F GLIBC_2.27 wcstof128_l F +GLIBC_2.27 wcstof64x F +GLIBC_2.27 wcstof64x_l F GLIBC_2.3 GLIBC_2.3 A GLIBC_2.3 __ctype_b_loc F GLIBC_2.3 __ctype_tolower_loc F diff --git a/sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist b/sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist index 152a83a869..5b08525e9b 100644 --- a/sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist +++ b/sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist @@ -469,114 +469,218 @@ GLIBC_2.25 ufromfpxf F GLIBC_2.25 ufromfpxl F GLIBC_2.27 GLIBC_2.27 A GLIBC_2.27 acosf128 F +GLIBC_2.27 acosf64x F GLIBC_2.27 acoshf128 F +GLIBC_2.27 acoshf64x F GLIBC_2.27 asinf128 F +GLIBC_2.27 asinf64x F GLIBC_2.27 asinhf128 F +GLIBC_2.27 asinhf64x F GLIBC_2.27 atan2f128 F +GLIBC_2.27 atan2f64x F GLIBC_2.27 atanf128 F +GLIBC_2.27 atanf64x F GLIBC_2.27 atanhf128 F +GLIBC_2.27 atanhf64x F GLIBC_2.27 cabsf128 F +GLIBC_2.27 cabsf64x F GLIBC_2.27 cacosf128 F +GLIBC_2.27 cacosf64x F GLIBC_2.27 cacoshf128 F +GLIBC_2.27 cacoshf64x F GLIBC_2.27 canonicalizef128 F +GLIBC_2.27 canonicalizef64x F GLIBC_2.27 cargf128 F +GLIBC_2.27 cargf64x F GLIBC_2.27 casinf128 F +GLIBC_2.27 casinf64x F GLIBC_2.27 casinhf128 F +GLIBC_2.27 casinhf64x F GLIBC_2.27 catanf128 F +GLIBC_2.27 catanf64x F GLIBC_2.27 catanhf128 F +GLIBC_2.27 catanhf64x F GLIBC_2.27 cbrtf128 F +GLIBC_2.27 cbrtf64x F GLIBC_2.27 ccosf128 F +GLIBC_2.27 ccosf64x F GLIBC_2.27 ccoshf128 F +GLIBC_2.27 ccoshf64x F GLIBC_2.27 ceilf128 F +GLIBC_2.27 ceilf64x F GLIBC_2.27 cexpf128 F +GLIBC_2.27 cexpf64x F GLIBC_2.27 cimagf128 F +GLIBC_2.27 cimagf64x F GLIBC_2.27 clog10f128 F +GLIBC_2.27 clog10f64x F GLIBC_2.27 clogf128 F +GLIBC_2.27 clogf64x F GLIBC_2.27 conjf128 F +GLIBC_2.27 conjf64x F GLIBC_2.27 copysignf128 F +GLIBC_2.27 copysignf64x F GLIBC_2.27 cosf128 F +GLIBC_2.27 cosf64x F GLIBC_2.27 coshf128 F +GLIBC_2.27 coshf64x F GLIBC_2.27 cpowf128 F +GLIBC_2.27 cpowf64x F GLIBC_2.27 cprojf128 F +GLIBC_2.27 cprojf64x F GLIBC_2.27 crealf128 F +GLIBC_2.27 crealf64x F GLIBC_2.27 csinf128 F +GLIBC_2.27 csinf64x F GLIBC_2.27 csinhf128 F +GLIBC_2.27 csinhf64x F GLIBC_2.27 csqrtf128 F +GLIBC_2.27 csqrtf64x F GLIBC_2.27 ctanf128 F +GLIBC_2.27 ctanf64x F GLIBC_2.27 ctanhf128 F +GLIBC_2.27 ctanhf64x F GLIBC_2.27 erfcf128 F +GLIBC_2.27 erfcf64x F GLIBC_2.27 erff128 F +GLIBC_2.27 erff64x F GLIBC_2.27 exp10f128 F +GLIBC_2.27 exp10f64x F GLIBC_2.27 exp2f F GLIBC_2.27 exp2f128 F +GLIBC_2.27 exp2f64x F GLIBC_2.27 expf F GLIBC_2.27 expf128 F +GLIBC_2.27 expf64x F GLIBC_2.27 expm1f128 F +GLIBC_2.27 expm1f64x F GLIBC_2.27 fabsf128 F +GLIBC_2.27 fabsf64x F GLIBC_2.27 fdimf128 F +GLIBC_2.27 fdimf64x F GLIBC_2.27 floorf128 F +GLIBC_2.27 floorf64x F GLIBC_2.27 fmaf128 F +GLIBC_2.27 fmaf64x F GLIBC_2.27 fmaxf128 F +GLIBC_2.27 fmaxf64x F GLIBC_2.27 fmaxmagf128 F +GLIBC_2.27 fmaxmagf64x F GLIBC_2.27 fminf128 F +GLIBC_2.27 fminf64x F GLIBC_2.27 fminmagf128 F +GLIBC_2.27 fminmagf64x F GLIBC_2.27 fmodf128 F +GLIBC_2.27 fmodf64x F GLIBC_2.27 frexpf128 F +GLIBC_2.27 frexpf64x F GLIBC_2.27 fromfpf128 F +GLIBC_2.27 fromfpf64x F GLIBC_2.27 fromfpxf128 F +GLIBC_2.27 fromfpxf64x F GLIBC_2.27 getpayloadf128 F +GLIBC_2.27 getpayloadf64x F GLIBC_2.27 hypotf128 F +GLIBC_2.27 hypotf64x F GLIBC_2.27 ilogbf128 F +GLIBC_2.27 ilogbf64x F GLIBC_2.27 j0f128 F +GLIBC_2.27 j0f64x F GLIBC_2.27 j1f128 F +GLIBC_2.27 j1f64x F GLIBC_2.27 jnf128 F +GLIBC_2.27 jnf64x F GLIBC_2.27 ldexpf128 F +GLIBC_2.27 ldexpf64x F GLIBC_2.27 lgammaf128 F GLIBC_2.27 lgammaf128_r F +GLIBC_2.27 lgammaf64x F +GLIBC_2.27 lgammaf64x_r F GLIBC_2.27 llogbf128 F +GLIBC_2.27 llogbf64x F GLIBC_2.27 llrintf128 F +GLIBC_2.27 llrintf64x F GLIBC_2.27 llroundf128 F +GLIBC_2.27 llroundf64x F GLIBC_2.27 log10f128 F +GLIBC_2.27 log10f64x F GLIBC_2.27 log1pf128 F +GLIBC_2.27 log1pf64x F GLIBC_2.27 log2f F GLIBC_2.27 log2f128 F +GLIBC_2.27 log2f64x F GLIBC_2.27 logbf128 F +GLIBC_2.27 logbf64x F GLIBC_2.27 logf F GLIBC_2.27 logf128 F +GLIBC_2.27 logf64x F GLIBC_2.27 lrintf128 F +GLIBC_2.27 lrintf64x F GLIBC_2.27 lroundf128 F +GLIBC_2.27 lroundf64x F GLIBC_2.27 modff128 F +GLIBC_2.27 modff64x F GLIBC_2.27 nanf128 F +GLIBC_2.27 nanf64x F GLIBC_2.27 nearbyintf128 F +GLIBC_2.27 nearbyintf64x F GLIBC_2.27 nextafterf128 F +GLIBC_2.27 nextafterf64x F GLIBC_2.27 nextdownf128 F +GLIBC_2.27 nextdownf64x F GLIBC_2.27 nextupf128 F +GLIBC_2.27 nextupf64x F GLIBC_2.27 powf F GLIBC_2.27 powf128 F +GLIBC_2.27 powf64x F GLIBC_2.27 remainderf128 F +GLIBC_2.27 remainderf64x F GLIBC_2.27 remquof128 F +GLIBC_2.27 remquof64x F GLIBC_2.27 rintf128 F +GLIBC_2.27 rintf64x F GLIBC_2.27 roundevenf128 F +GLIBC_2.27 roundevenf64x F GLIBC_2.27 roundf128 F +GLIBC_2.27 roundf64x F GLIBC_2.27 scalblnf128 F +GLIBC_2.27 scalblnf64x F GLIBC_2.27 scalbnf128 F +GLIBC_2.27 scalbnf64x F GLIBC_2.27 setpayloadf128 F +GLIBC_2.27 setpayloadf64x F GLIBC_2.27 setpayloadsigf128 F +GLIBC_2.27 setpayloadsigf64x F GLIBC_2.27 sincosf128 F +GLIBC_2.27 sincosf64x F GLIBC_2.27 sinf128 F +GLIBC_2.27 sinf64x F GLIBC_2.27 sinhf128 F +GLIBC_2.27 sinhf64x F GLIBC_2.27 sqrtf128 F +GLIBC_2.27 sqrtf64x F GLIBC_2.27 tanf128 F +GLIBC_2.27 tanf64x F GLIBC_2.27 tanhf128 F +GLIBC_2.27 tanhf64x F GLIBC_2.27 tgammaf128 F +GLIBC_2.27 tgammaf64x F GLIBC_2.27 totalorderf128 F +GLIBC_2.27 totalorderf64x F GLIBC_2.27 totalordermagf128 F +GLIBC_2.27 totalordermagf64x F GLIBC_2.27 truncf128 F +GLIBC_2.27 truncf64x F GLIBC_2.27 ufromfpf128 F +GLIBC_2.27 ufromfpf64x F GLIBC_2.27 ufromfpxf128 F +GLIBC_2.27 ufromfpxf64x F GLIBC_2.27 y0f128 F +GLIBC_2.27 y0f64x F GLIBC_2.27 y1f128 F +GLIBC_2.27 y1f64x F GLIBC_2.27 ynf128 F +GLIBC_2.27 ynf64x F GLIBC_2.4 GLIBC_2.4 A GLIBC_2.4 __clog10l F GLIBC_2.4 __finitel F |