From 22730d65608db06500cc6e0be4aaec03238f996b Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Fri, 17 May 2013 18:38:42 -0400 Subject: 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. --- include/float.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/float.h') diff --git a/include/float.h b/include/float.h index ea25f270..c7b208af 100644 --- a/include/float.h +++ b/include/float.h @@ -3,6 +3,7 @@ #define FLT_RADIX 2 +#define FLT_TRUE_MIN 1.40129846e-45F #define FLT_MIN 1.17549435e-38F #define FLT_MAX 3.40282347e+38F #define FLT_EPSILON 1.19209290e-07F @@ -15,6 +16,7 @@ #define FLT_MIN_10_EXP (-37) #define FLT_MAX_10_EXP 38 +#define DBL_TRUE_MIN 4.9406564584124654e-324 #define DBL_MIN 2.2250738585072014e-308 #define DBL_MAX 1.7976931348623157e+308 #define DBL_EPSILON 2.2204460492503131e-16 -- cgit v1.2.1