ack/lang/cem/libcc.ansi/headers/float.h

117 lines
2.9 KiB
C
Raw Normal View History

1989-05-16 13:13:53 +00:00
/*
* float.h - implementation limits
*/
/* $Header$ */
1989-09-29 15:46:33 +00:00
#if !defined(__FLOAT_HEADER__)
#define __FLOAT_HEADER__
1989-05-16 13:13:53 +00:00
1989-09-29 15:46:33 +00:00
#if defined(vax)
1989-05-16 13:13:53 +00:00
#define FLT_DIG 6
#define FLT_EPSILON 5.96046448e-08
#define FLT_MANT_DIG 8
1989-09-29 15:46:33 +00:00
#define FLT_MAX 1.70141173e+38F
1989-05-16 13:13:53 +00:00
#define FLT_MAX_10_EXP 38
#define FLT_MAX_EXP 127
1989-09-29 15:46:33 +00:00
#define FLT_MIN 2.93873588e-39F
#define FLT_MIN_10_EXP (-38)
#define FLT_MIN_EXP (-127)
1989-05-16 13:13:53 +00:00
#define DBL_DIG 16
#define DBL_EPSILON 1.38777878078144568e-17
#define DBL_MANT_DIG 8
#define DBL_MAX 1.70141183460469229e+38
#define DBL_MAX_10_EXP 38
#define DBL_MAX_EXP 127
#define DBL_MIN 2.93873587705571877e-39
1989-09-29 15:46:33 +00:00
#define DBL_MIN_10_EXP (-38)
#define DBL_MIN_EXP (-127)
1989-05-16 13:13:53 +00:00
#define LDBL_DIG 16
#define LDBL_EPSILON 1.38777878078144568e-17
#define LDBL_MANT_DIG 8
1989-09-29 15:46:33 +00:00
#define LDBL_MAX 1.70141183460469229e+38L
1989-05-16 13:13:53 +00:00
#define LDBL_MAX_10_EXP 38
#define LDBL_MAX_EXP 127
1989-09-29 15:46:33 +00:00
#define LDBL_MIN 2.93873587705571877e-39L
#define LDBL_MIN_10_EXP (-38)
#define LDBL_MIN_EXP (-127)
1989-05-16 13:13:53 +00:00
#define FLT_ROUNDS 1
#define FLT_RADIX 2
1989-09-29 15:46:33 +00:00
#elif defined(pdp)
1989-05-16 13:13:53 +00:00
/* The values are not certain, because there are no pdp's here anymore. The
* values given here are the same as for the vax.
*/
#define FLT_DIG 6
#define FLT_EPSILON 5.96046448e-08
#define FLT_MANT_DIG 8
1989-09-29 15:46:33 +00:00
#define FLT_MAX 1.70141173e+38F
1989-05-16 13:13:53 +00:00
#define FLT_MAX_10_EXP 38
#define FLT_MAX_EXP 127
1989-09-29 15:46:33 +00:00
#define FLT_MIN 2.93873588e-39F
#define FLT_MIN_10_EXP (-38)
#define FLT_MIN_EXP (-127)
1989-05-16 13:13:53 +00:00
#define DBL_DIG 16
#define DBL_EPSILON 1.38777878078144568e-17
#define DBL_MANT_DIG 8
#define DBL_MAX 1.70141183460469229e+38
#define DBL_MAX_10_EXP 38
#define DBL_MAX_EXP 127
#define DBL_MIN 2.93873587705571877e-39
1989-09-29 15:46:33 +00:00
#define DBL_MIN_10_EXP (-38)
#define DBL_MIN_EXP (-127)
1989-05-16 13:13:53 +00:00
#define LDBL_DIG 16
#define LDBL_EPSILON 1.38777878078144568e-17
#define LDBL_MANT_DIG 8
1989-09-29 15:46:33 +00:00
#define LDBL_MAX 1.70141183460469229e+38L
1989-05-16 13:13:53 +00:00
#define LDBL_MAX_10_EXP 38
#define LDBL_MAX_EXP 127
1989-09-29 15:46:33 +00:00
#define LDBL_MIN 2.93873587705571877e-39L
#define LDBL_MIN_10_EXP (-38)
#define LDBL_MIN_EXP (-127)
1989-05-16 13:13:53 +00:00
#define FLT_ROUNDS 1
#define FLT_RADIX 2
1989-09-29 15:46:33 +00:00
#else /* IEEE format */
1989-05-16 13:13:53 +00:00
#define FLT_DIG 6
1989-09-29 15:46:33 +00:00
#define FLT_EPSILON 1.19209290e-07
#define FLT_MANT_DIG 24
#define FLT_MAX 3.40282347e+38F
1989-05-16 13:13:53 +00:00
#define FLT_MAX_10_EXP 38
1989-09-29 15:46:33 +00:00
#define FLT_MAX_EXP 128
#define FLT_MIN 1.17549435e-38F
#define FLT_MIN_10_EXP (-37)
#define FLT_MIN_EXP (-125)
1989-05-16 13:13:53 +00:00
#define DBL_DIG 15
1989-09-29 15:46:33 +00:00
#define DBL_EPSILON 2.2204460492503131e-16
#define DBL_MANT_DIG 53
#define DBL_MAX 1.7976931348623157e+308
#define DBL_MAX_10_EXP 308
#define DBL_MAX_EXP 1024
#define DBL_MIN 2.2250738585072014e-308
#define DBL_MIN_10_EXP (-307)
#define DBL_MIN_EXP (-1021)
1989-05-16 13:13:53 +00:00
#define LDBL_DIG 15
1989-09-29 15:46:33 +00:00
#define LDBL_EPSILON 2.2204460492503131e-16
#define LDBL_MANT_DIG 53
#define LDBL_MAX 1.7976931348623157e+308L
#define LDBL_MAX_10_EXP 308
#define LDBL_MAX_EXP 1024
#define LDBL_MIN 2.2250738585072014e-308L
#define LDBL_MIN_10_EXP (-307)
#define LDBL_MIN_EXP (-1021)
1989-05-16 13:13:53 +00:00
#define FLT_ROUNDS 1
#define FLT_RADIX 2
1989-09-29 15:46:33 +00:00
#endif /* vax, pdp or ieee */
1989-05-16 13:13:53 +00:00
1989-09-29 15:46:33 +00:00
#endif /* __FLOAT_HEADER__ */