From 46e3895b6c986857b5759c5cb307e7fcb3fad39f Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Tue, 11 Sep 2018 11:04:35 -0400 Subject: apply hidden visibility to internal math functions this makes significant differences to codegen on archs with an expensive PLT-calling ABI; on i386 and gcc 7.3 for example, the sin and sinf functions no longer touch call-saved registers or the stack except for pushing outgoing arguments. performance is likely improved too, but no measurements were taken. --- src/math/__invtrigl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/math') diff --git a/src/math/__invtrigl.h b/src/math/__invtrigl.h index 91a8a3b6..2d97133b 100644 --- a/src/math/__invtrigl.h +++ b/src/math/__invtrigl.h @@ -1,6 +1,6 @@ /* shared by acosl, asinl and atan2l */ #define pio2_hi __pio2_hi #define pio2_lo __pio2_lo -extern const long double pio2_hi, pio2_lo; +hidden extern const long double pio2_hi, pio2_lo; -long double __invtrigl_R(long double z); +hidden long double __invtrigl_R(long double z); -- cgit v1.2.1