glibc/sysdeps/ieee754/float128
Joseph Myers 4b6574a6f6 Redirect fma calls to __fma in libm
include/math.h has a mechanism to redirect internal calls to various
libm functions, that can often be inlined by the compiler, to call
non-exported __* names for those functions in the case when the calls
aren't inlined, with the redirection being disabled when
NO_MATH_REDIRECT.  Add fma to the functions to which this mechanism is
applied.

At present, libm-internal fma calls (generally to __builtin_fma*
functions) are only done when it's known the call will be inlined,
with alternative code not relying on an fma operation being used in
the caller otherwise.  This patch is in preparation for adding the TS
18661 / C2X narrowing fma functions to glibc; it will be natural for
the narrowing function implementations to call the underlying fma
functions unconditionally, with this either being inlined or resulting
in an __fma* call.  (Using two levels of round-to-odd computation like
that, in the case where there isn't an fma hardware instruction, isn't
optimal but is certainly a lot simpler for the initial implementation
than writing different narrowing fma implementations for all the
various pairs of formats.)

Tested with build-many-glibcs.py that installed stripped shared
libraries are unchanged by the patch (using
<https://sourceware.org/pipermail/libc-alpha/2021-September/130991.html>
to fix installed library stripping in build-many-glibcs.py).  Also
tested for x86_64.
2021-09-15 22:57:35 +00:00
..
e_acosf128.c
e_acoshf128.c
e_asinf128.c
e_atan2f128.c
e_atanhf128.c
e_coshf128.c
e_exp10f128.c
e_expf128.c
e_fmodf128.c
e_gammaf128_r.c
e_hypotf128.c
e_ilogbf128.c
e_j0f128.c
e_j1f128.c
e_jnf128.c
e_lgammaf128_r.c
e_log2f128.c
e_log10f128.c
e_logf128.c
e_powf128.c
e_rem_pio2f128.c
e_remainderf128.c
e_scalbf128.c
e_sinhf128.c
float128_private.h Add narrowing square root functions 2021-09-10 20:56:22 +00:00
float1282mpn.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
gamma_productf128.c
ieee754_float128.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
k_cosf128.c
k_sincosf128.c
k_sinf128.c
k_tanf128.c
lgamma_negf128.c
lgamma_productf128.c
Makeconfig Add _Float64x function aliases. 2017-11-27 14:16:47 +00:00
Makefile Add libio-mtsafe flags to the build of strfromf128 2017-06-23 10:31:49 -03:00
math-nan-payload-float128.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
mpn2float128.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
s_asinhf128.c
s_atanf128.c
s_cbrtf128.c
s_ceilf128.c Use ceil functions not __ceil functions in glibc libm. 2018-09-17 20:42:06 +00:00
s_copysignf128.c Use copysign functions not __copysign functions in glibc libm. 2018-09-27 20:04:48 +00:00
s_cosf128.c
s_erff128.c
s_expm1f128.c
s_f32addf128.c Add narrowing add functions. 2018-02-10 02:08:43 +00:00
s_f32divf128.c Add narrowing divide functions. 2018-05-17 00:40:52 +00:00
s_f32mulf128.c Add narrowing multiply functions. 2018-05-16 00:05:28 +00:00
s_f32sqrtf128.c Add narrowing square root functions 2021-09-10 20:56:22 +00:00
s_f32subf128.c Add narrowing subtract functions. 2018-03-20 00:34:52 +00:00
s_f64addf128.c Add narrowing add functions. 2018-02-10 02:08:43 +00:00
s_f64divf128.c Add narrowing divide functions. 2018-05-17 00:40:52 +00:00
s_f64mulf128.c Add narrowing multiply functions. 2018-05-16 00:05:28 +00:00
s_f64sqrtf128.c Add narrowing square root functions 2021-09-10 20:56:22 +00:00
s_f64subf128.c Add narrowing subtract functions. 2018-03-20 00:34:52 +00:00
s_f64xaddf128.c Add narrowing add functions. 2018-02-10 02:08:43 +00:00
s_f64xdivf128.c Add narrowing divide functions. 2018-05-17 00:40:52 +00:00
s_f64xmulf128.c Add narrowing multiply functions. 2018-05-16 00:05:28 +00:00
s_f64xsqrtf128.c Add narrowing square root functions 2021-09-10 20:56:22 +00:00
s_f64xsubf128.c Add narrowing subtract functions. 2018-03-20 00:34:52 +00:00
s_fabsf128.c
s_finitef128.c
s_floorf128.c Use floor functions not __floor functions in glibc libm. 2018-09-14 13:09:01 +00:00
s_fmaf128.c Redirect fma calls to __fma in libm 2021-09-15 22:57:35 +00:00
s_fpclassifyf128.c
s_frexpf128.c
s_fromfpf128.c Use libm_alias_float128 more in sysdeps/ieee754/float128. 2017-11-24 23:53:54 +00:00
s_fromfpxf128.c Use libm_alias_float128 more in sysdeps/ieee754/float128. 2017-11-24 23:53:54 +00:00
s_getpayloadf128.c
s_isinff128.c
s_isnanf128.c Move __isnanf128 to libc.so 2021-03-30 14:58:19 +05:30
s_issignalingf128.c
s_llrintf128.c
s_llroundf128.c
s_log1pf128.c
s_logbf128.c
s_lrintf128.c
s_lroundf128.c
s_modff128.c
s_nearbyintf128.c
s_nextafterf128.c
s_nexttowardf128.c
s_nextupf128.c
s_remquof128.c
s_rintf128.c Use rint functions not __rint functions in glibc libm. 2018-09-14 13:10:39 +00:00
s_roundevenf128.c math: redirect roundeven function 2021-06-27 07:56:57 -07:00
s_roundf128.c Use round functions not __round functions in glibc libm. 2018-09-27 12:35:23 +00:00
s_scalblnf128.c
s_scalbnf128.c
s_setpayloadf128.c Use libm_alias_float128 more in sysdeps/ieee754/float128. 2017-11-24 23:53:54 +00:00
s_setpayloadsigf128.c Use libm_alias_float128 more in sysdeps/ieee754/float128. 2017-11-24 23:53:54 +00:00
s_signbitf128.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
s_significandf128.c
s_sincosf128.c
s_sinf128.c
s_tanf128.c
s_tanhf128.c
s_totalorderf128.c
s_totalordermagf128.c
s_truncf128.c Use trunc functions not __trunc functions in glibc libm. 2018-09-20 21:11:10 +00:00
s_ufromfpf128.c Use libm_alias_float128 more in sysdeps/ieee754/float128. 2017-11-24 23:53:54 +00:00
s_ufromfpxf128.c Use libm_alias_float128 more in sysdeps/ieee754/float128. 2017-11-24 23:53:54 +00:00
strfromf128.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
strtof128.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
strtof128_l.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
strtof128_nan.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
t_sincosf128.c
Versions Move __isnanf128 to libc.so 2021-03-30 14:58:19 +05:30
w_scalbf128.c Add a generic scalb implementation 2020-02-14 08:24:56 -06:00
wcstof128.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
wcstof128_l.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
wcstof128_nan.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
x2y2m1f128.c