Cygwin: access: Fix X_OK behaviour for backup operators and admins
[newlib-cygwin.git] / newlib / libm / machine / i386 / f_math.h
blob833e5cff9c5c7a68d8e7095288c05f018d0bbdb5
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 check_finite (double x)
12 __int32_t hx;
13 GET_HIGH_WORD(hx,x);
14 return (int)((__uint32_t)((hx&0x7fffffff)-0x7ff00000)>>31);
17 __inline__
18 static
19 int
20 check_finitef (float x)
22 __int32_t ix;
23 GET_FLOAT_WORD(ix,x);
24 return (int)((__uint32_t)((ix&0x7fffffff)-0x7f800000)>>31);
27 #endif /* __F_MATH_H__ */