1 /*
2 Copyright (C) 1998, 2002 by Red Hat Inc. All rights reserved.
3 
4 Permission to use, copy, modify, and distribute this
5 software is freely granted, provided that this notice
6 is preserved.
7  */
8 #ifndef __F_MATH_H__
9 #define __F_MATH_H__
10 
11 #include "fdlibm.h"
12 
13 __inline__
14 static
15 int
check_finite(double x)16 check_finite (double x)
17 {
18   __int32_t hx;
19   GET_HIGH_WORD(hx,x);
20   return  (int)((__uint32_t)((hx&0x7fffffff)-0x7ff00000)>>31);
21 }
22 
23 __inline__
24 static
25 int
check_finitef(float x)26 check_finitef (float x)
27 {
28   __int32_t ix;
29   GET_FLOAT_WORD(ix,x);
30   return  (int)((__uint32_t)((ix&0x7fffffff)-0x7f800000)>>31);
31 }
32 
33 float _f_expf (float x);
34 float _f_powf (float x, float y);
35 float _f_rintf (float x);
36 long int _f_lrintf (float x);
37 long long int _f_llrintf (float x);
38 
39 double _f_exp (double x);
40 double _f_pow (double x, double y);
41 double _f_rint (double x);
42 long int _f_lrint (double x);
43 long int _f_lrintl (long double x);
44 long long int _f_llrint (double x);
45 
46 long double _f_rintl (long double x);
47 long long int _f_llrintl (long double x);
48 
49 #endif /* __F_MATH_H__ */
50