]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - math/w_exp2f.c
powerpc: Fix build of wcscpy with --disable-multi-arch
[thirdparty/glibc.git] / math / w_exp2f.c
index 7c277ef39080bd949658edb0adea984fd303ffda..71aadce801e138983b7151219f22250e68fb8765 100644 (file)
@@ -1,19 +1,8 @@
-/*
- * wrapper exp2f(x)
- */
-
-#include <math.h>
-#include <math_private.h>
-
-float
-__exp2f (float x)
-{
-  float z = __ieee754_exp2f (x);
-  if (__builtin_expect (!__finitef (z), 0)
-      && __finitef (x) && _LIB_VERSION != _IEEE_)
-    /* exp2 overflow: 144, exp2 underflow: 145 */
-    return __kernel_standard_f (x, x, 144 + !!__signbitf (x));
-
-  return z;
-}
-weak_alias (__exp2f, exp2f)
+#include <math-type-macros-float.h>
+#undef __USE_WRAPPER_TEMPLATE
+#define __USE_WRAPPER_TEMPLATE 1
+#undef declare_mgen_alias
+#define declare_mgen_alias(a, b)
+#include <w_exp2_template.c>
+versioned_symbol (libm, __exp2f, exp2f, GLIBC_2_27);
+libm_alias_float_other (__exp2, exp2)