Add C11 macros describing subnormal numbers to float.h.
Reviewed by: bde
This commit is contained in:
parent
c3c314f9f7
commit
2ee7b1d4ae
@ -55,6 +55,11 @@ __END_DECLS
|
||||
#define FLT_MAX_EXP 128 /* emax */
|
||||
#define FLT_MAX 3.40282347E+38F /* (1-b**(-p))*b**emax */
|
||||
#define FLT_MAX_10_EXP 38 /* floor(log10((1-b**(-p))*b**emax)) */
|
||||
#if __ISO_C_VISIBLE >= 2011
|
||||
#define FLT_TRUE_MIN 1.40129846E-45F /* b**(emin-p) */
|
||||
#define FLT_DECIMAL_DIG 9 /* ceil(1+p*log10(b)) */
|
||||
#define FLT_HAS_SUBNORM 1
|
||||
#endif /* __ISO_C_VISIBLE >= 2011 */
|
||||
|
||||
#define DBL_MANT_DIG 53
|
||||
#define DBL_EPSILON 2.2204460492503131E-16
|
||||
@ -65,6 +70,11 @@ __END_DECLS
|
||||
#define DBL_MAX_EXP 1024
|
||||
#define DBL_MAX 1.7976931348623157E+308
|
||||
#define DBL_MAX_10_EXP 308
|
||||
#if __ISO_C_VISIBLE >= 2011
|
||||
#define DBL_TRUE_MIN 4.9406564584124654E-324
|
||||
#define DBL_DECIMAL_DIG 17
|
||||
#define DBL_HAS_SUBNORM 1
|
||||
#endif /* __ISO_C_VISIBLE >= 2011 */
|
||||
|
||||
#define LDBL_MANT_DIG 64
|
||||
#define LDBL_EPSILON 1.0842021724855044340E-19L
|
||||
@ -75,4 +85,10 @@ __END_DECLS
|
||||
#define LDBL_MAX_EXP 16384
|
||||
#define LDBL_MAX 1.1897314953572317650E+4932L
|
||||
#define LDBL_MAX_10_EXP 4932
|
||||
#if __ISO_C_VISIBLE >= 2011
|
||||
#define LDBL_TRUE_MIN 3.6451995318824746025E-4951L
|
||||
#define LDBL_DECIMAL_DIG 21
|
||||
#define LDBL_HAS_SUBNORM 1
|
||||
#endif /* __ISO_C_VISIBLE >= 2011 */
|
||||
|
||||
#endif /* _MACHINE_FLOAT_H_ */
|
||||
|
@ -63,6 +63,11 @@ __END_DECLS
|
||||
#define FLT_MAX_EXP 128 /* emax */
|
||||
#define FLT_MAX 3.40282347E+38F /* (1-b**(-p))*b**emax */
|
||||
#define FLT_MAX_10_EXP 38 /* floor(log10((1-b**(-p))*b**emax)) */
|
||||
#if __ISO_C_VISIBLE >= 2011
|
||||
#define FLT_TRUE_MIN 1.40129846E-45F /* b**(emin-p) */
|
||||
#define FLT_DECIMAL_DIG 9 /* ceil(1+p*log10(b)) */
|
||||
#define FLT_HAS_SUBNORM 1
|
||||
#endif /* __ISO_C_VISIBLE >= 2011 */
|
||||
|
||||
#define DBL_MANT_DIG 53
|
||||
#define DBL_EPSILON 2.2204460492503131E-16
|
||||
@ -73,6 +78,11 @@ __END_DECLS
|
||||
#define DBL_MAX_EXP 1024
|
||||
#define DBL_MAX 1.7976931348623157E+308
|
||||
#define DBL_MAX_10_EXP 308
|
||||
#if __ISO_C_VISIBLE >= 2011
|
||||
#define DBL_TRUE_MIN 4.9406564584124654E-324
|
||||
#define DBL_DECIMAL_DIG 17
|
||||
#define DBL_HAS_SUBNORM 1
|
||||
#endif /* __ISO_C_VISIBLE >= 2011 */
|
||||
|
||||
#define LDBL_MANT_DIG DBL_MANT_DIG
|
||||
#define LDBL_EPSILON ((long double)DBL_EPSILON)
|
||||
@ -83,4 +93,10 @@ __END_DECLS
|
||||
#define LDBL_MAX_EXP DBL_MAX_EXP
|
||||
#define LDBL_MAX ((long double)DBL_MAX)
|
||||
#define LDBL_MAX_10_EXP DBL_MAX_10_EXP
|
||||
#if __ISO_C_VISIBLE >= 2011
|
||||
#define LDBL_TRUE_MIN ((long double)DBL_TRUE_MIN)
|
||||
#define LDBL_DECIMAL_DIG DBL_DECIMAL_DIG
|
||||
#define LDBL_HAS_SUBNORM DBL_HAS_SUBNORM
|
||||
#endif /* __ISO_C_VISIBLE >= 2011 */
|
||||
|
||||
#endif /* _MACHINE_FLOAT_H_ */
|
||||
|
@ -55,6 +55,11 @@ __END_DECLS
|
||||
#define FLT_MAX_EXP 128 /* emax */
|
||||
#define FLT_MAX 3.40282347E+38F /* (1-b**(-p))*b**emax */
|
||||
#define FLT_MAX_10_EXP 38 /* floor(log10((1-b**(-p))*b**emax)) */
|
||||
#if __ISO_C_VISIBLE >= 2011
|
||||
#define FLT_TRUE_MIN 1.40129846E-45F /* b**(emin-p) */
|
||||
#define FLT_DECIMAL_DIG 9 /* ceil(1+p*log10(b)) */
|
||||
#define FLT_HAS_SUBNORM 1
|
||||
#endif /* __ISO_C_VISIBLE >= 2011 */
|
||||
|
||||
#define DBL_MANT_DIG 53
|
||||
#define DBL_EPSILON 2.2204460492503131E-16
|
||||
@ -65,6 +70,11 @@ __END_DECLS
|
||||
#define DBL_MAX_EXP 1024
|
||||
#define DBL_MAX 1.7976931348623157E+308
|
||||
#define DBL_MAX_10_EXP 308
|
||||
#if __ISO_C_VISIBLE >= 2011
|
||||
#define DBL_TRUE_MIN 4.9406564584124654E-324
|
||||
#define DBL_DECIMAL_DIG 17
|
||||
#define DBL_HAS_SUBNORM 1
|
||||
#endif /* __ISO_C_VISIBLE >= 2011 */
|
||||
|
||||
#define LDBL_MANT_DIG 64
|
||||
#define LDBL_EPSILON 1.0842021724855044340E-19L
|
||||
@ -75,4 +85,10 @@ __END_DECLS
|
||||
#define LDBL_MAX_EXP 16384
|
||||
#define LDBL_MAX 1.1897314953572317650E+4932L
|
||||
#define LDBL_MAX_10_EXP 4932
|
||||
#if __ISO_C_VISIBLE >= 2011
|
||||
#define LDBL_TRUE_MIN 3.6451995318824746025E-4951L
|
||||
#define LDBL_DECIMAL_DIG 21
|
||||
#define LDBL_HAS_SUBNORM 1
|
||||
#endif /* __ISO_C_VISIBLE >= 2011 */
|
||||
|
||||
#endif /* _MACHINE_FLOAT_H_ */
|
||||
|
@ -55,6 +55,11 @@ __END_DECLS
|
||||
#define FLT_MAX_EXP 128 /* emax */
|
||||
#define FLT_MAX 3.40282347E+38F /* (1-b**(-p))*b**emax */
|
||||
#define FLT_MAX_10_EXP 38 /* floor(log10((1-b**(-p))*b**emax)) */
|
||||
#if __ISO_C_VISIBLE >= 2011
|
||||
#define FLT_TRUE_MIN 1.40129846E-45F /* b**(emin-p) */
|
||||
#define FLT_DECIMAL_DIG 9 /* ceil(1+p*log10(b)) */
|
||||
#define FLT_HAS_SUBNORM 1
|
||||
#endif /* __ISO_C_VISIBLE >= 2011 */
|
||||
|
||||
#define DBL_MANT_DIG 53
|
||||
#define DBL_EPSILON 2.2204460492503131E-16
|
||||
@ -65,6 +70,11 @@ __END_DECLS
|
||||
#define DBL_MAX_EXP 1024
|
||||
#define DBL_MAX 1.7976931348623157E+308
|
||||
#define DBL_MAX_10_EXP 308
|
||||
#if __ISO_C_VISIBLE >= 2011
|
||||
#define DBL_TRUE_MIN 4.9406564584124654E-324
|
||||
#define DBL_DECIMAL_DIG 17
|
||||
#define DBL_HAS_SUBNORM 1
|
||||
#endif /* __ISO_C_VISIBLE >= 2011 */
|
||||
|
||||
#define LDBL_MANT_DIG 64
|
||||
#define LDBL_EPSILON 1.0842021724855044340E-19L
|
||||
@ -75,5 +85,10 @@ __END_DECLS
|
||||
#define LDBL_MAX_EXP 16384
|
||||
#define LDBL_MAX 1.1897314953572317650E+4932L
|
||||
#define LDBL_MAX_10_EXP 4932
|
||||
#if __ISO_C_VISIBLE >= 2011
|
||||
#define LDBL_TRUE_MIN 3.6451995318824746025E-4951L
|
||||
#define LDBL_DECIMAL_DIG 21
|
||||
#define LDBL_HAS_SUBNORM 1
|
||||
#endif /* __ISO_C_VISIBLE >= 2011 */
|
||||
|
||||
#endif /* _MACHINE_FLOAT_H_ */
|
||||
|
@ -62,6 +62,11 @@ __END_DECLS
|
||||
#define FLT_MAX_EXP 128 /* emax */
|
||||
#define FLT_MAX 3.40282347E+38F /* (1-b**(-p))*b**emax */
|
||||
#define FLT_MAX_10_EXP 38 /* floor(log10((1-b**(-p))*b**emax)) */
|
||||
#if __ISO_C_VISIBLE >= 2011
|
||||
#define FLT_TRUE_MIN 1.40129846E-45F /* b**(emin-p) */
|
||||
#define FLT_DECIMAL_DIG 9 /* ceil(1+p*log10(b)) */
|
||||
#define FLT_HAS_SUBNORM 1
|
||||
#endif /* __ISO_C_VISIBLE >= 2011 */
|
||||
|
||||
#define DBL_MANT_DIG 53
|
||||
#define DBL_EPSILON 2.2204460492503131E-16
|
||||
@ -72,6 +77,11 @@ __END_DECLS
|
||||
#define DBL_MAX_EXP 1024
|
||||
#define DBL_MAX 1.7976931348623157E+308
|
||||
#define DBL_MAX_10_EXP 308
|
||||
#if __ISO_C_VISIBLE >= 2011
|
||||
#define DBL_TRUE_MIN 4.9406564584124654E-324
|
||||
#define DBL_DECIMAL_DIG 17
|
||||
#define DBL_HAS_SUBNORM 1
|
||||
#endif /* __ISO_C_VISIBLE >= 2011 */
|
||||
|
||||
#define LDBL_MANT_DIG DBL_MANT_DIG
|
||||
#define LDBL_EPSILON ((long double)DBL_EPSILON)
|
||||
@ -82,5 +92,10 @@ __END_DECLS
|
||||
#define LDBL_MAX_EXP DBL_MAX_EXP
|
||||
#define LDBL_MAX ((long double)DBL_MAX)
|
||||
#define LDBL_MAX_10_EXP DBL_MAX_10_EXP
|
||||
#if __ISO_C_VISIBLE >= 2011
|
||||
#define LDBL_TRUE_MIN ((long double)DBL_TRUE_MIN)
|
||||
#define LDBL_DECIMAL_DIG DBL_DECIMAL_DIG
|
||||
#define LDBL_HAS_SUBNORM DBL_HAS_SUBNORM
|
||||
#endif /* __ISO_C_VISIBLE >= 2011 */
|
||||
|
||||
#endif /* _MACHINE_FLOAT_H_ */
|
||||
|
@ -60,6 +60,11 @@ __END_DECLS
|
||||
#define FLT_MAX_EXP 128 /* emax */
|
||||
#define FLT_MAX 3.40282347E+38F /* (1-b**(-p))*b**emax */
|
||||
#define FLT_MAX_10_EXP 38 /* floor(log10((1-b**(-p))*b**emax)) */
|
||||
#if __ISO_C_VISIBLE >= 2011
|
||||
#define FLT_TRUE_MIN 1.40129846E-45F /* b**(emin-p) */
|
||||
#define FLT_DECIMAL_DIG 9 /* ceil(1+p*log10(b)) */
|
||||
#define FLT_HAS_SUBNORM 1
|
||||
#endif /* __ISO_C_VISIBLE >= 2011 */
|
||||
|
||||
#define DBL_MANT_DIG 53
|
||||
#define DBL_EPSILON 2.2204460492503131E-16
|
||||
@ -70,6 +75,11 @@ __END_DECLS
|
||||
#define DBL_MAX_EXP 1024
|
||||
#define DBL_MAX 1.7976931348623157E+308
|
||||
#define DBL_MAX_10_EXP 308
|
||||
#if __ISO_C_VISIBLE >= 2011
|
||||
#define DBL_TRUE_MIN 4.9406564584124654E-324
|
||||
#define DBL_DECIMAL_DIG 17
|
||||
#define DBL_HAS_SUBNORM 1
|
||||
#endif /* __ISO_C_VISIBLE >= 2011 */
|
||||
|
||||
#define LDBL_MANT_DIG DBL_MANT_DIG
|
||||
#define LDBL_EPSILON ((long double)DBL_EPSILON)
|
||||
@ -80,5 +90,10 @@ __END_DECLS
|
||||
#define LDBL_MAX_EXP DBL_MAX_EXP
|
||||
#define LDBL_MAX ((long double)DBL_MAX)
|
||||
#define LDBL_MAX_10_EXP DBL_MAX_10_EXP
|
||||
#if __ISO_C_VISIBLE >= 2011
|
||||
#define LDBL_TRUE_MIN ((long double)DBL_TRUE_MIN)
|
||||
#define LDBL_DECIMAL_DIG DBL_DECIMAL_DIG
|
||||
#define LDBL_HAS_SUBNORM DBL_HAS_SUBNORM
|
||||
#endif /* __ISO_C_VISIBLE >= 2011 */
|
||||
|
||||
#endif /* _MACHINE_FLOAT_H_ */
|
||||
|
@ -60,6 +60,11 @@ __END_DECLS
|
||||
#define FLT_MAX_EXP 128 /* emax */
|
||||
#define FLT_MAX 3.40282347E+38F /* (1-b**(-p))*b**emax */
|
||||
#define FLT_MAX_10_EXP 38 /* floor(log10((1-b**(-p))*b**emax)) */
|
||||
#if __ISO_C_VISIBLE >= 2011
|
||||
#define FLT_TRUE_MIN 1.40129846E-45F /* b**(emin-p) */
|
||||
#define FLT_DECIMAL_DIG 9 /* ceil(1+p*log10(b)) */
|
||||
#define FLT_HAS_SUBNORM 1
|
||||
#endif /* __ISO_C_VISIBLE >= 2011 */
|
||||
|
||||
#define DBL_MANT_DIG 53
|
||||
#define DBL_EPSILON 2.2204460492503131E-16
|
||||
@ -70,6 +75,11 @@ __END_DECLS
|
||||
#define DBL_MAX_EXP 1024
|
||||
#define DBL_MAX 1.7976931348623157E+308
|
||||
#define DBL_MAX_10_EXP 308
|
||||
#if __ISO_C_VISIBLE >= 2011
|
||||
#define DBL_TRUE_MIN 4.9406564584124654E-324
|
||||
#define DBL_DECIMAL_DIG 17
|
||||
#define DBL_HAS_SUBNORM 1
|
||||
#endif /* __ISO_C_VISIBLE >= 2011 */
|
||||
|
||||
#define LDBL_MANT_DIG 113
|
||||
#define LDBL_EPSILON 1.925929944387235853055977942584927319E-34L
|
||||
@ -80,5 +90,10 @@ __END_DECLS
|
||||
#define LDBL_MAX_EXP (+16384)
|
||||
#define LDBL_MAX 1.189731495357231765085759326628007016E+4932L
|
||||
#define LDBL_MAX_10_EXP (+4932)
|
||||
#if __ISO_C_VISIBLE >= 2011
|
||||
#define LDBL_TRUE_MIN 6.475175119438025110924438958227646552E-4966L
|
||||
#define LDBL_DECIMAL_DIG 36
|
||||
#define LDBL_HAS_SUBNORM 1
|
||||
#endif /* __ISO_C_VISIBLE >= 2011 */
|
||||
|
||||
#endif /* _MACHINE_FLOAT_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user