]> pd.if.org Git - pdclib/blob - platform/example/includes/float.h
Removed the header include guard 'optimization'.
[pdclib] / platform / example / includes / float.h
1 /* $Id$ */
2
3 /* 7.7 Characteristics of floating types <float.h>
4
5    This file is part of the Public Domain C Library (PDCLib).
6    Permission is granted to use, modify, and / or redistribute at will.
7 */
8
9 #ifndef _PDCLIB_FLOAT_H
10 #define _PDCLIB_FLOAT_H _PDCLIB_FLOAT_H
11
12 #include <_PDCLIB_config.h>
13
14 #define FLT_ROUNDS      _PDCLIB_FLT_ROUNDS
15 #define FLT_EVAL_METHOD _PDCLIB_FLT_EVAL_METHOD
16 #define DECIMAL_DIG     _PDCLIB_DECIMAL_DIG
17
18    /* Radix of exponent representation */
19 #define FLT_RADIX      __FLT_RADIX__
20    /* Number of base-FLT_RADIX digits in the significand of a float */
21 #define FLT_MANT_DIG   __FLT_MANT_DIG__
22    /* Number of decimal digits of precision in a float */
23 #define FLT_DIG        __FLT_DIG__
24    /* Difference between 1.0 and the minimum float greater than 1.0 */
25 #define FLT_EPSILON    __FLT_EPSILON__
26    /* Minimum int x such that FLT_RADIX**(x-1) is a normalised float */
27 #define FLT_MIN_EXP    __FLT_MIN_EXP__
28    /* Minimum normalised float */
29 #define FLT_MIN        __FLT_MIN__
30    /* Minimum int x such that 10**x is a normalised float */
31 #define FLT_MIN_10_EXP __FLT_MIN_10_EXP__
32    /* Maximum int x such that FLT_RADIX**(x-1) is a representable float */
33 #define FLT_MAX_EXP    __FLT_MAX_EXP__
34    /* Maximum float */
35 #define FLT_MAX        __FLT_MAX__
36    /* Maximum int x such that 10**x is a representable float */
37 #define FLT_MAX_10_EXP __FLT_MAX_10_EXP__
38
39    /* Number of base-FLT_RADIX digits in the significand of a double */
40 #define DBL_MANT_DIG   __DBL_MANT_DIG__
41    /* Number of decimal digits of precision in a double */
42 #define DBL_DIG        __DBL_DIG__
43    /* Difference between 1.0 and the minimum double greater than 1.0 */
44 #define DBL_EPSILON    __DBL_EPSILON__
45    /* Minimum int x such that FLT_RADIX**(x-1) is a normalised double */
46 #define DBL_MIN_EXP    __DBL_MIN_EXP__
47    /* Minimum normalised double */
48 #define DBL_MIN        __DBL_MIN__
49    /* Minimum int x such that 10**x is a normalised double */
50 #define DBL_MIN_10_EXP __DBL_MIN_10_EXP__
51    /* Maximum int x such that FLT_RADIX**(x-1) is a representable double */
52 #define DBL_MAX_EXP    __DBL_MAX_EXP__
53    /* Maximum double */
54 #define DBL_MAX        __DBL_MAX__
55    /* Maximum int x such that 10**x is a representable double */
56 #define DBL_MAX_10_EXP __DBL_MAX_10_EXP__
57
58    /* Number of base-FLT_RADIX digits in the significand of a long double */
59 #define LDBL_MANT_DIG   __LDBL_MANT_DIG__
60    /* Number of decimal digits of precision in a long double */
61 #define LDBL_DIG        __LDBL_DIG__
62    /* Difference between 1.0 and the minimum long double greater than 1.0 */
63 #define LDBL_EPSILON    __LDBL_EPSILON__
64    /* Minimum int x such that FLT_RADIX**(x-1) is a normalised long double */
65 #define LDBL_MIN_EXP    __LDBL_MIN_EXP__
66    /* Minimum normalised long double */
67 #define LDBL_MIN        __LDBL_MIN__
68    /* Minimum int x such that 10**x is a normalised long double */
69 #define LDBL_MIN_10_EXP __LDBL_MIN_10_EXP__
70    /* Maximum int x such that FLT_RADIX**(x-1) is a representable long double */
71 #define LDBL_MAX_EXP    __LDBL_MAX_EXP__
72    /* Maximum long double */
73 #define LDBL_MAX        __LDBL_MAX__
74    /* Maximum int x such that 10**x is a representable long double */
75 #define LDBL_MAX_10_EXP __LDBL_MAX_10_EXP__
76
77 #endif