repo.or.cz
/
minix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
isblank() implementation.
[minix.git]
/
lib
/
libc
/
ack
/
math
/
isnan.c
blob
97257f45bc86635c9230ccb6112de174fe645f48
1
int
__IsNan
(
double
d
)
2
{
3
#if defined(vax) || defined(pdp)
4
#else
5
float
f
=
d
;
6
7
if
((*((
long
*) &
f
) &
0x7f800000
) ==
0x7f800000
&&
8
(*((
long
*) &
f
) &
0x007fffff
) !=
0
)
return
1
;
9
#endif
10
return
0
;
11
}