fixes for host gcc 4.6.1
[zpugcc/jano.git] / toolchain / gcc / newlib / libc / machine / i386 / f_math.h
blobbd44b1e92ee297aa4d7ba62d2a3c2a76dbb8b928
1 #ifndef __F_MATH_H__
2 #define __F_MATH_H__
4 #include <_ansi.h>
5 #include "fdlibm.h"
7 __inline__
8 static
9 int
10 _DEFUN (check_finite, (x),
11 double x)
13 __int32_t hx;
14 GET_HIGH_WORD(hx,x);
15 return (int)((__uint32_t)((hx&0x7fffffff)-0x7ff00000)>>31);
18 __inline__
19 static
20 int
21 _DEFUN (check_finitef, (x),
22 float x)
24 __int32_t ix;
25 GET_FLOAT_WORD(ix,x);
26 return (int)((__uint32_t)((ix&0x7fffffff)-0x7f800000)>>31);
29 #endif /* __F_MATH_H__ */