1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
|
/* : : generated by proto : : */
/* : : generated from contrib/ast/src/lib/libast/features/float by iffe version 2012-07-17 : : */
#ifndef _def_float_ast
#if !defined(__PROTO__)
# if defined(__STDC__) || defined(__cplusplus) || defined(_proto) || defined(c_plusplus)
# if defined(__cplusplus)
# define __LINKAGE__ "C"
# else
# define __LINKAGE__
# endif
# define __STDARG__
# define __PROTO__(x) x
# define __OTORP__(x)
# define __PARAM__(n,o) n
# if !defined(__STDC__) && !defined(__cplusplus)
# if !defined(c_plusplus)
# define const
# endif
# define signed
# define void int
# define volatile
# define __V_ char
# else
# define __V_ void
# endif
# else
# define __PROTO__(x) ()
# define __OTORP__(x) x
# define __PARAM__(n,o) o
# define __LINKAGE__
# define __V_ char
# define const
# define signed
# define void int
# define volatile
# endif
# define __MANGLE__ __LINKAGE__
# if defined(__cplusplus) || defined(c_plusplus)
# define __VARARG__ ...
# else
# define __VARARG__
# endif
# if defined(__STDARG__)
# define __VA_START__(p,a) va_start(p,a)
# else
# define __VA_START__(p,a) va_start(p)
# endif
# if !defined(__INLINE__)
# if defined(__cplusplus)
# define __INLINE__ extern __MANGLE__ inline
# else
# if defined(_WIN32) && !defined(__GNUC__)
# define __INLINE__ __inline
# endif
# endif
# endif
#endif
#if !defined(__LINKAGE__)
#define __LINKAGE__ /* 2004-08-11 transition */
#endif
#define _def_float_ast 1
#define _sys_types 1 /* #include <sys/types.h> ok */
#define _hdr_float 1 /* #include <float.h> ok */
#define _hdr_limits 1 /* #include <limits.h> ok */
#define _hdr_math 1 /* #include <math.h> ok */
#define _hdr_values 1 /* #include <values.h> ok */
#define _LIB_m 1 /* -lm is a library */
#define _lib_frexp 1 /* frexp() in default lib(s) */
#define _lib_frexpl 1 /* frexpl() in default lib(s) */
#define _lib_ldexp 1 /* ldexp() in default lib(s) */
#define _lib_ldexpl 1 /* ldexpl() in default lib(s) */
#define _lib_finite 1 /* finite() in default lib(s) */
#define _lib_isnanl 1 /* isnanl() in default lib(s) */
#define _lib_copysign 1 /* copysign() in default lib(s) */
#define _lib_copysignl 1 /* copysignl() in default lib(s) */
#define _npt_finite 1 /* finite() needs a prototype */
#define _npt_finitel 1 /* finitel() needs a prototype */
#define _npt_isinfl 1 /* isinfl() needs a prototype */
#define _lib_fpclassify 1 /* fpclassify present and works */
#define _lib_isinf 1 /* isinf present and works */
#define _lib_isnan 1 /* isnan present and works */
#define _lib_signbit 1 /* signbit present and works */
#include <ast_common.h>
#include <float.h>
#include <math.h>
#ifndef FLT_DIG
#define FLT_DIG 6
#endif
#ifndef FLT_MAX
#define FLT_MAX 3.4028234663852885981170E+38F
#endif
#ifndef FLT_MAX_10_EXP
#define FLT_MAX_10_EXP (+38)
#endif
#ifndef FLT_MAX_EXP
#define FLT_MAX_EXP (+128)
#endif
#ifndef FLT_MIN
#define FLT_MIN 1.1754943508222875079688E-38F
#endif
#ifndef FLT_MIN_10_EXP
#define FLT_MIN_10_EXP (-37)
#endif
#ifndef FLT_MIN_EXP
#define FLT_MIN_EXP (-125)
#endif
#ifndef DBL_DIG
#define DBL_DIG 15
#endif
#ifndef DBL_MAX
#define DBL_MAX 1.7976931348623157081452E+308
#endif
#ifndef DBL_MAX_10_EXP
#define DBL_MAX_10_EXP (+308)
#endif
#ifndef DBL_MAX_EXP
#define DBL_MAX_EXP (+1024)
#endif
#ifndef DBL_MIN
#define DBL_MIN 2.2250738585072013830903E-308
#endif
#ifndef DBL_MIN_10_EXP
#define DBL_MIN_10_EXP (-307)
#endif
#ifndef DBL_MIN_EXP
#define DBL_MIN_EXP (-1021)
#endif
#ifndef LDBL_DIG
#define LDBL_DIG 18
#endif
#ifndef LDBL_MAX
#define LDBL_MAX 1.1897314953572317650213E+4932L
#endif
#ifndef LDBL_MAX_10_EXP
#define LDBL_MAX_10_EXP (+4932)
#endif
#ifndef LDBL_MAX_EXP
#define LDBL_MAX_EXP (+16384)
#endif
#ifndef LDBL_MIN
#define LDBL_MIN 3.3621031431120935062627E-4932L
#endif
#ifndef LDBL_MIN_10_EXP
#define LDBL_MIN_10_EXP (-4931)
#endif
#ifndef LDBL_MIN_EXP
#define LDBL_MIN_EXP (-16381)
#endif
#define USHRT_DIG 4
#define UINT_DIG 9
#define ULONG_DIG 19
#define UINTMAX_DIG ULONG_DIG
#define FLT_ULONG_MAX 18446744073709551615.0F
#define FLT_ULLONG_MAX FLT_ULONG_MAX
#define FLT_UINTMAX_MAX FLT_ULONG_MAX
#define FLT_LONG_MAX 9223372036854775807.0F
#define FLT_LLONG_MAX FLT_LONG_MAX
#define FLT_INTMAX_MAX FLT_LONG_MAX
#define FLT_LONG_MIN (-9223372036854775808.0F)
#define FLT_LLONG_MIN FLT_LONG_MIN
#define FLT_INTMAX_MIN FLT_LONG_MIN
#define DBL_ULONG_MAX 18446744073709551615.0
#define DBL_ULLONG_MAX DBL_ULONG_MAX
#define DBL_UINTMAX_MAX DBL_ULONG_MAX
#define DBL_LONG_MAX 9223372036854775807.0
#define DBL_LLONG_MAX DBL_LONG_MAX
#define DBL_INTMAX_MAX DBL_LONG_MAX
#define DBL_LONG_MIN (-9223372036854775808.0)
#define DBL_LLONG_MIN DBL_LONG_MIN
#define DBL_INTMAX_MIN DBL_LONG_MIN
#define LDBL_ULONG_MAX 18446744073709551615.0L
#define LDBL_ULLONG_MAX LDBL_ULONG_MAX
#define LDBL_UINTMAX_MAX LDBL_ULONG_MAX
#define LDBL_LONG_MAX 9223372036854775807.0L
#define LDBL_LLONG_MAX LDBL_LONG_MAX
#define LDBL_INTMAX_MAX LDBL_LONG_MAX
#define LDBL_LONG_MIN (-9223372036854775808.0L)
#define LDBL_LLONG_MIN LDBL_LONG_MIN
#define LDBL_INTMAX_MIN LDBL_LONG_MIN
#define FLTMAX_UINTMAX_MAX LDBL_UINTMAX_MAX
#define FLTMAX_INTMAX_MAX LDBL_INTMAX_MAX
#define FLTMAX_INTMAX_MIN LDBL_INTMAX_MIN
typedef union _ast_dbl_exp_u
{
uint32_t e[sizeof(double)/4];
double f;
} _ast_dbl_exp_t;
#define _ast_dbl_exp_index 1
#define _ast_dbl_exp_shift 20
#define _ast_flt_unsigned_max_t unsigned long long
#define _ast_flt_nan_init 0xff,0xff,0xff,0x7f
#define _ast_flt_inf_init 0x00,0x00,0x80,0x7f
#define _ast_dbl_nan_init 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x7f
#define _ast_dbl_inf_init 0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x7f
#define _ast_ldbl_nan_init 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x7f,0x00,0x00,0x00,0x00,0x00,0x00
#define _ast_ldbl_inf_init 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xff,0x7f,0x00,0x00,0x00,0x00,0x00,0x00
#endif
|