提交 22730d65 编写于 作者: R Rich Felker

add FLT_TRUE_MIN, etc. macros from C11

there was some question as to how many decimal places to use, since
one decimal place is always sufficient to identify the smallest
denormal uniquely. for now, I'm following the example in the C
standard which is consistent with the other min/max macros we already
had in place.
上级 ec9f5353
#define FLT_ROUNDS 1 #define FLT_ROUNDS 1
#define FLT_EVAL_METHOD 0 #define FLT_EVAL_METHOD 0
#define LDBL_TRUE_MIN 4.9406564584124654e-324
#define LDBL_MIN 2.2250738585072014e-308 #define LDBL_MIN 2.2250738585072014e-308
#define LDBL_MAX 1.7976931348623157e+308 #define LDBL_MAX 1.7976931348623157e+308
#define LDBL_EPSILON 2.2204460492503131e-16 #define LDBL_EPSILON 2.2204460492503131e-16
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
#define FLT_EVAL_METHOD 2 #define FLT_EVAL_METHOD 2
#endif #endif
#define LDBL_TRUE_MIN 3.6451995318824746025e-4951L
#define LDBL_MIN 3.3621031431120935063e-4932L #define LDBL_MIN 3.3621031431120935063e-4932L
#define LDBL_MAX 1.1897314953572317650e+4932L #define LDBL_MAX 1.1897314953572317650e+4932L
#define LDBL_EPSILON 1.0842021724855044340e-19L #define LDBL_EPSILON 1.0842021724855044340e-19L
......
#define FLT_ROUNDS 1 #define FLT_ROUNDS 1
#define FLT_EVAL_METHOD 0 #define FLT_EVAL_METHOD 0
#define LDBL_TRUE_MIN 4.9406564584124654e-324
#define LDBL_MIN 2.2250738585072014e-308 #define LDBL_MIN 2.2250738585072014e-308
#define LDBL_MAX 1.7976931348623157e+308 #define LDBL_MAX 1.7976931348623157e+308
#define LDBL_EPSILON 2.2204460492503131e-16 #define LDBL_EPSILON 2.2204460492503131e-16
......
#define FLT_ROUNDS 1 #define FLT_ROUNDS 1
#define FLT_EVAL_METHOD 0 #define FLT_EVAL_METHOD 0
#define LDBL_TRUE_MIN 4.9406564584124654e-324
#define LDBL_MIN 2.2250738585072014e-308 #define LDBL_MIN 2.2250738585072014e-308
#define LDBL_MAX 1.7976931348623157e+308 #define LDBL_MAX 1.7976931348623157e+308
#define LDBL_EPSILON 2.2204460492503131e-16 #define LDBL_EPSILON 2.2204460492503131e-16
......
#define FLT_ROUNDS 1 #define FLT_ROUNDS 1
#define FLT_EVAL_METHOD 0 #define FLT_EVAL_METHOD 0
#define LDBL_TRUE_MIN 4.9406564584124654e-324
#define LDBL_MIN 2.2250738585072014e-308 #define LDBL_MIN 2.2250738585072014e-308
#define LDBL_MAX 1.7976931348623157e+308 #define LDBL_MAX 1.7976931348623157e+308
#define LDBL_EPSILON 2.2204460492503131e-16 #define LDBL_EPSILON 2.2204460492503131e-16
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
#define FLT_EVAL_METHOD 0 #define FLT_EVAL_METHOD 0
#endif #endif
#define LDBL_TRUE_MIN 3.6451995318824746025e-4951L
#define LDBL_MIN 3.3621031431120935063e-4932L #define LDBL_MIN 3.3621031431120935063e-4932L
#define LDBL_MAX 1.1897314953572317650e+4932L #define LDBL_MAX 1.1897314953572317650e+4932L
#define LDBL_EPSILON 1.0842021724855044340e-19L #define LDBL_EPSILON 1.0842021724855044340e-19L
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
#define FLT_RADIX 2 #define FLT_RADIX 2
#define FLT_TRUE_MIN 1.40129846e-45F
#define FLT_MIN 1.17549435e-38F #define FLT_MIN 1.17549435e-38F
#define FLT_MAX 3.40282347e+38F #define FLT_MAX 3.40282347e+38F
#define FLT_EPSILON 1.19209290e-07F #define FLT_EPSILON 1.19209290e-07F
...@@ -15,6 +16,7 @@ ...@@ -15,6 +16,7 @@
#define FLT_MIN_10_EXP (-37) #define FLT_MIN_10_EXP (-37)
#define FLT_MAX_10_EXP 38 #define FLT_MAX_10_EXP 38
#define DBL_TRUE_MIN 4.9406564584124654e-324
#define DBL_MIN 2.2250738585072014e-308 #define DBL_MIN 2.2250738585072014e-308
#define DBL_MAX 1.7976931348623157e+308 #define DBL_MAX 1.7976931348623157e+308
#define DBL_EPSILON 2.2204460492503131e-16 #define DBL_EPSILON 2.2204460492503131e-16
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册