nscd: Use time_t for return type of addgetnetgrentX
[glibc.git] / sysdeps / ieee754 / ldbl-128 / s_finitel.c
blobbfdd88fbbb226f5b553f228cec6daeddff16b3f9
1 /* s_finitel.c -- long double version of s_finite.c.
2 */
4 /*
5 * ====================================================
6 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
8 * Developed at SunPro, a Sun Microsystems, Inc. business.
9 * Permission to use, copy, modify, and distribute this
10 * software is freely granted, provided that this notice
11 * is preserved.
12 * ====================================================
15 #if defined(LIBM_SCCS) && !defined(lint)
16 static char rcsid[] = "$NetBSD: $";
17 #endif
20 * finitel(x) returns 1 is x is finite, else 0;
21 * no branching!
24 #include <math.h>
25 #include <math_private.h>
27 int __finitel(_Float128 x)
29 int64_t hx;
30 GET_LDOUBLE_MSW64(hx,x);
31 return (int)((uint64_t)((hx&0x7fff000000000000LL)
32 -0x7fff000000000000LL)>>63);
34 mathx_hidden_def (__finitel)
35 weak_alias (__finitel, finitel)