1 /* this file is #included into both C (.c and .hc) and Haskell files */
3 /* IEEE format floating-point */
4 #define IEEE_FLOATING_POINT 1
6 /* Radix of exponent representation */
11 /* Number of base-FLT_RADIX digits in the significand of a float */
13 # define FLT_MANT_DIG 24
15 /* Minimum int x such that FLT_RADIX**(x-1) is a normalised float */
17 # ifdef __GLASGOW_HASKELL__
18 # define FLT_MIN_EXP (negate 125)
20 # define FLT_MIN_EXP (-125)
23 /* Maximum int x such that FLT_RADIX**(x-1) is a representable float */
25 # define FLT_MAX_EXP 128
28 /* Number of base-FLT_RADIX digits in the significand of a double */
30 # define DBL_MANT_DIG 53
32 /* Minimum int x such that FLT_RADIX**(x-1) is a normalised double */
34 # ifdef __GLASGOW_HASKELL__
35 # define DBL_MIN_EXP (negate 1021)
37 # define DBL_MIN_EXP (-1021)
40 /* Maximum int x such that FLT_RADIX**(x-1) is a representable double */
42 # define DBL_MAX_EXP 1024