Warning: Attempt to read property "date" on null in /usr/local/www/websvn.planix.org/blame.php on line 247

Warning: Attempt to read property "msg" on null in /usr/local/www/websvn.planix.org/blame.php on line 247
WebSVN – tendra.SVN – Blame – /branches/tendra5/src/installers/680x0/common/szs_als.h – Rev 2

Subversion Repositories tendra.SVN

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 7u83 1
/*
2
    		 Crown Copyright (c) 1996
3
 
4
    This TenDRA(r) Computer Program is subject to Copyright
5
    owned by the United Kingdom Secretary of State for Defence
6
    acting through the Defence Evaluation and Research Agency
7
    (DERA).  It is made available to Recipients with a
8
    royalty-free licence for its use, reproduction, transfer
9
    to other parties and amendment for any purpose not excluding
10
    product development provided that any such use et cetera
11
    shall be deemed to be acceptance of the following conditions:-
12
 
13
        (1) Its Recipients shall ensure that this Notice is
14
        reproduced upon any copies or amended versions of it;
15
 
16
        (2) Any amended version of it shall be clearly marked to
17
        show both the nature of and the organisation responsible
18
        for the relevant amendment or amendments;
19
 
20
        (3) Its onward transfer from a recipient to another
21
        party shall be deemed to be that party's acceptance of
22
        these conditions;
23
 
24
        (4) DERA gives no warranty or assurance as to its
25
        quality or suitability for any purpose and DERA accepts
26
        no liability whatsoever in relation to any use to which
27
        it may be put.
28
*/
29
/*
30
	 		    VERSION INFORMATION
31
	 		    ===================
32
 
33
--------------------------------------------------------------------------
34
$Header: /u/g/release/CVSROOT/Source/src/installers/680x0/common/szs_als.h,v 1.1.1.1 1998/01/17 15:55:50 release Exp $
35
--------------------------------------------------------------------------
36
$Log: szs_als.h,v $
37
 * Revision 1.1.1.1  1998/01/17  15:55:50  release
38
 * First version to be checked into rolling release.
39
 *
40
Revision 1.2  1997/11/13 08:27:19  ma
41
All avs test passed (except add_to_ptr).
42
 
43
Revision 1.1.1.1  1997/10/13 12:42:59  ma
44
First version.
45
 
46
Revision 1.3  1997/10/13 08:50:09  ma
47
Made all pl_tests for general proc & exception handling pass.
48
 
49
Revision 1.2  1997/09/25 06:45:33  ma
50
All general_proc tests passed
51
 
52
Revision 1.1.1.1  1997/03/14 07:50:18  ma
53
Imported from DRA
54
 
55
 * Revision 1.1.1.1  1996/09/20  10:56:58  john
56
 *
57
 * Revision 1.1.1.1  1996/03/26  15:45:17  john
58
 *
59
 * Revision 1.2  93/04/19  13:37:07  13:37:07  ra (Robert Andrews)
60
 * Representation of alignments has changed.  New alignments required
61
 * by March93 spec.
62
 * 
63
 * Revision 1.1  93/02/22  17:16:41  17:16:41  ra (Robert Andrews)
64
 * Initial revision
65
 * 
66
--------------------------------------------------------------------------
67
*/
68
 
69
 
70
#ifndef SZS_ALS_INCLUDED
71
#define SZS_ALS_INCLUDED
72
 
73
/*
74
    SIZES AND ALIGNMENTS OF BASIC SHAPES
75
*/
76
 
77
#ifdef SUN
78
 
79
#define  TOP_SZ		 L0		/* size of void */
80
#define  TOP_ALIGN	 const_al1	/* alignment of void */
81
 
82
#define  SCHAR_SZ	 L8		/* size of signed char */
83
#define  SCHAR_ALIGN	 const_al8	/* alignment of signed char */
84
#define  UCHAR_SZ	 L8		/* size of unsigned char */
85
#define  UCHAR_ALIGN	 const_al8	/* alignment of unsigned char */
86
 
87
#define  SWORD_SZ	 L16		/* size of signed short */
88
#define  SWORD_ALIGN	 const_al16	/* alignment of signed short */
89
#define  UWORD_SZ	 L16		/* size of unsigned short */
90
#define  UWORD_ALIGN	 const_al16	/* alignment of unsigned short */
91
 
92
#define  SLONG_SZ	 L32		/* size of signed long */
93
#define  SLONG_ALIGN	 const_al16	/* alignment of signed long */
94
#define  ULONG_SZ	 L32		/* size of unsigned long */
95
#define  ULONG_ALIGN	 const_al16	/* alignment of unsigned long */
96
 
97
#define  SHREAL_SZ	 L32		/* size of float */
98
#define  SHREAL_ALIGN	 const_al16	/* alignment of float */
99
 
100
#define  REAL_SZ	 L64		/* size of double */
101
#define  REAL_ALIGN	 const_al16	/* alignment of double */
102
 
103
#define  DOUBLE_SZ	 L64		/* size of long double */
104
#define  DOUBLE_ALIGN	 const_al16	/* alignment of long double */
105
 
106
#define  STRUCT_ALIGN	 const_al16	/* alignment of struct */
107
 
108
#define  BF_ALIGN	 const_al1	/* alignment of bit */
109
#define  BF_STORE_UNIT	 L16		/* alignment of bitfield */
110
#define  MAX_BF_SIZE_CC	 const_al32	/* cc bitfield rule */
111
#define  MAX_BF_SIZE_GCC const_al64	 /* gcc bitfield rule */
112
extern alignment MAX_BF_SIZE ;	 	/* bitfield rule */
113
 
