1 /* 7.7 Characteristics of floating types <float.h>
\r
3 This file is part of the Public Domain C Library (PDCLib).
\r
4 Permission is granted to use, modify, and / or redistribute at will.
\r
7 #ifndef _PDCLIB_FLOAT_H
\r
8 #define _PDCLIB_FLOAT_H _PDCLIB_FLOAT_H
\r
9 #include <_PDCLIB_float.h>
\r
11 #define FLT_ROUNDS _PDCLIB_FLT_ROUNDS
\r
12 #define FLT_EVAL_METHOD _PDCLIB_FLT_EVAL_METHOD
\r
13 #define DECIMAL_DIG _PDCLIB_DECIMAL_DIG
\r
15 /* Radix of exponent representation */
\r
16 #define FLT_RADIX _PDCLIB_FLT_RADIX
\r
17 /* Number of base-FLT_RADIX digits in the significand of a float */
\r
18 #define FLT_MANT_DIG _PDCLIB_FLT_MANT_DIG
\r
19 /* Number of decimal digits of precision in a float */
\r
20 #define FLT_DIG _PDCLIB_FLT_DIG
\r
21 /* Difference between 1.0 and the minimum float greater than 1.0 */
\r
22 #define FLT_EPSILON _PDCLIB_FLT_EPSILON
\r
23 /* Minimum int x such that FLT_RADIX**(x-1) is a normalised float */
\r
24 #define FLT_MIN_EXP _PDCLIB_FLT_MIN_EXP
\r
25 /* Minimum normalised float */
\r
26 #define FLT_MIN _PDCLIB_FLT_MIN
\r
27 /* Minimum int x such that 10**x is a normalised float */
\r
28 #define FLT_MIN_10_EXP _PDCLIB_FLT_MIN_10_EXP
\r
29 /* Maximum int x such that FLT_RADIX**(x-1) is a representable float */
\r
30 #define FLT_MAX_EXP _PDCLIB_FLT_MAX_EXP
\r
32 #define FLT_MAX _PDCLIB_FLT_MAX
\r
33 /* Maximum int x such that 10**x is a representable float */
\r
34 #define FLT_MAX_10_EXP _PDCLIB_FLT_MAX_10_EXP
\r
36 /* Number of base-FLT_RADIX digits in the significand of a double */
\r
37 #define DBL_MANT_DIG _PDCLIB_DBL_MANT_DIG
\r
38 /* Number of decimal digits of precision in a double */
\r
39 #define DBL_DIG _PDCLIB_DBL_DIG
\r
40 /* Difference between 1.0 and the minimum double greater than 1.0 */
\r
41 #define DBL_EPSILON _PDCLIB_DBL_EPSILON
\r
42 /* Minimum int x such that FLT_RADIX**(x-1) is a normalised double */
\r
43 #define DBL_MIN_EXP _PDCLIB_DBL_MIN_EXP
\r
44 /* Minimum normalised double */
\r
45 #define DBL_MIN _PDCLIB_DBL_MIN
\r
46 /* Minimum int x such that 10**x is a normalised double */
\r
47 #define DBL_MIN_10_EXP _PDCLIB_DBL_MIN_10_EXP
\r
48 /* Maximum int x such that FLT_RADIX**(x-1) is a representable double */
\r
49 #define DBL_MAX_EXP _PDCLIB_DBL_MAX_EXP
\r
50 /* Maximum double */
\r
51 #define DBL_MAX _PDCLIB_DBL_MAX
\r
52 /* Maximum int x such that 10**x is a representable double */
\r
53 #define DBL_MAX_10_EXP _PDCLIB_DBL_MAX_10_EXP
\r
55 /* Number of base-FLT_RADIX digits in the significand of a long double */
\r
56 #define LDBL_MANT_DIG _PDCLIB_LDBL_MANT_DIG
\r
57 /* Number of decimal digits of precision in a long double */
\r
58 #define LDBL_DIG _PDCLIB_LDBL_DIG
\r
59 /* Difference between 1.0 and the minimum long double greater than 1.0 */
\r
60 #define LDBL_EPSILON _PDCLIB_LDBL_EPSILON
\r
61 /* Minimum int x such that FLT_RADIX**(x-1) is a normalised long double */
\r
62 #define LDBL_MIN_EXP _PDCLIB_LDBL_MIN_EXP
\r
63 /* Minimum normalised long double */
\r
64 #define LDBL_MIN _PDCLIB_LDBL_MIN
\r
65 /* Minimum int x such that 10**x is a normalised long double */
\r
66 #define LDBL_MIN_10_EXP _PDCLIB_LDBL_MIN_10_EXP
\r
67 /* Maximum int x such that FLT_RADIX**(x-1) is a representable long double */
\r
68 #define LDBL_MAX_EXP _PDCLIB_LDBL_MAX_EXP
\r
69 /* Maximum long double */
\r
70 #define LDBL_MAX _PDCLIB_LDBL_MAX
\r
71 /* Maximum int x such that 10**x is a representable long double */
\r
72 #define LDBL_MAX_10_EXP _PDCLIB_LDBL_MAX_10_EXP
\r