Update the limit values in <float.h>.

The correct values for LDBL_MAX and LDBL_MIN can now be provided, because we support long double constants. The other values are also updated to have more precision, so that they evaluate to bit-correct values in the long double format.
This commit is contained in:
Stephen Heumann 2021-03-08 18:32:33 -06:00
parent 57d11a573d
commit 0ba8e4adb0
1 changed files with 9 additions and 9 deletions

View File

@ -42,16 +42,16 @@ int __get_flt_rounds(void);
#define DBL_MAX_10_EXP 308
#define LDBL_MAX_10_EXP 4932
#define FLT_MAX 3.40282347E+38F
#define DBL_MAX 1.7976931348623157E+308
#define LDBL_MAX 1.7976931348623157E+308 /* wrong; really ~1.19E+4932 */
#define FLT_MAX 3.4028234663852885981E+38F
#define DBL_MAX 1.7976931348623157081E+308
#define LDBL_MAX 1.189731495357231765E+4932L
#define FLT_EPSILON 1.19209290E-07F
#define DBL_EPSILON 2.2204460492503131E-16
#define LDBL_EPSILON 1.0842021724855044E-19
#define FLT_EPSILON 1.1920928955078125E-07F
#define DBL_EPSILON 2.2204460492503130808E-16
#define LDBL_EPSILON 1.084202172485504434007E-19L
#define FLT_MIN 1.17549435E-38F
#define DBL_MIN 2.2250738585072014E-308
#define LDBL_MIN 2.2250738585072014E-308 /* wrong; really ~1.68E-4932 */
#define FLT_MIN 1.175494350822287508E-38F
#define DBL_MIN 2.2250738585072013831E-308
#define LDBL_MIN 1.6810515715560467531E-4932L
#endif