2017-10-21 23:40:19 +00:00
|
|
|
/****************************************************************
|
|
|
|
*
|
|
|
|
* float.h - limits on the size of real numbers
|
|
|
|
*
|
|
|
|
* October 1989
|
|
|
|
* Mike Westerfield
|
|
|
|
*
|
|
|
|
* Copyright 1989
|
|
|
|
* Byte Works, Inc.
|
|
|
|
*
|
|
|
|
****************************************************************/
|
|
|
|
|
|
|
|
#ifndef __float__
|
|
|
|
#define __float__
|
|
|
|
|
2021-03-06 22:40:35 +00:00
|
|
|
int __get_flt_rounds(void);
|
|
|
|
#define FLT_ROUNDS (__get_flt_rounds())
|
2017-10-21 23:40:19 +00:00
|
|
|
|
2021-03-09 01:16:28 +00:00
|
|
|
#define FLT_EVAL_METHOD 2
|
|
|
|
|
|
|
|
#define FLT_HAS_SUBNORM 1
|
|
|
|
#define DBL_HAS_SUBNORM 1
|
|
|
|
#define LDBL_HAS_SUBNORM 1
|
|
|
|
|
2017-10-21 23:40:19 +00:00
|
|
|
#define FLT_RADIX 2
|
|
|
|
|
|
|
|
#define FLT_MANT_DIG 24
|
|
|
|
#define DBL_MANT_DIG 53
|
2018-09-08 23:58:47 +00:00
|
|
|
#define LDBL_MANT_DIG 64
|
2017-10-21 23:40:19 +00:00
|
|
|
|
2021-03-09 01:16:28 +00:00
|
|
|
#define FLT_DECIMAL_DIG 9
|
|
|
|
#define DBL_DECIMAL_DIG 17
|
|
|
|
#define LDBL_DECIMAL_DIG 21
|
|
|
|
|
|
|
|
#define DECIMAL_DIG 21
|
|
|
|
|
2017-10-21 23:40:19 +00:00
|
|
|
#define FLT_DIG 6
|
|
|
|
#define DBL_DIG 15
|
2018-09-08 23:58:47 +00:00
|
|
|
#define LDBL_DIG 18
|
2017-10-21 23:40:19 +00:00
|
|
|
|
|
|
|
#define FLT_MIN_EXP -125
|
|
|
|
#define DBL_MIN_EXP -1021
|
2018-09-08 23:58:47 +00:00
|
|
|
#define LDBL_MIN_EXP -16382
|
2017-10-21 23:40:19 +00:00
|
|
|
|
|
|
|
#define FLT_MIN_10_EXP -37
|
|
|
|
#define DBL_MIN_10_EXP -307
|
2018-09-08 23:58:47 +00:00
|
|
|
#define LDBL_MIN_10_EXP -4931
|
2017-10-21 23:40:19 +00:00
|
|
|
|
|
|
|
#define FLT_MAX_EXP 128
|
|
|
|
#define DBL_MAX_EXP 1024
|
2018-09-08 23:58:47 +00:00
|
|
|
#define LDBL_MAX_EXP 16384
|
2017-10-21 23:40:19 +00:00
|
|
|
|
|
|
|
#define FLT_MAX_10_EXP 38
|
|
|
|
#define DBL_MAX_10_EXP 308
|
2018-09-08 23:58:47 +00:00
|
|
|
#define LDBL_MAX_10_EXP 4932
|
2017-10-21 23:40:19 +00:00
|
|
|
|
2021-03-09 00:32:33 +00:00
|
|
|
#define FLT_MAX 3.4028234663852885981E+38F
|
|
|
|
#define DBL_MAX 1.7976931348623157081E+308
|
|
|
|
#define LDBL_MAX 1.189731495357231765E+4932L
|
2017-10-21 23:40:19 +00:00
|
|
|
|
2021-03-09 00:32:33 +00:00
|
|
|
#define FLT_EPSILON 1.1920928955078125E-07F
|
|
|
|
#define DBL_EPSILON 2.2204460492503130808E-16
|
|
|
|
#define LDBL_EPSILON 1.084202172485504434007E-19L
|
2017-10-21 23:40:19 +00:00
|
|
|
|
2021-03-09 00:32:33 +00:00
|
|
|
#define FLT_MIN 1.175494350822287508E-38F
|
|
|
|
#define DBL_MIN 2.2250738585072013831E-308
|
|
|
|
#define LDBL_MIN 1.6810515715560467531E-4932L
|
2017-10-21 23:40:19 +00:00
|
|
|
|
2021-03-09 01:16:28 +00:00
|
|
|
#define FLT_TRUE_MIN 1.401298464324817070924E-45F
|
|
|
|
#define DBL_TRUE_MIN 4.940656458412465441766E-324
|
|
|
|
#define LDBL_TRUE_MIN 1.822599765941237E-4951L
|
|
|
|
|
2017-10-21 23:40:19 +00:00
|
|
|
#endif
|