7 #define FLT_MANT_DIG 24
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
19 #define DBL_MANT_DIG 53
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 #if defined __i386__ || defined __x86_64__
32 #define LDBL_MANT_DIG 64
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 #elif defined __aarch64__ || defined __riscv
45 * gcc -dM -E -xc /dev/null | grep LDBL | sed -e "s/__//g"
47 #define LDBL_MANT_DIG 113
49 #define LDBL_EPSILON 1.92592994438723585305597794258492732e-34L
50 #define LDBL_MIN_EXP (-16381)
51 #define LDBL_MIN 3.36210314311209350626267781732175260e-4932L
52 #define LDBL_MIN_10_EXP (-4931)
53 #define LDBL_MAX_EXP 16384
54 #define LDBL_MAX 1.18973149535723176508575932662800702e+4932L
55 #define LDBL_MAX_EXP 16384
59 /* same as IEEE double */
60 #define LDBL_MANT_DIG 53
62 #define LDBL_EPSILON 2.2204460492503131e-16L
63 #define LDBL_MIN_EXP (-1021)
64 #define LDBL_MIN 2.2250738585072014e-308L
65 #define LDBL_MIN_10_EXP (-307)
66 #define LDBL_MAX_EXP 1024
67 #define LDBL_MAX 1.7976931348623157e+308L
68 #define LDBL_MAX_10_EXP 308
72 #endif /* _FLOAT_H_ */