]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - math/w_sqrtl_compat.c
x86: Do not raises floating-point exception traps on fesetexceptflag (BZ 30990)
[thirdparty/glibc.git] / math / w_sqrtl_compat.c
index 43e81acf0a9322b2462389dfe94a47b4ac7ec8b0..8f8a0fb9492e22f76ab05c57f3093c3463790799 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/>.  */
 
+#define NO_MATH_REDIRECT
+#define f64xsqrtf128 __hide_f64xsqrtf128
 #include <math.h>
+#undef f64xsqrtf128
 #include <math_private.h>
 #include <math-svid-compat.h>
+#include <math-narrow-alias.h>
+#include <libm-alias-ldouble.h>
 
 
+#if LIBM_SVID_COMPAT
 /* wrapper sqrtl */
 long double
 __sqrtl (long double x)
@@ -30,4 +35,6 @@ __sqrtl (long double x)
 
   return __ieee754_sqrtl (x);
 }
-weak_alias (__sqrtl, sqrtl)
+libm_alias_ldouble (__sqrt, sqrt)
+libm_alias_ldouble_narrow (__sqrt, sqrt)
+#endif