diff options
Diffstat (limited to 'math/w_exp2f_compat.c')
-rw-r--r-- | math/w_exp2f_compat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/math/w_exp2f_compat.c b/math/w_exp2f_compat.c index b058daed30..6ab6f6c6de 100644 --- a/math/w_exp2f_compat.c +++ b/math/w_exp2f_compat.c @@ -6,9 +6,9 @@ #include <math_private.h> #include <math-svid-compat.h> -#if LIBM_SVID_COMPAT +#if LIBM_SVID_COMPAT && SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27) float -__exp2f (float x) +__exp2f_compat (float x) { float z = __ieee754_exp2f (x); if (__builtin_expect (!isfinite (z) || z == 0, 0) @@ -18,5 +18,5 @@ __exp2f (float x) return z; } -weak_alias (__exp2f, exp2f) +compat_symbol (libm, __exp2f_compat, exp2f, GLIBC_2_1); #endif |