mirror of
https://sourceware.org/git/glibc.git
synced 2025-09-11 12:10:50 +03:00
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>
12 lines
327 B
C
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>
|