repo.or.cz
/
zpugcc
/
jano.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fixes for host gcc 4.6.1
[zpugcc/jano.git]
/
toolchain
/
gcc
/
newlib
/
libc
/
machine
/
i386
/
f_math.h
blob
bd44b1e92ee297aa4d7ba62d2a3c2a76dbb8b928
1
#ifndef __F_MATH_H__
2
#define __F_MATH_H__
3
4
#include <_ansi.h>
5
#include
"fdlibm.h"
6
7
__inline__
8
static
9
int
10
_DEFUN
(
check_finite
, (
x
),
11
double
x
)
12
{
13
__int32_t hx
;
14
GET_HIGH_WORD
(
hx
,
x
);
15
return
(
int
)((
__uint32_t
)((
hx
&
0x7fffffff
)-
0x7ff00000
)>>
31
);
16
}
17
18
__inline__
19
static
20
int
21
_DEFUN
(
check_finitef
, (
x
),
22
float
x
)
23
{
24
__int32_t ix
;
25
GET_FLOAT_WORD
(
ix
,
x
);
26
return
(
int
)((
__uint32_t
)((
ix
&
0x7fffffff
)-
0x7f800000
)>>
31
);
27
}
28
29
#endif
/* __F_MATH_H__ */