repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Expand PMF_FN_* macros.
[netbsd-mini2440.git]
/
lib
/
libm
/
src
/
s_isinff.c
blob
721ac2611d9e289b1379518d011715b0487167c5
1
/*
2
* Written by J.T. Conklin <jtc@NetBSD.org>.
3
* Public domain.
4
*/
5
6
#include <sys/cdefs.h>
7
#if defined(LIBM_SCCS) && !defined(lint)
8
__RCSID
(
"$NetBSD: s_isinff.c,v 1.5 2002/05/26 22:01:56 wiz Exp $"
);
9
#endif
10
11
/*
12
* isinff(x) returns 1 is x is inf, else 0;
13
* no branching!
14
*/
15
16
#include
"math.h"
17
#include
"math_private.h"
18
19
int
20
isinff
(
float
x
)
21
{
22
int32_t
ix
;
23
GET_FLOAT_WORD
(
ix
,
x
);
24
ix
&=
0x7fffffff
;
25
ix
^=
0x7f800000
;
26
return
(
ix
==
0
);
27
}