added object file reading support
[tinycc.git] / float.h
blob5f1c6f73c76c0caadb5fa4c7ab1f0ce859d11033
1 #ifndef _FLOAT_H_
2 #define _FLOAT_H_
4 #define FLT_RADIX 2
6 /* IEEE float */
7 #define FLT_MANT_DIG 24
8 #define FLT_DIG 6
9 #define FLT_ROUNDS 1
10 #define FLT_EPSILON 1.19209290e-07F
11 #define FLT_MIN_EXP (-125)
12 #define FLT_MIN 1.17549435e-38F
13 #define FLT_MIN_10_EXP (-37)
14 #define FLT_MAX_EXP 128
15 #define FLT_MAX 3.40282347e+38F
16 #define FLT_MAX_10_EXP 38
18 /* IEEE double */
19 #define DBL_MANT_DIG 53
20 #define DBL_DIG 15
21 #define DBL_EPSILON 2.2204460492503131e-16
22 #define DBL_MIN_EXP (-1021)
23 #define DBL_MIN 2.2250738585072014e-308
24 #define DBL_MIN_10_EXP (-307)
25 #define DBL_MAX_EXP 1024
26 #define DBL_MAX 1.7976931348623157e+308
27 #define DBL_MAX_10_EXP 308
29 /* horrible intel long double */
30 #ifdef __i386__
32 #define LDBL_MANT_DIG 64
33 #define LDBL_DIG 18
34 #define LDBL_EPSILON 1.08420217248550443401e-19L
35 #define LDBL_MIN_EXP (-16381)
36 #define LDBL_MIN 3.36210314311209350626e-4932L
37 #define LDBL_MIN_10_EXP (-4931)
38 #define LDBL_MAX_EXP 16384
39 #define LDBL_MAX 1.18973149535723176502e+4932L
40 #define LDBL_MAX_10_EXP 4932
42 #else
44 /* same as IEEE double */
45 #define LDBL_MANT_DIG 53
46 #define LDBL_DIG 15
47 #define LDBL_EPSILON 2.2204460492503131e-16
48 #define LDBL_MIN_EXP (-1021)
49 #define LDBL_MIN 2.2250738585072014e-308
50 #define LDBL_MIN_10_EXP (-307)
51 #define LDBL_MAX_EXP 1024
52 #define LDBL_MAX 1.7976931348623157e+308
53 #define LDBL_MAX_10_EXP 308
55 #endif
57 #endif /* _FLOAT_H_ */