aboutsummaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
Diffstat (limited to 'math')
-rw-r--r--math/math-svid-compat.h7
-rw-r--r--math/s_casin_template.c2
-rw-r--r--math/s_casinh_template.c2
-rw-r--r--math/s_ccosh_template.c2
-rw-r--r--math/s_cexp_template.c1
-rw-r--r--math/s_clog_template.c2
-rw-r--r--math/s_csqrt_template.c1
-rw-r--r--math/s_ldexp_template.c2
-rw-r--r--math/w_atan2_compat.c1
-rw-r--r--math/w_atan2_template.c1
-rw-r--r--math/w_atan2f_compat.c1
-rw-r--r--math/w_atan2l_compat.c1
-rw-r--r--math/w_hypot_compat.c1
-rw-r--r--math/w_hypot_template.c1
-rw-r--r--math/w_hypotf_compat.c1
-rw-r--r--math/w_hypotl_compat.c1
-rw-r--r--math/w_ilogb_template.c1
-rw-r--r--math/w_log_compat.c1
-rw-r--r--math/w_log_template.c1
-rw-r--r--math/w_logl_compat.c1
-rw-r--r--math/w_sqrt_compat.c1
-rw-r--r--math/w_sqrt_template.c1
-rw-r--r--math/w_sqrtf_compat.c1
-rw-r--r--math/w_sqrtl_compat.c1
24 files changed, 27 insertions, 8 deletions
diff --git a/math/math-svid-compat.h b/math/math-svid-compat.h
index 2afadd7b1f..aea90d27a7 100644
--- a/math/math-svid-compat.h
+++ b/math/math-svid-compat.h
@@ -66,9 +66,10 @@ extern int __matherr (struct exception *__exc);
#ifdef _LIBC
/* fdlibm kernel function */
-extern double __kernel_standard (double, double, int);
-extern float __kernel_standard_f (float, float, int);
-extern long double __kernel_standard_l (long double, long double, int);
+extern double __kernel_standard (double, double, int) attribute_hidden;
+extern float __kernel_standard_f (float, float, int) attribute_hidden;
+extern long double __kernel_standard_l (long double, long double, int)
+ attribute_hidden;
# include <shlib-compat.h>
# define LIBM_SVID_COMPAT SHLIB_COMPAT (libm, GLIBC_2_0, GLIBC_2_27)
diff --git a/math/s_casin_template.c b/math/s_casin_template.c
index 24eb7abce5..9c6c94ddb3 100644
--- a/math/s_casin_template.c
+++ b/math/s_casin_template.c
@@ -59,5 +59,5 @@ M_DECL_FUNC (__casin) (CFLOAT x)
return res;
}
-
+libm_hidden_def (M_SUF (__casin))
declare_mgen_alias (__casin, casin)
diff --git a/math/s_casinh_template.c b/math/s_casinh_template.c
index 8433ce134d..bf42a82069 100644
--- a/math/s_casinh_template.c
+++ b/math/s_casinh_template.c
@@ -67,5 +67,5 @@ M_DECL_FUNC (__casinh) (CFLOAT x)
return res;
}
-
+libm_hidden_def (M_SUF (__casinh))
declare_mgen_alias (__casinh, casinh)
diff --git a/math/s_ccosh_template.c b/math/s_ccosh_template.c
index 6840c4819e..f55324593a 100644
--- a/math/s_ccosh_template.c
+++ b/math/s_ccosh_template.c
@@ -133,5 +133,5 @@ M_DECL_FUNC (__ccosh) (CFLOAT x)
return retval;
}
-
+libm_hidden_def (M_SUF (__ccosh))
declare_mgen_alias (__ccosh, ccosh);
diff --git a/math/s_cexp_template.c b/math/s_cexp_template.c
index e099e42a4c..586b991a17 100644
--- a/math/s_cexp_template.c
+++ b/math/s_cexp_template.c
@@ -147,4 +147,5 @@ M_DECL_FUNC (__cexp) (CFLOAT x)
return retval;
}
+libm_hidden_def (M_SUF (__cexp))
declare_mgen_alias (__cexp, cexp)
diff --git a/math/s_clog_template.c b/math/s_clog_template.c
index 8aa1f74c8b..3e7537fd81 100644
--- a/math/s_clog_template.c
+++ b/math/s_clog_template.c
@@ -111,5 +111,5 @@ M_DECL_FUNC (__clog) (CFLOAT x)
return result;
}
-
+libm_hidden_def (M_SUF (__clog))
declare_mgen_alias (__clog, clog)
diff --git a/math/s_csqrt_template.c b/math/s_csqrt_template.c
index dcf14c7537..e3ac17e72b 100644
--- a/math/s_csqrt_template.c
+++ b/math/s_csqrt_template.c
@@ -157,4 +157,5 @@ M_DECL_FUNC (__csqrt) (CFLOAT x)
return res;
}
+libm_hidden_def (M_SUF (__csqrt))
declare_mgen_alias (__csqrt, csqrt)
diff --git a/math/s_ldexp_template.c b/math/s_ldexp_template.c
index 3aa56f9f89..7dff66ac1c 100644
--- a/math/s_ldexp_template.c
+++ b/math/s_ldexp_template.c
@@ -26,7 +26,7 @@ M_SUF (__ldexp) (FLOAT value, int exp)
if(!isfinite(value)||value==0) __set_errno (ERANGE);
return value;
}
-
+libm_hidden_def (M_SUF (__ldexp))
declare_mgen_alias (__ldexp, ldexp)
strong_alias (M_SUF (__ldexp), M_SUF (__wrap_scalbn))
declare_mgen_alias (__wrap_scalbn, scalbn)
diff --git a/math/w_atan2_compat.c b/math/w_atan2_compat.c
index 056590cf56..f2b5b69fc6 100644
--- a/math/w_atan2_compat.c
+++ b/math/w_atan2_compat.c
@@ -41,5 +41,6 @@ __atan2 (double y, double x)
__set_errno (ERANGE);
return z;
}
+libm_hidden_def (__atan2)
libm_alias_double (__atan2, atan2)
#endif
diff --git a/math/w_atan2_template.c b/math/w_atan2_template.c
index bca55e363a..3e55e561f4 100644
--- a/math/w_atan2_template.c
+++ b/math/w_atan2_template.c
@@ -34,6 +34,7 @@ M_DECL_FUNC (__atan2) (FLOAT y, FLOAT x)
__set_errno (ERANGE);
return z;
}
+libm_hidden_def (M_SUF (__atan2))
declare_mgen_alias (__atan2, atan2)
#endif /* __USE_WRAPPER_TEMPLATE. */
diff --git a/math/w_atan2f_compat.c b/math/w_atan2f_compat.c
index e8aa377879..aac9d95039 100644
--- a/math/w_atan2f_compat.c
+++ b/math/w_atan2f_compat.c
@@ -41,5 +41,6 @@ __atan2f (float y, float x)
__set_errno (ERANGE);
return z;
}
+libm_hidden_def (__atan2f)
libm_alias_float (__atan2, atan2)
#endif
diff --git a/math/w_atan2l_compat.c b/math/w_atan2l_compat.c
index 94a3b48437..f0f93939c9 100644
--- a/math/w_atan2l_compat.c
+++ b/math/w_atan2l_compat.c
@@ -41,5 +41,6 @@ __atan2l (long double y, long double x)
__set_errno (ERANGE);
return z;
}
+libm_hidden_def (__atan2l)
libm_alias_ldouble (__atan2, atan2)
#endif
diff --git a/math/w_hypot_compat.c b/math/w_hypot_compat.c
index f07039cc51..80aad58efa 100644
--- a/math/w_hypot_compat.c
+++ b/math/w_hypot_compat.c
@@ -31,5 +31,6 @@ __hypot (double x, double y)
return z;
}
+libm_hidden_def (__hypot)
libm_alias_double (__hypot, hypot)
#endif
diff --git a/math/w_hypot_template.c b/math/w_hypot_template.c
index 549e49aa0d..3ed0c76002 100644
--- a/math/w_hypot_template.c
+++ b/math/w_hypot_template.c
@@ -35,6 +35,7 @@ M_DECL_FUNC (__hypot) (FLOAT x, FLOAT y)
__set_errno (ERANGE);
return z;
}
+libm_hidden_def (M_SUF (__hypot))
declare_mgen_alias (__hypot, hypot)
#endif /* __USE_WRAPPER_TEMPLATE. */
diff --git a/math/w_hypotf_compat.c b/math/w_hypotf_compat.c
index 82870ce551..0e6f5bedad 100644
--- a/math/w_hypotf_compat.c
+++ b/math/w_hypotf_compat.c
@@ -35,5 +35,6 @@ __hypotf(float x, float y)
return z;
}
+libm_hidden_def (__hypotf)
libm_alias_float (__hypot, hypot)
#endif
diff --git a/math/w_hypotl_compat.c b/math/w_hypotl_compat.c
index db5495103d..89f11448bf 100644
--- a/math/w_hypotl_compat.c
+++ b/math/w_hypotl_compat.c
@@ -36,5 +36,6 @@ __hypotl(long double x, long double y)
return z;
}
+libm_hidden_def (__hypotl)
libm_alias_ldouble (__hypot, hypot)
#endif
diff --git a/math/w_ilogb_template.c b/math/w_ilogb_template.c
index 3e45f33b9c..7d98b2589d 100644
--- a/math/w_ilogb_template.c
+++ b/math/w_ilogb_template.c
@@ -35,4 +35,5 @@ M_DECL_FUNC (__ilogb) (FLOAT x)
}
return r;
}
+libm_hidden_def (M_SUF (__ilogb))
declare_mgen_alias (__ilogb, ilogb)
diff --git a/math/w_log_compat.c b/math/w_log_compat.c
index 5413b8e8df..6c4f4d2e40 100644
--- a/math/w_log_compat.c
+++ b/math/w_log_compat.c
@@ -44,5 +44,6 @@ __log (double x)
return __ieee754_log (x);
}
+libm_hidden_def (__log)
libm_alias_double (__log, log)
#endif
diff --git a/math/w_log_template.c b/math/w_log_template.c
index 0515fee629..26eef7b2c0 100644
--- a/math/w_log_template.c
+++ b/math/w_log_template.c
@@ -40,6 +40,7 @@ M_DECL_FUNC (__log) (FLOAT x)
}
return M_SUF (__ieee754_log) (x);
}
+libm_hidden_def (M_SUF (__log))
declare_mgen_alias (__log, log)
#endif /* __USE_WRAPPER_TEMPLATE. */
diff --git a/math/w_logl_compat.c b/math/w_logl_compat.c
index 991251a7c5..ea64aca483 100644
--- a/math/w_logl_compat.c
+++ b/math/w_logl_compat.c
@@ -44,5 +44,6 @@ __logl (long double x)
return __ieee754_logl (x);
}
+libm_hidden_def (__logl)
libm_alias_ldouble (__log, log)
#endif
diff --git a/math/w_sqrt_compat.c b/math/w_sqrt_compat.c
index e76a8079aa..fe3d95b640 100644
--- a/math/w_sqrt_compat.c
+++ b/math/w_sqrt_compat.c
@@ -33,5 +33,6 @@ __sqrt (double x)
return __ieee754_sqrt (x);
}
+libm_hidden_def (__sqrt)
libm_alias_double (__sqrt, sqrt)
#endif
diff --git a/math/w_sqrt_template.c b/math/w_sqrt_template.c
index 9c6ac75956..f660de6e76 100644
--- a/math/w_sqrt_template.c
+++ b/math/w_sqrt_template.c
@@ -35,6 +35,7 @@ M_DECL_FUNC (__sqrt) (FLOAT x)
__set_errno (EDOM);
return M_SUF (__ieee754_sqrt) (x);
}
+libm_hidden_def (M_SUF (__sqrt))
declare_mgen_alias (__sqrt, sqrt)
#endif /* __USE_WRAPPER_TEMPLATE. */
diff --git a/math/w_sqrtf_compat.c b/math/w_sqrtf_compat.c
index cad9b4ad77..78b1f60745 100644
--- a/math/w_sqrtf_compat.c
+++ b/math/w_sqrtf_compat.c
@@ -33,5 +33,6 @@ __sqrtf (float x)
return __ieee754_sqrtf (x);
}
+libm_hidden_def (__sqrtf)
libm_alias_float (__sqrt, sqrt)
#endif
diff --git a/math/w_sqrtl_compat.c b/math/w_sqrtl_compat.c
index 16dda403b7..a3dd418d5e 100644
--- a/math/w_sqrtl_compat.c
+++ b/math/w_sqrtl_compat.c
@@ -33,5 +33,6 @@ __sqrtl (long double x)
return __ieee754_sqrtl (x);
}
+libm_hidden_def (__sqrtl)
libm_alias_ldouble (__sqrt, sqrt)
#endif