#include <libm-alias-float.h>
-#if LIBM_SVID_COMPAT
+#if LIBM_SVID_COMPAT && SHLIB_COMPAT (libm, GLIBC_2_0, GLIBC_2_43)
/* wrapper acoshf */
float
-__acoshf (float x)
+__acosh_compatf (float x)
{
if (__builtin_expect (isless (x, 1.0f), 0) && _LIB_VERSION != _IEEE_)
/* acosh(x<1) */
return __ieee754_acoshf (x);
}
-libm_alias_float (__acosh, acosh)
+compat_symbol (libm, __acosh_compatf, acoshf, GLIBC_2_0);
#endif
#include <math.h>
#include <stdint.h>
#include <libm-alias-finite.h>
+#include <libm-alias-float.h>
+#include <math-svid-compat.h>
#include "math_config.h"
#include "s_asincoshf_data.h"
}
float
-__ieee754_acoshf (float x)
+__acoshf (float x)
{
uint32_t t = asuint (x);
if (__glibc_unlikely (t <= 0x3f800000u))
else
return as_special (x);
}
+strong_alias (__acoshf, __ieee754_acoshf)
+#if LIBM_SVID_COMPAT
+versioned_symbol (libm, __acoshf, acoshf, GLIBC_2_43);
+libm_alias_float_other (__acosh, acosh)
+#else
+libm_alias_float (__acosh, acosh)
+#endif
libm_alias_finite (__ieee754_acoshf, __acoshf)