annotate libquadmath/math/isinf_nsq.c @ 136:4627f235cf2a

fix c-next example
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Thu, 08 Nov 2018 14:11:56 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /*
kono
parents:
diff changeset
2 * Written by Ulrich Drepper <drepper@gmail.com>
kono
parents:
diff changeset
3 */
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 /*
kono
parents:
diff changeset
6 * __quadmath_isinf_nsq (x) returns != 0 if x is ±inf, else 0;
kono
parents:
diff changeset
7 * no branching!
kono
parents:
diff changeset
8 */
kono
parents:
diff changeset
9
kono
parents:
diff changeset
10 #include "quadmath-imp.h"
kono
parents:
diff changeset
11
kono
parents:
diff changeset
12 int
kono
parents:
diff changeset
13 __quadmath_isinf_nsq (__float128 x)
kono
parents:
diff changeset
14 {
kono
parents:
diff changeset
15 int64_t hx,lx;
kono
parents:
diff changeset
16 GET_FLT128_WORDS64(hx,lx,x);
kono
parents:
diff changeset
17 return !(lx | ((hx & 0x7fffffffffffffffLL) ^ 0x7fff000000000000LL));
kono
parents:
diff changeset
18 }
kono
parents:
diff changeset
19