summaryrefslogtreecommitdiff
path: root/libquadmath/math/finiteq.c
diff options
context:
space:
mode:
Diffstat (limited to 'libquadmath/math/finiteq.c')
-rw-r--r--libquadmath/math/finiteq.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/libquadmath/math/finiteq.c b/libquadmath/math/finiteq.c
index e6703fb2261..5d554a02204 100644
--- a/libquadmath/math/finiteq.c
+++ b/libquadmath/math/finiteq.c
@@ -1,4 +1,4 @@
-/* finiteq.c -- __float128 version of s_finite.c.
+/* s_finitel.c -- long double version of s_finite.c.
* Conversion to IEEE quad long double by Jakub Jelinek, jj@ultra.linux.cz.
*/
@@ -13,18 +13,21 @@
* ====================================================
*/
-#include "quadmath-imp.h"
+#if defined(LIBM_SCCS) && !defined(lint)
+static char rcsid[] = "$NetBSD: $";
+#endif
/*
* finiteq(x) returns 1 is x is finite, else 0;
* no branching!
*/
-int
-finiteq (const __float128 x)
+#include "quadmath-imp.h"
+
+int finiteq(__float128 x)
{
- int64_t hx;
- GET_FLT128_MSW64(hx,x);
- return (int)((uint64_t)((hx&0x7fff000000000000LL)
- -0x7fff000000000000LL)>>63);
+ int64_t hx;
+ GET_FLT128_MSW64(hx,x);
+ return (int)((uint64_t)((hx&0x7fff000000000000LL)
+ -0x7fff000000000000LL)>>63);
}