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 some places to use $(LN_S) makefile variable.
[glibc.git]
/
sysdeps
/
ieee754
/
flt-32
/
s_isinf_nsf.c
blob
284d61926ad9b6d47fc8b8cc118c5612324f6def
1
/*
2
* Written by Ulrich Drepper <drepper@gmail.com>.
3
*/
4
5
/*
6
* __isinf_nsf(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_nsf
14
int
15
__isinf_nsf
(
float
x
)
16
{
17
int32_t
ix
;
18
GET_FLOAT_WORD
(
ix
,
x
);
19
return
(
ix
&
0x7fffffff
) ==
0x7f800000
;
20
}