]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - math/w_hypot_compat.c
Update copyright dates with scripts/update-copyrights
[thirdparty/glibc.git] / math / w_hypot_compat.c
index 7c662c8e40e1f3aa22a0e7c226bcefbc0a78a776..ec983a4ab8df61fb9d71b9d019147357ad57d8dd 100644 (file)
 
 #include <math.h>
 #include <math_private.h>
+#include <math-svid-compat.h>
+#include <libm-alias-double.h>
 
 
+#if LIBM_SVID_COMPAT && SHLIB_COMPAT (libm, GLIBC_2_0, GLIBC_2_35)
 double
-__hypot (double x, double y)
+__hypot_compat (double x, double y)
 {
        double z = __ieee754_hypot(x,y);
        if(__builtin_expect(!isfinite(z), 0)
@@ -28,8 +31,12 @@ __hypot (double x, double y)
 
        return z;
 }
-weak_alias (__hypot, hypot)
-#ifdef NO_LONG_DOUBLE
-strong_alias (__hypot, __hypotl)
-weak_alias (__hypot, hypotl)
+compat_symbol (libm, __hypot_compat, hypot, GLIBC_2_0);
+# ifdef NO_LONG_DOUBLE
+weak_alias (__hypot_compat, hypotl)
+# endif
+# ifdef LONG_DOUBLE_COMPAT
+LONG_DOUBLE_COMPAT_CHOOSE_libm_hypotl (
+  compat_symbol (libm, __hypot_compat, hypotl, FIRST_VERSION_libm_hypotl), );
+# endif
 #endif