114
#define  PROC_SZ	 L32		/* size of ptr proc */
115
#define  PROC_ALIGN	 const_al16	/* alignment of ptr proc */
116
 
117
#define  PTR_SZ		 L32		/* size of pointer */
118
#define  PTRBIT_SZ	 L32		/* size of ptr bit */
119
#define  PTR_ALIGN	 const_al16	/* alignment of pointer */
120
 
121
#define  OFFSET_SZ	 L32		/* size of offset */
122
#define  OFFSET_ALIGN	 const_al16	/* alignment of offset */
123
 
124
#define  LLVALUE_SZ	 L32		/* size of label value */
125
#define  LLVALUE_ALIGN	 const_al16	/* alignment of label value */
126
 
127
#define  ALLOCA_ALIGN	 const_al32
128
#define  FRAME_ALIGN	 const_al32
129
#define  VAR_PARAM_ALIGN const_al32
130
#define  CODE_ALIGN	 const_al16
131
 
132
#define  PARAM_ALIGN	 L32		/* alignment of proc arguments */
133
#define  STACK_ALIGN	 L16		/* alignment of stack objects */
134
#define  DBL_ALIGN	 L16		/* alignment of doubles */
135
 
136
#define MIN_PAR_ALIGNMENT const_al32
137
 
138
#define U64_SZ ((long)64)
139
#define U64_ALIGN const_al16
140
 
141
#define S64_SZ ((long)64)
142
#define S64_ALIGN const_al16
143
 
144
 
145
#else
146
 
147
#define  TOP_SZ		 L0		/* size of void */
148
#define  TOP_ALIGN	 const_al1	/* alignment of void */
149
 
150
#define  SCHAR_SZ	 L8		/* size of signed char */
151
#define  SCHAR_ALIGN	 const_al8	/* alignment of signed char */
152
#define  UCHAR_SZ	 L8		/* size of unsigned char */
153
#define  UCHAR_ALIGN	 const_al8	/* alignment of unsigned char */
154
 
155
#define  SWORD_SZ	 L16		/* size of signed short */
156
#define  SWORD_ALIGN	 const_al16	/* alignment of signed short */
157
#define  UWORD_SZ	 L16		/* size of unsigned short */
158
#define  UWORD_ALIGN	 const_al16	/* alignment of unsigned short */
159
 
160
#define  SLONG_SZ	 L32		/* size of signed long */
161
#define  SLONG_ALIGN	 const_al16	/* alignment of signed long */
162
#define  ULONG_SZ	 L32		/* size of unsigned long */
163
#define  ULONG_ALIGN	 const_al16	/* alignment of unsigned long */
164
 
165
#define  SHREAL_SZ	 L32		/* size of float */
166
#define  SHREAL_ALIGN	 const_al16	/* alignment of float */
167
 
168
#define  REAL_SZ	 L64		/* size of double */
169
#define  REAL_ALIGN	 const_al16	/* alignment of double */
170
 
171
#define  DOUBLE_SZ	 L64		/* size of long double */
172
#define  DOUBLE_ALIGN	 const_al16	/* alignment of long double */
173
 
174
#define  STRUCT_ALIGN	 const_al16	/* alignment of struct */
175
 
176
#define  BF_ALIGN	 const_al1	/* alignment of bit */
177
#define  BF_STORE_UNIT	 L16		/* alignment of bitfield */
178
#define  MAX_BF_SIZE_CC	 const_al32	/* cc bitfield rule */
179
#define  MAX_BF_SIZE_GCC const_al64	 /* gcc bitfield rule */
180
extern alignment MAX_BF_SIZE ;	 	/* bitfield rule */
181
 
182
#define  PROC_SZ	 L32		/* size of ptr proc */
183
#define  PROC_ALIGN	 const_al16	/* alignment of ptr proc */
184
 
185
#define  PTR_SZ		 L32		/* size of pointer */
186
#define  PTRBIT_SZ	 L64		/* size of ptr bit */
187
#define  PTR_ALIGN	 const_al16	/* alignment of pointer */
188
 
189
#define  OFFSET_SZ	 L32		/* size of offset */
190
#define  OFFSET_ALIGN	 const_al16	/* alignment of offset */
191
 
192
#define  LLVALUE_SZ	 L32		/* size of label value */
193
#define  LLVALUE_ALIGN	 const_al16	/* alignment of label value */
194
 
195
#define  ALLOCA_ALIGN	 const_al16
196
#define  FRAME_ALIGN	 const_al16
197
#define  VAR_PARAM_ALIGN const_al16
198
#define  CODE_ALIGN	 const_al16
199
 
200
#define  PARAM_ALIGN	 L16		/* alignment of proc arguments */
201
#define  STACK_ALIGN	 L16		/* alignment of stack objects */
202
#define  DBL_ALIGN	 L16		/* alignment of doubles */
203
 
204
#define MIN_PAR_ALIGNMENT const_al16
205
 
206
#define U64_SZ ((long)64)
207
#define U64_ALIGN const_al16
208
 
209
#define S64_SZ ((long)64)
210
#define S64_ALIGN const_al16
211
 
212
#endif
213
 
214
/*
215
    SIZES OF MANTISSAS OF FLOATING POINT NUMBERS
216
*/
217
 
218
#define  FLOAT_BITS	 24		/* mantissa size for float */
219
#define  DOUBLE_BITS	 53		/* mantissa size for double */
220
#define  LDOUBLE_BITS	 53		/* mantissa size for long double */
221
 
222
 
223
/*
224
    MAXIMUM EXPONENT ALLOWED IN FLOATING-POINT CONSTANTS
225
*/
226
 
227
extern int target_dbl_maxexp ;
228
 
229
#endif