Source to include/float.h


0001  /* 
0002   * float.h
0003   */
0004  #ifndef _FLOAT_H___
0005  #define _FLOAT_H___
0006  /* Produced by enquire version 4.3, CWI, Amsterdam */
0007  
0008     /* Radix of exponent representation */
0009  #undef FLT_RADIX
0010  #define FLT_RADIX 2
0011     /* Number of base-FLT_RADIX digits in the significand of a float */
0012  #undef FLT_MANT_DIG
0013  #define FLT_MANT_DIG 24
0014     /* Number of decimal digits of precision in a float */
0015  #undef FLT_DIG
0016  #define FLT_DIG 6
0017     /* Addition rounds to 0: zero, 1: nearest, 2: +inf, 3: -inf, -1: unknown */
0018  #undef FLT_ROUNDS
0019  #define FLT_ROUNDS 1
0020     /* Difference between 1.0 and the minimum float greater than 1.0 */
0021  #undef FLT_EPSILON
0022  #define FLT_EPSILON 1.19209290e-07F
0023     /* Minimum int x such that FLT_RADIX**(x-1) is a normalised float */
0024  #undef FLT_MIN_EXP
0025  #define FLT_MIN_EXP (-125)
0026     /* Minimum normalised float */
0027  #undef FLT_MIN
0028  #define FLT_MIN 1.17549435e-38F
0029     /* Minimum int x such that 10**x is a normalised float */
0030  #undef FLT_MIN_10_EXP
0031  #define FLT_MIN_10_EXP (-37)
0032     /* Maximum int x such that FLT_RADIX**(x-1) is a representable float */
0033  #undef FLT_MAX_EXP
0034  #define FLT_MAX_EXP 128
0035     /* Maximum float */
0036  #undef FLT_MAX
0037  #define FLT_MAX 3.40282347e+38F
0038     /* Maximum int x such that 10**x is a representable float */
0039  #undef FLT_MAX_10_EXP
0040  #define FLT_MAX_10_EXP 38
0041  
0042     /* Number of base-FLT_RADIX digits in the significand of a double */
0043  #undef DBL_MANT_DIG
0044  #define DBL_MANT_DIG 53
0045     /* Number of decimal digits of precision in a double */
0046  #undef DBL_DIG
0047  #define DBL_DIG 15
0048     /* Difference between 1.0 and the minimum double greater than 1.0 */
0049  #undef DBL_EPSILON
0050  #define DBL_EPSILON 2.2204460492503131e-16
0051     /* Minimum int x such that FLT_RADIX**(x-1) is a normalised double */
0052  #undef DBL_MIN_EXP
0053  #define DBL_MIN_EXP (-1021)
0054     /* Minimum normalised double */
0055  #undef DBL_MIN
0056  #define DBL_MIN 2.2250738585072014e-308
0057     /* Minimum int x such that 10**x is a normalised double */
0058  #undef DBL_MIN_10_EXP
0059  #define DBL_MIN_10_EXP (-307)
0060     /* Maximum int x such that FLT_RADIX**(x-1) is a representable double */
0061  #undef DBL_MAX_EXP
0062  #define DBL_MAX_EXP 1024
0063     /* Maximum double */
0064  #undef DBL_MAX
0065  #define DBL_MAX 1.7976931348623157e+308
0066     /* Maximum int x such that 10**x is a representable double */
0067  #undef DBL_MAX_10_EXP
0068  #define DBL_MAX_10_EXP 308
0069  
0070     /* Number of base-FLT_RADIX digits in the significand of a long double */
0071  #undef LDBL_MANT_DIG
0072  #define LDBL_MANT_DIG 64
0073     /* Number of decimal digits of precision in a long double */
0074  #undef LDBL_DIG
0075  #define LDBL_DIG 18
0076     /* Difference between 1.0 and the minimum long double greater than 1.0 */
0077  #undef LDBL_EPSILON
0078  #ifndef __LDBL_UNION__
0079  #define __LDBL_UNION__
0080  union __convert_long_double {
0081    unsigned __convert_long_double_i[4];
0082    long double __convert_long_double_d;
0083  };
0084  #endif
0085  #define LDBL_EPSILON (__extension__ ((union __convert_long_double) {0x0, 0x80000000, 0x3fc0, 0x0}).__convert_long_double_d)
0086     /* Minimum int x such that FLT_RADIX**(x-1) is a normalised long double */
0087  #undef LDBL_MIN_EXP
0088  #define LDBL_MIN_EXP (-16381)
0089     /* Minimum normalised long double */
0090  #undef LDBL_MIN
0091  #define LDBL_MIN (__extension__ ((union __convert_long_double) {0x0, 0x80000000, 0x1, 0x0}).__convert_long_double_d)
0092     /* Minimum int x such that 10**x is a normalised long double */
0093  #undef LDBL_MIN_10_EXP
0094  #define LDBL_MIN_10_EXP (-4931)
0095     /* Maximum int x such that FLT_RADIX**(x-1) is a representable long double */
0096  #undef LDBL_MAX_EXP
0097  #define LDBL_MAX_EXP 16384
0098     /* Maximum long double */
0099  #undef LDBL_MAX
0100  #define LDBL_MAX (__extension__ ((union __convert_long_double) {0xffffffff, 0xffffffff, 0x7ffe, 0x0}).__convert_long_double_d)
0101     /* Maximum int x such that 10**x is a representable long double */
0102  #undef LDBL_MAX_10_EXP
0103  #define LDBL_MAX_10_EXP 4932
0104  
0105  #endif /*  _FLOAT_H___ */