1 /* Internal header file for cminpack, by Frederic Devernay. */
2 #ifndef __MINPACKP_H__
3 #define __MINPACKP_H__
4 
5 #ifndef __CMINPACK_H__
6 #error "minpackP.h in an internal cminpack header, and must be included after all other headers (including cminpack.h)"
7 #endif
8 
9 #include <float.h>
10 
11 #define double_EPSILON DBL_EPSILON
12 #define double_MIN DBL_MIN
13 #define double_MAX DBL_MAX
14 #define long_double_EPSILON LDBL_EPSILON
15 #define long_double_MIN LDBL_MIN
16 #define long_double_MAX LDBL_MAX
17 #define float_EPSILON FLT_EPSILON
18 #define float_MIN FLT_MIN
19 #define float_MAX FLT_MAX
20 #define half_EPSILON HALF_EPSILON
21 #define half_MIN HALF_NRM_MIN
22 #define half_MAX HALF_MAX
23 
24 #define real __cminpack_real__
25 #ifdef __cminpack_long_double__
26 #define realm long_double
27 #define fabs(x) fabsl(x)
28 #define sqrt(x) sqrtl(x)
29 #define log(x) logl(x)
30 #define exp(x) expl(x)
31 #define sin(x) sinl(x)
32 #define cos(x) cosl(x)
33 #define tan(x) tanl(x)
34 #define asin(x) asinl(x)
35 #define acos(x) acosl(x)
36 #define atan(x) atanl(x)
37 #define floor(x) floorl(x)
38 #define ceil(x) ceill(x)
39 extern long double floorl ( long double );
40 extern long double ellpkl ( long double );
41 #else
42 #define realm real
43 #endif
44 #define min(a,b) ((a) <= (b) ? (a) : (b))
45 #define max(a,b) ((a) >= (b) ? (a) : (b))
46 #define abs(x) ((x) >= 0 ? (x) : -(x))
47 #define TRUE_ (1)
48 #define FALSE_ (0)
49 
50 #endif /* !__MINPACKP_H__ */
51