repo.or.cz
/
newlib-cygwin.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git]
/
newlib
/
libm
/
common
/
sf_isinff.c
blob
cd7b2cfd3f9c5ad860e8102636bad9c652cfe631
1
/*
2
* __isinff(x) returns 1 if x is +-infinity, else 0;
3
* Added by Cygnus Support.
4
*/
5
6
#include
"fdlibm.h"
7
8
int
9
__isinff
(
float
x
)
10
{
11
__int32_t ix
;
12
GET_FLOAT_WORD
(
ix
,
x
);
13
ix
&=
0x7fffffff
;
14
return
FLT_UWORD_IS_INFINITE
(
ix
);
15
}
16
17
#ifdef _DOUBLE_IS_32BITS
18
19
int
20
__isinfd
(
double
x
)
21
{
22
return
__isinff
((
float
)
x
);
23
}
24
25
#endif
/* defined(_DOUBLE_IS_32BITS) */