1.4.2
by Aurelien Jarno
Import upstream version 2.16 |
1 |
/*
|
2 |
* Written by Ulrich Drepper <drepper@gmail.com>.
|
|
3 |
*/
|
|
4 |
||
5 |
/*
|
|
6 |
* __isinf_ns(x) returns != 0 if x is ±inf, else 0;
|
|
7 |
* no branching!
|
|
8 |
*/
|
|
9 |
||
1.5.3
by Matthias Klose
Import upstream version 2.15~pre6 |
10 |
#include "math.h" |
11 |
#include "math_private.h" |
|
1.4.2
by Aurelien Jarno
Import upstream version 2.16 |
12 |
|
13 |
#undef __isinf_ns
|
|
14 |
int
|
|
15 |
__isinf_ns (double x) |
|
16 |
{
|
|
17 |
int64_t ix; |
|
18 |
EXTRACT_WORDS64(ix,x); |
|
19 |
return (ix & UINT64_C(0x7fffffffffffffff)) == UINT64_C(0x7ff0000000000000); |
|
20 |
}
|