1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-09-11 12:10:50 +03:00
Files
glibc/sysdeps/x86_64/fpu/multiarch/s_tanh-fma.c
Sunil K Pandey c6352111c7 x86_64: Add tanh with FMA
On Skylake, it improves tanh bench performance by:

	Before 		After 		Improvement
max	110.89		95.826		14%
min	20.966		20.157		4%
mean	30.9601		29.8431		4%

Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
2025-03-13 06:20:32 -07:00

12 lines
327 B
C

#define __tanh __tanh_fma
#define __expm1 __expm1_fma
/* NB: __expm1 may be expanded to __expm1_fma in the following
prototypes. */
extern long double __expm1l (long double);
extern long double __expm1f128 (long double);
#define SECTION __attribute__ ((section (".text.fma")))
#include <sysdeps/ieee754/dbl-64/s_tanh.c>