]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libquadmath/math/fabsq.c
Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686).
[thirdparty/gcc.git] / libquadmath / math / fabsq.c
index a103f840f38e67fd6462f2db3b80d7ec6799fb50..27e8b2824786c9b5b6d3fae4a147ebf22b14bd99 100644 (file)
@@ -1,4 +1,4 @@
-/* fabsq.c -- __float128 version of s_fabs.c.
+/* s_fabsl.c -- long double version of s_fabs.c.
  * Conversion to IEEE quad long double by Jakub Jelinek, jj@ultra.linux.cz.
  */
 
  * ====================================================
  */
 
+#if defined(LIBM_SCCS) && !defined(lint)
+static char rcsid[] = "$NetBSD: $";
+#endif
+
+/*
+ * fabsq(x) returns the absolute value of x.
+ */
+
 #include "quadmath-imp.h"
 
-__float128
-fabsq (__float128 x)
+__float128 fabsq(__float128 x)
 {
-  uint64_t hx;
-  GET_FLT128_MSW64(hx,x);
-  SET_FLT128_MSW64(x,hx&0x7fffffffffffffffLL);
-  return x;
+       uint64_t hx;
+       GET_FLT128_MSW64(hx,x);
+       SET_FLT128_MSW64(x,hx&0x7fffffffffffffffLL);
+        return x;
 }