repo.or.cz
/
glibc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Update copyright notices with scripts/update-copyrights.
[glibc.git]
/
sysdeps
/
ieee754
/
dbl-64
/
wordsize-64
/
s_isinf_ns.c
blob
9d78ed13ae9a933687da0c4520f6cd004ebad800
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
10
#include <math.h>
11
#include <math_private.h>
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
}