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