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