mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-30 00:31:08 +00:00
5146356f5a
TS 18661-1 defines an fesetexcept function for setting floating-point exception flags without the side-effect of causing enabled traps to be taken. This patch series implements this function for glibc. The present patch adds the fallback stub implementation, x86 and x86_64 implementations, documentation, tests and ABI baseline updates. The remaining patches, some of them untested, add implementations for other architectures. The implementations generally follow those of the fesetexceptflag function. As for fesetexceptflag, the approach taken for architectures where setting flags causes enabled traps to be taken is to set the flags (and potentially cause traps) rather than refusing to set the flags and returning an error. Since ISO C and TS 18661 provide no way to enable traps, this is formally in accordance with the standards. The NEWS entry should be considered a placeholder, since this patch series is intended to be followed by further such series adding other TS 18661-1 features, so that the NEWS entry would end up looking more like * New <fenv.h> features from TS 18661-1:2014 are added to libm: the fesetexcept, fetestexceptflag, fegetmode and fesetmode functions, the femode_t type and the FE_DFL_MODE macro. with hopefully more such entries for other features, rather than having an entry for a single function in the end. I believe we have consensus for adding TS 18661-1 interfaces as per <https://sourceware.org/ml/libc-alpha/2016-06/msg00421.html>. Tested for x86_64, x86, mips64 (hard float, and soft float to test the fallback version), arm (hard float) and powerpc (hard float, soft float and e500). * math/fesetexcept.c: New file. * sysdeps/i386/fpu/fesetexcept.c: Likewise. * sysdeps/x86_64/fpu/fesetexcept.c: Likewise. * math/fenv.h: Define __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include <bits/libc-header-start.h> instead of including <features.h>. [__GLIBC_USE (IEC_60559_BFP_EXT)] (fesetexcept): New function declaration. * manual/arith.texi (fesetexcept): Document function. * math/Versions (fesetexcept): New libm symbol at version GLIBC_2.25. * math/Makefile (libm-support): Add fesetexcept. (tests): Add test-fesetexcept and test-fesetexcept-traps. * math/test-fesetexcept.c: New file. * math/test-fesetexcept-traps.c: Likewise. * sysdeps/nacl/libm.abilist: Update. * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise. * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise. * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise. * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise. * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise. * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise. * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise. * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise. * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise. * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise. * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise. * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.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/libm.abilist: Likewise. * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise. * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise. * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Likewise. * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: Likewise. * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise. * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise. * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
387 lines
7.7 KiB
Plaintext
387 lines
7.7 KiB
Plaintext
GLIBC_2.15 GLIBC_2.15 A
|
|
GLIBC_2.15 __acos_finite F
|
|
GLIBC_2.15 __acosf_finite F
|
|
GLIBC_2.15 __acosh_finite F
|
|
GLIBC_2.15 __acoshf_finite F
|
|
GLIBC_2.15 __asin_finite F
|
|
GLIBC_2.15 __asinf_finite F
|
|
GLIBC_2.15 __atan2_finite F
|
|
GLIBC_2.15 __atan2f_finite F
|
|
GLIBC_2.15 __atanh_finite F
|
|
GLIBC_2.15 __atanhf_finite F
|
|
GLIBC_2.15 __cosh_finite F
|
|
GLIBC_2.15 __coshf_finite F
|
|
GLIBC_2.15 __exp10_finite F
|
|
GLIBC_2.15 __exp10f_finite F
|
|
GLIBC_2.15 __exp2_finite F
|
|
GLIBC_2.15 __exp2f_finite F
|
|
GLIBC_2.15 __exp_finite F
|
|
GLIBC_2.15 __expf_finite F
|
|
GLIBC_2.15 __fmod_finite F
|
|
GLIBC_2.15 __fmodf_finite F
|
|
GLIBC_2.15 __gamma_r_finite F
|
|
GLIBC_2.15 __gammaf_r_finite F
|
|
GLIBC_2.15 __hypot_finite F
|
|
GLIBC_2.15 __hypotf_finite F
|
|
GLIBC_2.15 __j0_finite F
|
|
GLIBC_2.15 __j0f_finite F
|
|
GLIBC_2.15 __j1_finite F
|
|
GLIBC_2.15 __j1f_finite F
|
|
GLIBC_2.15 __jn_finite F
|
|
GLIBC_2.15 __jnf_finite F
|
|
GLIBC_2.15 __lgamma_r_finite F
|
|
GLIBC_2.15 __lgammaf_r_finite F
|
|
GLIBC_2.15 __log10_finite F
|
|
GLIBC_2.15 __log10f_finite F
|
|
GLIBC_2.15 __log2_finite F
|
|
GLIBC_2.15 __log2f_finite F
|
|
GLIBC_2.15 __log_finite F
|
|
GLIBC_2.15 __logf_finite F
|
|
GLIBC_2.15 __pow_finite F
|
|
GLIBC_2.15 __powf_finite F
|
|
GLIBC_2.15 __remainder_finite F
|
|
GLIBC_2.15 __remainderf_finite F
|
|
GLIBC_2.15 __scalb_finite F
|
|
GLIBC_2.15 __scalbf_finite F
|
|
GLIBC_2.15 __sinh_finite F
|
|
GLIBC_2.15 __sinhf_finite F
|
|
GLIBC_2.15 __sqrt_finite F
|
|
GLIBC_2.15 __sqrtf_finite F
|
|
GLIBC_2.15 __y0_finite F
|
|
GLIBC_2.15 __y0f_finite F
|
|
GLIBC_2.15 __y1_finite F
|
|
GLIBC_2.15 __y1f_finite F
|
|
GLIBC_2.15 __yn_finite F
|
|
GLIBC_2.15 __ynf_finite F
|
|
GLIBC_2.18 GLIBC_2.18 A
|
|
GLIBC_2.18 __issignaling F
|
|
GLIBC_2.18 __issignalingf F
|
|
GLIBC_2.2 GLIBC_2.2 A
|
|
GLIBC_2.2 _LIB_VERSION D 0x4
|
|
GLIBC_2.2 __clog10 F
|
|
GLIBC_2.2 __clog10f F
|
|
GLIBC_2.2 __clog10l F
|
|
GLIBC_2.2 __finite F
|
|
GLIBC_2.2 __finitef F
|
|
GLIBC_2.2 __fpclassify F
|
|
GLIBC_2.2 __fpclassifyf F
|
|
GLIBC_2.2 __signbit F
|
|
GLIBC_2.2 __signbitf F
|
|
GLIBC_2.2 __signbitl F
|
|
GLIBC_2.2 acos F
|
|
GLIBC_2.2 acosf F
|
|
GLIBC_2.2 acosh F
|
|
GLIBC_2.2 acoshf F
|
|
GLIBC_2.2 acoshl F
|
|
GLIBC_2.2 acosl F
|
|
GLIBC_2.2 asin F
|
|
GLIBC_2.2 asinf F
|
|
GLIBC_2.2 asinh F
|
|
GLIBC_2.2 asinhf F
|
|
GLIBC_2.2 asinhl F
|
|
GLIBC_2.2 asinl F
|
|
GLIBC_2.2 atan F
|
|
GLIBC_2.2 atan2 F
|
|
GLIBC_2.2 atan2f F
|
|
GLIBC_2.2 atan2l F
|
|
GLIBC_2.2 atanf F
|
|
GLIBC_2.2 atanh F
|
|
GLIBC_2.2 atanhf F
|
|
GLIBC_2.2 atanhl F
|
|
GLIBC_2.2 atanl F
|
|
GLIBC_2.2 cabs F
|
|
GLIBC_2.2 cabsf F
|
|
GLIBC_2.2 cabsl F
|
|
GLIBC_2.2 cacos F
|
|
GLIBC_2.2 cacosf F
|
|
GLIBC_2.2 cacosh F
|
|
GLIBC_2.2 cacoshf F
|
|
GLIBC_2.2 cacoshl F
|
|
GLIBC_2.2 cacosl F
|
|
GLIBC_2.2 carg F
|
|
GLIBC_2.2 cargf F
|
|
GLIBC_2.2 cargl F
|
|
GLIBC_2.2 casin F
|
|
GLIBC_2.2 casinf F
|
|
GLIBC_2.2 casinh F
|
|
GLIBC_2.2 casinhf F
|
|
GLIBC_2.2 casinhl F
|
|
GLIBC_2.2 casinl F
|
|
GLIBC_2.2 catan F
|
|
GLIBC_2.2 catanf F
|
|
GLIBC_2.2 catanh F
|
|
GLIBC_2.2 catanhf F
|
|
GLIBC_2.2 catanhl F
|
|
GLIBC_2.2 catanl F
|
|
GLIBC_2.2 cbrt F
|
|
GLIBC_2.2 cbrtf F
|
|
GLIBC_2.2 cbrtl F
|
|
GLIBC_2.2 ccos F
|
|
GLIBC_2.2 ccosf F
|
|
GLIBC_2.2 ccosh F
|
|
GLIBC_2.2 ccoshf F
|
|
GLIBC_2.2 ccoshl F
|
|
GLIBC_2.2 ccosl F
|
|
GLIBC_2.2 ceil F
|
|
GLIBC_2.2 ceilf F
|
|
GLIBC_2.2 ceill F
|
|
GLIBC_2.2 cexp F
|
|
GLIBC_2.2 cexpf F
|
|
GLIBC_2.2 cexpl F
|
|
GLIBC_2.2 cimag F
|
|
GLIBC_2.2 cimagf F
|
|
GLIBC_2.2 cimagl F
|
|
GLIBC_2.2 clog F
|
|
GLIBC_2.2 clog10 F
|
|
GLIBC_2.2 clog10f F
|
|
GLIBC_2.2 clog10l F
|
|
GLIBC_2.2 clogf F
|
|
GLIBC_2.2 clogl F
|
|
GLIBC_2.2 conj F
|
|
GLIBC_2.2 conjf F
|
|
GLIBC_2.2 conjl F
|
|
GLIBC_2.2 copysign F
|
|
GLIBC_2.2 copysignf F
|
|
GLIBC_2.2 copysignl F
|
|
GLIBC_2.2 cos F
|
|
GLIBC_2.2 cosf F
|
|
GLIBC_2.2 cosh F
|
|
GLIBC_2.2 coshf F
|
|
GLIBC_2.2 coshl F
|
|
GLIBC_2.2 cosl F
|
|
GLIBC_2.2 cpow F
|
|
GLIBC_2.2 cpowf F
|
|
GLIBC_2.2 cpowl F
|
|
GLIBC_2.2 cproj F
|
|
GLIBC_2.2 cprojf F
|
|
GLIBC_2.2 cprojl F
|
|
GLIBC_2.2 creal F
|
|
GLIBC_2.2 crealf F
|
|
GLIBC_2.2 creall F
|
|
GLIBC_2.2 csin F
|
|
GLIBC_2.2 csinf F
|
|
GLIBC_2.2 csinh F
|
|
GLIBC_2.2 csinhf F
|
|
GLIBC_2.2 csinhl F
|
|
GLIBC_2.2 csinl F
|
|
GLIBC_2.2 csqrt F
|
|
GLIBC_2.2 csqrtf F
|
|
GLIBC_2.2 csqrtl F
|
|
GLIBC_2.2 ctan F
|
|
GLIBC_2.2 ctanf F
|
|
GLIBC_2.2 ctanh F
|
|
GLIBC_2.2 ctanhf F
|
|
GLIBC_2.2 ctanhl F
|
|
GLIBC_2.2 ctanl F
|
|
GLIBC_2.2 drem F
|
|
GLIBC_2.2 dremf F
|
|
GLIBC_2.2 dreml F
|
|
GLIBC_2.2 erf F
|
|
GLIBC_2.2 erfc F
|
|
GLIBC_2.2 erfcf F
|
|
GLIBC_2.2 erfcl F
|
|
GLIBC_2.2 erff F
|
|
GLIBC_2.2 erfl F
|
|
GLIBC_2.2 exp F
|
|
GLIBC_2.2 exp10 F
|
|
GLIBC_2.2 exp10f F
|
|
GLIBC_2.2 exp10l F
|
|
GLIBC_2.2 exp2 F
|
|
GLIBC_2.2 exp2f F
|
|
GLIBC_2.2 expf F
|
|
GLIBC_2.2 expl F
|
|
GLIBC_2.2 expm1 F
|
|
GLIBC_2.2 expm1f F
|
|
GLIBC_2.2 expm1l F
|
|
GLIBC_2.2 fabs F
|
|
GLIBC_2.2 fabsf F
|
|
GLIBC_2.2 fabsl F
|
|
GLIBC_2.2 fdim F
|
|
GLIBC_2.2 fdimf F
|
|
GLIBC_2.2 fdiml F
|
|
GLIBC_2.2 feclearexcept F
|
|
GLIBC_2.2 fedisableexcept F
|
|
GLIBC_2.2 feenableexcept F
|
|
GLIBC_2.2 fegetenv F
|
|
GLIBC_2.2 fegetexcept F
|
|
GLIBC_2.2 fegetexceptflag F
|
|
GLIBC_2.2 fegetround F
|
|
GLIBC_2.2 feholdexcept F
|
|
GLIBC_2.2 feraiseexcept F
|
|
GLIBC_2.2 fesetenv F
|
|
GLIBC_2.2 fesetexceptflag F
|
|
GLIBC_2.2 fesetround F
|
|
GLIBC_2.2 fetestexcept F
|
|
GLIBC_2.2 feupdateenv F
|
|
GLIBC_2.2 finite F
|
|
GLIBC_2.2 finitef F
|
|
GLIBC_2.2 finitel F
|
|
GLIBC_2.2 floor F
|
|
GLIBC_2.2 floorf F
|
|
GLIBC_2.2 floorl F
|
|
GLIBC_2.2 fma F
|
|
GLIBC_2.2 fmaf F
|
|
GLIBC_2.2 fmal F
|
|
GLIBC_2.2 fmax F
|
|
GLIBC_2.2 fmaxf F
|
|
GLIBC_2.2 fmaxl F
|
|
GLIBC_2.2 fmin F
|
|
GLIBC_2.2 fminf F
|
|
GLIBC_2.2 fminl F
|
|
GLIBC_2.2 fmod F
|
|
GLIBC_2.2 fmodf F
|
|
GLIBC_2.2 fmodl F
|
|
GLIBC_2.2 frexp F
|
|
GLIBC_2.2 frexpf F
|
|
GLIBC_2.2 frexpl F
|
|
GLIBC_2.2 gamma F
|
|
GLIBC_2.2 gammaf F
|
|
GLIBC_2.2 gammal F
|
|
GLIBC_2.2 hypot F
|
|
GLIBC_2.2 hypotf F
|
|
GLIBC_2.2 hypotl F
|
|
GLIBC_2.2 ilogb F
|
|
GLIBC_2.2 ilogbf F
|
|
GLIBC_2.2 ilogbl F
|
|
GLIBC_2.2 j0 F
|
|
GLIBC_2.2 j0f F
|
|
GLIBC_2.2 j0l F
|
|
GLIBC_2.2 j1 F
|
|
GLIBC_2.2 j1f F
|
|
GLIBC_2.2 j1l F
|
|
GLIBC_2.2 jn F
|
|
GLIBC_2.2 jnf F
|
|
GLIBC_2.2 jnl F
|
|
GLIBC_2.2 ldexp F
|
|
GLIBC_2.2 ldexpf F
|
|
GLIBC_2.2 ldexpl F
|
|
GLIBC_2.2 lgamma F
|
|
GLIBC_2.2 lgamma_r F
|
|
GLIBC_2.2 lgammaf F
|
|
GLIBC_2.2 lgammaf_r F
|
|
GLIBC_2.2 lgammal F
|
|
GLIBC_2.2 lgammal_r F
|
|
GLIBC_2.2 llrint F
|
|
GLIBC_2.2 llrintf F
|
|
GLIBC_2.2 llrintl F
|
|
GLIBC_2.2 llround F
|
|
GLIBC_2.2 llroundf F
|
|
GLIBC_2.2 llroundl F
|
|
GLIBC_2.2 log F
|
|
GLIBC_2.2 log10 F
|
|
GLIBC_2.2 log10f F
|
|
GLIBC_2.2 log10l F
|
|
GLIBC_2.2 log1p F
|
|
GLIBC_2.2 log1pf F
|
|
GLIBC_2.2 log1pl F
|
|
GLIBC_2.2 log2 F
|
|
GLIBC_2.2 log2f F
|
|
GLIBC_2.2 log2l F
|
|
GLIBC_2.2 logb F
|
|
GLIBC_2.2 logbf F
|
|
GLIBC_2.2 logbl F
|
|
GLIBC_2.2 logf F
|
|
GLIBC_2.2 logl F
|
|
GLIBC_2.2 lrint F
|
|
GLIBC_2.2 lrintf F
|
|
GLIBC_2.2 lrintl F
|
|
GLIBC_2.2 lround F
|
|
GLIBC_2.2 lroundf F
|
|
GLIBC_2.2 lroundl F
|
|
GLIBC_2.2 matherr F
|
|
GLIBC_2.2 modf F
|
|
GLIBC_2.2 modff F
|
|
GLIBC_2.2 modfl F
|
|
GLIBC_2.2 nan F
|
|
GLIBC_2.2 nanf F
|
|
GLIBC_2.2 nanl F
|
|
GLIBC_2.2 nearbyint F
|
|
GLIBC_2.2 nearbyintf F
|
|
GLIBC_2.2 nearbyintl F
|
|
GLIBC_2.2 nextafter F
|
|
GLIBC_2.2 nextafterf F
|
|
GLIBC_2.2 nextafterl F
|
|
GLIBC_2.2 nexttoward F
|
|
GLIBC_2.2 nexttowardf F
|
|
GLIBC_2.2 nexttowardl F
|
|
GLIBC_2.2 pow F
|
|
GLIBC_2.2 pow10 F
|
|
GLIBC_2.2 pow10f F
|
|
GLIBC_2.2 pow10l F
|
|
GLIBC_2.2 powf F
|
|
GLIBC_2.2 powl F
|
|
GLIBC_2.2 remainder F
|
|
GLIBC_2.2 remainderf F
|
|
GLIBC_2.2 remainderl F
|
|
GLIBC_2.2 remquo F
|
|
GLIBC_2.2 remquof F
|
|
GLIBC_2.2 remquol F
|
|
GLIBC_2.2 rint F
|
|
GLIBC_2.2 rintf F
|
|
GLIBC_2.2 rintl F
|
|
GLIBC_2.2 round F
|
|
GLIBC_2.2 roundf F
|
|
GLIBC_2.2 roundl F
|
|
GLIBC_2.2 scalb F
|
|
GLIBC_2.2 scalbf F
|
|
GLIBC_2.2 scalbl F
|
|
GLIBC_2.2 scalbln F
|
|
GLIBC_2.2 scalblnf F
|
|
GLIBC_2.2 scalblnl F
|
|
GLIBC_2.2 scalbn F
|
|
GLIBC_2.2 scalbnf F
|
|
GLIBC_2.2 scalbnl F
|
|
GLIBC_2.2 signgam D 0x4
|
|
GLIBC_2.2 significand F
|
|
GLIBC_2.2 significandf F
|
|
GLIBC_2.2 significandl F
|
|
GLIBC_2.2 sin F
|
|
GLIBC_2.2 sincos F
|
|
GLIBC_2.2 sincosf F
|
|
GLIBC_2.2 sincosl F
|
|
GLIBC_2.2 sinf F
|
|
GLIBC_2.2 sinh F
|
|
GLIBC_2.2 sinhf F
|
|
GLIBC_2.2 sinhl F
|
|
GLIBC_2.2 sinl F
|
|
GLIBC_2.2 sqrt F
|
|
GLIBC_2.2 sqrtf F
|
|
GLIBC_2.2 sqrtl F
|
|
GLIBC_2.2 tan F
|
|
GLIBC_2.2 tanf F
|
|
GLIBC_2.2 tanh F
|
|
GLIBC_2.2 tanhf F
|
|
GLIBC_2.2 tanhl F
|
|
GLIBC_2.2 tanl F
|
|
GLIBC_2.2 tgamma F
|
|
GLIBC_2.2 tgammaf F
|
|
GLIBC_2.2 tgammal F
|
|
GLIBC_2.2 trunc F
|
|
GLIBC_2.2 truncf F
|
|
GLIBC_2.2 truncl F
|
|
GLIBC_2.2 y0 F
|
|
GLIBC_2.2 y0f F
|
|
GLIBC_2.2 y0l F
|
|
GLIBC_2.2 y1 F
|
|
GLIBC_2.2 y1f F
|
|
GLIBC_2.2 y1l F
|
|
GLIBC_2.2 yn F
|
|
GLIBC_2.2 ynf F
|
|
GLIBC_2.2 ynl F
|
|
GLIBC_2.23 GLIBC_2.23 A
|
|
GLIBC_2.23 __signgam D 0x4
|
|
GLIBC_2.23 lgamma F
|
|
GLIBC_2.23 lgammaf F
|
|
GLIBC_2.23 lgammal F
|
|
GLIBC_2.24 GLIBC_2.24 A
|
|
GLIBC_2.24 nextdown F
|
|
GLIBC_2.24 nextdownf F
|
|
GLIBC_2.24 nextdownl F
|
|
GLIBC_2.24 nextup F
|
|
GLIBC_2.24 nextupf F
|
|
GLIBC_2.24 nextupl F
|
|
GLIBC_2.25 GLIBC_2.25 A
|
|
GLIBC_2.25 fesetexcept F
|
|
GLIBC_2.4 GLIBC_2.4 A
|
|
GLIBC_2.4 exp2l F
|