repo.or.cz
/
AROS.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
x11gfx.hidd: support 32 bit modes
[AROS.git]
/
compiler
/
stdc
/
math
/
s_isinff.c
blob
41de0b4d3742f71f3588807449926a0474c72820
1
/*
2
* Written by J.T. Conklin <jtc@NetBSD.org>.
3
* Public domain.
4
*/
5
6
#if defined(LIBM_SCCS) && !defined(lint)
7
__RCSID
(
"$NetBSD: s_isinff.c,v 1.6 2003/07/26 19:25:06 salo Exp $"
);
8
#endif
9
10
/*
11
* isinff(x) returns 1 is x is inf, else 0;
12
* no branching!
13
*/
14
15
#include
"math.h"
16
#include
"math_private.h"
17
18
int
19
__isinff
(
float
x
)
20
{
21
int32_t
ix
;
22
GET_FLOAT_WORD
(
ix
,
x
);
23
ix
&=
0x7fffffff
;
24
ix
^=
0x7f800000
;
25
return
(
ix
==
0
);
26
}