xref: /illumos-gate/usr/src/cmd/ast/libast/amd64/FEATURE/float (revision 533affcbc7fc4d0c8132976ea454aaa715fe2307)
1
2/* : : generated by proto : : */
3/* : : generated from contrib/ast/src/lib/libast/features/float by iffe version 2012-07-17 : : */
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_frexp	1	/* frexp() in default lib(s) */
72#define _lib_frexpl	1	/* frexpl() in default lib(s) */
73#define _lib_ldexp	1	/* ldexp() in default lib(s) */
74#define _lib_ldexpl	1	/* ldexpl() in default lib(s) */
75#define _lib_finite	1	/* finite() in default lib(s) */
76#define _lib_isnanl	1	/* isnanl() in default lib(s) */
77#define _lib_copysign	1	/* copysign() in default lib(s) */
78#define _lib_copysignl	1	/* copysignl() in default lib(s) */
79#define _npt_finite	1	/* finite() needs a prototype */
80#define _npt_finitel	1	/* finitel() needs a prototype */
81#define _npt_isinfl	1	/* isinfl() needs a prototype */
82#define _lib_fpclassify	1	/* fpclassify present and works */
83#define _lib_isinf	1	/* isinf present and works */
84#define _lib_isnan	1	/* isnan present and works */
85#define _lib_signbit	1	/* signbit present and works */
86#include <ast_common.h>
87#include <float.h>
88#include <math.h>
89#ifndef FLT_DIG
90#define FLT_DIG 6
91#endif
92#ifndef FLT_MAX
93#define FLT_MAX 3.4028234663852885981170E+38F
94#endif
95#ifndef FLT_MAX_10_EXP
96#define FLT_MAX_10_EXP (+38)
97#endif
98#ifndef FLT_MAX_EXP
99#define FLT_MAX_EXP (+128)
100#endif
101#ifndef FLT_MIN
102#define FLT_MIN 1.1754943508222875079688E-38F
103#endif
104#ifndef FLT_MIN_10_EXP
105#define FLT_MIN_10_EXP (-37)
106#endif
107#ifndef FLT_MIN_EXP
108#define FLT_MIN_EXP (-125)
109#endif
110#ifndef DBL_DIG
111#define DBL_DIG 15
112#endif
113#ifndef DBL_MAX
114#define DBL_MAX 1.7976931348623157081452E+308
115#endif
116#ifndef DBL_MAX_10_EXP
117#define DBL_MAX_10_EXP (+308)
118#endif
119#ifndef DBL_MAX_EXP
120#define DBL_MAX_EXP (+1024)
121#endif
122#ifndef DBL_MIN
123#define DBL_MIN 2.2250738585072013830903E-308
124#endif
125#ifndef DBL_MIN_10_EXP
126#define DBL_MIN_10_EXP (-307)
127#endif
128#ifndef DBL_MIN_EXP
129#define DBL_MIN_EXP (-1021)
130#endif
131#ifndef LDBL_DIG
132#define LDBL_DIG 18
133#endif
134#ifndef LDBL_MAX
135#define LDBL_MAX 1.1897314953572317650213E+4932L
136#endif
137#ifndef LDBL_MAX_10_EXP
138#define LDBL_MAX_10_EXP (+4932)
139#endif
140#ifndef LDBL_MAX_EXP
141#define LDBL_MAX_EXP (+16384)
142#endif
143#ifndef LDBL_MIN
144#define LDBL_MIN 3.3621031431120935062627E-4932L
145#endif
146#ifndef LDBL_MIN_10_EXP
147#define LDBL_MIN_10_EXP (-4931)
148#endif
149#ifndef LDBL_MIN_EXP
150#define LDBL_MIN_EXP (-16381)
151#endif
152
153
154#define USHRT_DIG		4
155#define UINT_DIG		9
156#define ULONG_DIG		19
157#define UINTMAX_DIG		ULONG_DIG
158
159#define FLT_ULONG_MAX		18446744073709551615.0F
160#define FLT_ULLONG_MAX		FLT_ULONG_MAX
161#define FLT_UINTMAX_MAX		FLT_ULONG_MAX
162#define FLT_LONG_MAX		9223372036854775807.0F
163#define FLT_LLONG_MAX		FLT_LONG_MAX
164#define FLT_INTMAX_MAX		FLT_LONG_MAX
165#define FLT_LONG_MIN		(-9223372036854775808.0F)
166#define FLT_LLONG_MIN		FLT_LONG_MIN
167#define FLT_INTMAX_MIN		FLT_LONG_MIN
168
169#define DBL_ULONG_MAX		18446744073709551615.0
170#define DBL_ULLONG_MAX		DBL_ULONG_MAX
171#define DBL_UINTMAX_MAX		DBL_ULONG_MAX
172#define DBL_LONG_MAX		9223372036854775807.0
173#define DBL_LLONG_MAX		DBL_LONG_MAX
174#define DBL_INTMAX_MAX		DBL_LONG_MAX
175#define DBL_LONG_MIN		(-9223372036854775808.0)
176#define DBL_LLONG_MIN		DBL_LONG_MIN
177#define DBL_INTMAX_MIN		DBL_LONG_MIN
178
179#define LDBL_ULONG_MAX		18446744073709551615.0L
180#define LDBL_ULLONG_MAX		LDBL_ULONG_MAX
181#define LDBL_UINTMAX_MAX	LDBL_ULONG_MAX
182#define LDBL_LONG_MAX		9223372036854775807.0L
183#define LDBL_LLONG_MAX		LDBL_LONG_MAX
184#define LDBL_INTMAX_MAX		LDBL_LONG_MAX
185#define LDBL_LONG_MIN		(-9223372036854775808.0L)
186#define LDBL_LLONG_MIN		LDBL_LONG_MIN
187#define LDBL_INTMAX_MIN		LDBL_LONG_MIN
188
189#define FLTMAX_UINTMAX_MAX	LDBL_UINTMAX_MAX
190#define FLTMAX_INTMAX_MAX	LDBL_INTMAX_MAX
191#define FLTMAX_INTMAX_MIN	LDBL_INTMAX_MIN
192
193typedef union _ast_dbl_exp_u
194{
195	uint32_t		e[sizeof(double)/4];
196	double			f;
197} _ast_dbl_exp_t;
198
199#define _ast_dbl_exp_index	1
200#define _ast_dbl_exp_shift	20
201
202#define _ast_flt_unsigned_max_t	unsigned long long
203#define _ast_flt_nan_init	0xff,0xff,0xff,0x7f
204#define _ast_flt_inf_init	0x00,0x00,0x80,0x7f
205#define _ast_dbl_nan_init	0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x7f
206#define _ast_dbl_inf_init	0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x7f
207#define _ast_ldbl_nan_init	0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x7f,0x00,0x00,0x00,0x00,0x00,0x00
208#define _ast_ldbl_inf_init	0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xff,0x7f,0x00,0x00,0x00,0x00,0x00,0x00
209#endif
210