]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - math/w_powf_compat.c
math: Remove the error handling wrapper from fmod and fmodf
[thirdparty/glibc.git] / math / w_powf_compat.c
index 7e3b0150016a2c24ad85988bfbc5ee20862b855a..91dadb6c96aab28cab1da458053706b503e89dc3 100644 (file)
@@ -1,6 +1,5 @@
-/* Copyright (C) 2011-2017 Free Software Foundation, Inc.
+/* Copyright (C) 2011-2023 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
-   Contributed by Ulrich Drepper <drepper@gmail.com>, 2011.
 
    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
 
    You should have received a copy of the GNU Lesser General Public
    License along with the GNU C Library; if not, see
-   <http://www.gnu.org/licenses/>.  */
+   <https://www.gnu.org/licenses/>.  */
 
 #include <math.h>
 #include <math_private.h>
+#include <math-svid-compat.h>
+#include <libm-alias-float.h>
 
 
+#if LIBM_SVID_COMPAT && SHLIB_COMPAT (libm, GLIBC_2_0, GLIBC_2_27)
 /* wrapper powf */
 float
-__powf (float x, float y)
+__powf_compat (float x, float y)
 {
   float z = __ieee754_powf (x, y);
   if (__glibc_unlikely (!isfinite (z)))
@@ -57,4 +59,5 @@ __powf (float x, float y)
 
   return z;
 }
-weak_alias (__powf, powf)
+compat_symbol (libm, __powf_compat, powf, GLIBC_2_0);
+#endif