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
Fix sparc struct fpu definition.
[glibc.git]
/
sysdeps
/
ieee754
/
dbl-64
/
s_isinf_ns.c
blob
d8142bcf6ebf0346fcbbfdec1cb613dfd073882a
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
int32_t
hx
,
lx
;
18
EXTRACT_WORDS
(
hx
,
lx
,
x
);
19
return
!(
lx
| ((
hx
&
0x7fffffff
) ^
0x7ff00000
));
20
}