summaryrefslogtreecommitdiff
path: root/src/math
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2018-09-11 11:04:35 -0400
committerRich Felker <dalias@aerifal.cx>2018-09-12 14:34:34 -0400
commit46e3895b6c986857b5759c5cb307e7fcb3fad39f (patch)
tree5da7051d6ff0092f295faac11de3dd3372e14f93 /src/math
parent13d1afa46f8098df290008c681816c9eb89ffbdb (diff)
downloadmusl-46e3895b6c986857b5759c5cb307e7fcb3fad39f.tar.gz
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.
Diffstat (limited to 'src/math')
-rw-r--r--src/math/__invtrigl.h4
1 files changed, 2 insertions, 2 deletions
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);