Debian Codegraph @

macros/macros.c

raw
1 /*
2 * Do not edit - this file auto-generated by macros.pl from:
3 * version.mac
4 * ./macros/altreg.mac
5 * ./macros/fp.mac
6 * ./macros/ifunc.mac
7 * ./macros/masm.mac
8 * ./macros/smartalign.mac
9 * ./macros/standard.mac
10 * ./macros/vtern.mac
11 * ./output/outaout.mac
12 * ./output/outas86.mac
13 * ./output/outbin.mac
14 * ./output/outcoff.mac
15 * ./output/outdbg.mac
16 * ./output/outelf.mac
17 * ./output/outmacho.mac
18 * ./output/outobj.mac
19 */
20
21 #include "macros.h"
22 #include "nasmlib.h"
23 #include "hashtbl.h"
24 #include "outform.h"
25
26
27 /* --- from version.mac --- */
28
29 /*
30 * %define __?NASM_MAJOR?__ 3
31 * %define __?NASM_MINOR?__ 1
32 * %define __?NASM_SUBMINOR?__ 0
33 * %define __?NASM_PATCHLEVEL?__ 0
34 * %define __?NASM_VERSION_ID?__ 003010000h
35 * %define __?NASM_VER?__ "3.01"
36 */
37
38 static const unsigned char nasm_stdmac_version_blob[101] = {
39 0x78,0xda,0x93,0x52,0x4d,0x49,0x4d,0xcb,
40 0xcc,0x4b,0x55,0x88,0x8f,0xb7,0xf7,0x73,
41 0x0c,0xf6,0x8d,0xf7,0x75,0xf4,0xf2,0x0f,
42 0xb2,0x8f,0x8f,0x57,0x30,0x96,0xc2,0x90,
43 0xf2,0xf4,0x83,0x48,0x19,0xca,0xa2,0x4b,
44 0x05,0x87,0x3a,0xc1,0x65,0x0d,0xe4,0xd1,
45 0x65,0x03,0x1c,0x43,0x9c,0x3d,0x7c,0x5c,
46 0xc3,0x5c,0x7d,0xc0,0xf2,0x1a,0xe8,0xf2,
47 0x61,0xae,0x41,0xc1,0x9e,0xfe,0x7e,0xf1,
48 0x9e,0x2e,0x60,0x79,0x03,0x63,0x03,0x43,
49 0x03,0x20,0xc8,0x90,0xc5,0xa2,0x10,0xa4,
50 0x42,0xc9,0x58,0xcf,0xc0,0x50,0x89,0x01,
51 0x00,0xe2,0x05,0x37,0x00,
52 };
53
54 macros_t nasm_stdmac_version = {
55 188, 101, nasm_stdmac_version_blob
56 };
57
58
59 /* --- from ./macros/altreg.mac --- */
60
61 /*
62 * %define __?USE_ALTREG?__
63 * %defalias __USE_ALTREG__ __?USEALTREG?__
64 * %idefine r0 rax
65 * %idefine r1 rcx
66 * %idefine r2 rdx
67 * %idefine r3 rbx
68 * %idefine r4 rsp
69 * %idefine r5 rbp
70 * %idefine r6 rsi
71 * %idefine r7 rdi
72 * %idefine r0d eax
73 * %idefine r1d ecx
74 * %idefine r2d edx
75 * %idefine r3d ebx
76 * %idefine r4d esp
77 * %idefine r5d ebp
78 * %idefine r6d esi
79 * %idefine r7d edi
80 * %idefine r0w ax
81 * %idefine r1w cx
82 * %idefine r2w dx
83 * %idefine r3w bx
84 * %idefine r4w sp
85 * %idefine r5w bp
86 * %idefine r6w si
87 * %idefine r7w di
88 * %idefine r0b al
89 * %idefine r1b cl
90 * %idefine r2b dl
91 * %idefine r3b bl
92 * %idefine r4b spl
93 * %idefine r5b bpl
94 * %idefine r6b sil
95 * %idefine r7b dil
96 * %idefine r0h ah
97 * %idefine r1h ch
98 * %idefine r2h dh
99 * %idefine r3h bh
100 * %idefine r0l al
101 * %idefine r1l cl
102 * %idefine r2l dl
103 * %idefine r3l bl
104 * %idefine r4l spl
105 * %idefine r5l bpl
106 * %idefine r6l sil
107 * %idefine r7l dil
108 * %idefine r8l r8b
109 * %idefine r9l r9b
110 * %idefine r10l r10b
111 * %idefine r11l r11b
112 * %idefine r12l r12b
113 * %idefine r13l r13b
114 * %idefine r14l r14b
115 * %idefine r15l r15b
116 * %idefine r16l r16b
117 * %idefine r17l r17b
118 * %idefine r18l r18b
119 * %idefine r19l r19b
120 * %idefine r20l r20b
121 * %idefine r21l r21b
122 * %idefine r22l r22b
123 * %idefine r23l r23b
124 * %idefine r24l r24b
125 * %idefine r25l r25b
126 * %idefine r26l r26b
127 * %idefine r27l r27b
128 * %idefine r28l r28b
129 * %idefine r29l r29b
130 * %idefine r30l r30b
131 * %idefine r31l r31b
132 */
133
134 static const unsigned char nasm_usemac_altreg_blob[358] = {
135 0x78,0xda,0x5d,0x90,0xbb,0x6a,0xc4,0x40,
136 0x0c,0x45,0xf3,0x07,0x09,0xa9,0x52,0xaa,
137 0x59,0x48,0x69,0x6b,0xfc,0xd8,0xad,0x96,
138 0x14,0x4b,0x9a,0x54,0x79,0xd4,0xc6,0x63,
139 0x3b,0x78,0x60,0x08,0x8b,0xb7,0xf0,0x7e,
140 0x7e,0x24,0x58,0x92,0x7b,0x5d,0xd8,0x70,
141 0x8f,0x84,0xe6,0x48,0x4f,0xbb,0x71,0xfa,
142 0x4e,0x3f,0x93,0x74,0xdd,0xf1,0xeb,0xe3,
143 0xd4,0xbd,0xbc,0x7d,0xbe,0x9f,0x5e,0x8f,
144 0x5d,0xf7,0xec,0x85,0x3e,0xa7,0xfe,0x62,
145 0xa5,0xff,0x4a,0xd7,0xdd,0x3a,0xff,0x1a,
146 0xef,0x77,0xe9,0x36,0x62,0x29,0x64,0xe9,
147 0xaf,0x90,0x4b,0x59,0x06,0xcc,0x2a,0xcb,
148 0x88,0x39,0xc8,0x12,0x31,0x57,0xb2,0x5c,
149 0xce,0x90,0x6b,0xab,0x63,0x6e,0xac,0x9e,
150 0x20,0xb7,0x36,0x2f,0x3d,0xc0,0xfb,0xa3,
151 0x4c,0xfd,0x15,0x40,0x69,0x60,0x40,0xa0,
152 0x06,0x46,0x04,0xc1,0x40,0x44,0x50,0x19,
153 0xb8,0x9c,0x01,0xd4,0xde,0x81,0xa0,0xf1,
154 0x0e,0x7c,0xb6,0xf5,0xa1,0xe8,0x55,0xac,
155 0xc2,0x77,0x58,0x85,0xef,0xb0,0x0a,0xdf,
156 0x61,0x15,0xbe,0xc3,0x2a,0x7c,0x07,0xab,
157 0xd3,0x1d,0xac,0x4e,0x77,0xb0,0x79,0xf4,
158 0x7e,0x94,0x3e,0xe3,0xfb,0x51,0x06,0xcc,
159 0x1a,0x65,0xc4,0x1c,0xa2,0xc4,0x8c,0x37,
160 0x88,0xf6,0x3e,0x82,0xda,0x1a,0x08,0x34,
161 0xd6,0x91,0x10,0xb4,0x36,0x32,0xe1,0xcc,
162 0x62,0x96,0x7e,0x46,0x87,0x59,0x06,0xcc,
163 0x3a,0xcb,0x88,0x39,0xcc,0x12,0x31,0x17,
164 0x79,0xb3,0x43,0xde,0xec,0x90,0x37,0x3b,
165 0xe4,0xcd,0x0e,0x79,0xbb,0x43,0xde,0xee,
166 0x90,0xb7,0x3b,0x64,0xdf,0x01,0xc0,0x3e,
167 0xdb,0x17,0x01,0x1c,0x0c,0x1c,0xe2,0x23,
168 0x58,0x99,0xa6,0xfd,0x08,0x95,0x8e,0x4a,
169 0x42,0xea,0x48,0x09,0x05,0x47,0x81,0x50,
170 0xe5,0xa8,0x22,0x54,0x3b,0xaa,0x09,0x35,
171 0x8e,0x1a,0x42,0xad,0xa3,0x96,0x90,0xab,
172 0x97,0x7b,0x42,0x2e,0x5f,0x92,0xbd,0xba,
173 0xbd,0x92,0xbd,0xba,0xbd,0x92,0xbd,0xba,
174 0xbd,0x92,0xbd,0xba,0xbd,0x92,0xbd,0xba,
175 0xbd,0x92,0xbd,0xba,0xbd,0x92,0xbd,0xba,
176 0xbd,0x92,0xbd,0xba,0xbd,0x92,0xbd,0xba,
177 0xbd,0x92,0xbd,0xba,0xbd,0x92,0x7d,0x70,
178 0xfb,0x40,0xf6,0xc1,0xed,0x43,0x19,0xef,
179 0x7e,0x01,0x5a,0x25,0x89,0x70,
180 };
181
182 static macros_t nasm_usemac_altreg = {
183 1239, 358, nasm_usemac_altreg_blob
184 };
185
186
187 /* --- from ./macros/fp.mac --- */
188
189 /*
190 * %define __?USE_FP?__
191 * %defalias __USE_FP__ __?USEFP?__
192 * %define Inf __?Infinity?__
193 * %define NaN __?QNaN?__
194 * %define QNaN __?QNaN?__
195 * %define SNaN __?SNaN?__
196 * %define float8(x) __?float8?__(x)
197 * %define float16(x) __?float16?__(x)
198 * %define bfloat16(x) __?bfloat16?__(x)
199 * %define float32(x) __?float32?__(x)
200 * %define float64(x) __?float64?__(x)
201 * %define float80m(x) __?float80m?__(x)
202 * %define float80e(x) __?float80e?__(x)
203 * %define float128l(x) __?float128l?__(x)
204 * %define float128h(x) __?float128h?__(x)
205 * %imacro bf16 1-*.nolist
206 * %rep %0
207 * dw __?bfloat16?__(%1)
208 * %rotate 1
209 * %endrep
210 * %endmacro
211 */
212
213 static const unsigned char nasm_usemac_fp_blob[232] = {
214 0x78,0xda,0x75,0x90,0x3d,0x0b,0xc2,0x30,
215 0x10,0x86,0xdd,0xc4,0xdd,0x0f,0x70,0x8a,
216 0x48,0xf0,0x03,0x94,0xa6,0x2d,0xc1,0xcd,
217 0x49,0xc1,0x45,0x94,0xe2,0x1c,0xa2,0x4d,
218 0x31,0xd0,0xa6,0x52,0x03,0xea,0xbf,0xf7,
219 0x62,0x0c,0x34,0x45,0xa7,0xe3,0x9e,0xf7,
220 0xc9,0xe5,0x92,0x2e,0x4e,0x45,0x26,0x95,
221 0x40,0x8c,0xad,0x4f,0xc9,0x86,0x6d,0x0f,
222 0x6b,0xc6,0x90,0x81,0x3c,0x97,0xfc,0x0e,
223 0xd8,0x52,0x80,0xd6,0xf8,0x08,0x43,0x77,
224 0x6a,0xa7,0x32,0xc3,0xa1,0x48,0x25,0xf5,
225 0x0b,0xa2,0xbe,0x8b,0xf6,0x7c,0x6f,0xa2,
226 0x23,0x54,0xc0,0x03,0x87,0x8f,0x7f,0x78,
227 0xf2,0xe5,0x89,0xe5,0x23,0xc7,0xb3,0xbc,
228 0xe4,0x7a,0x35,0x7d,0xce,0x4c,0x68,0x1b,
229 0x88,0xa1,0x1f,0x7b,0x06,0xa1,0x75,0x85,
230 0x50,0xeb,0x60,0xe7,0x9c,0x7d,0xe9,0xec,
231 0x59,0xfe,0xa4,0x28,0xac,0x4f,0x8a,0xc2,
232 0x5f,0x0e,0x8d,0xeb,0x0e,0x8d,0x1b,0xb7,
233 0xd9,0x35,0x83,0xc2,0xdb,0x3a,0x28,0x7e,
234 0x5b,0xc2,0xb7,0x84,0xb5,0x26,0xfe,0xeb,
235 0xc2,0x55,0xee,0xbd,0x0f,0xfa,0x3f,0xde,
236 0xb5,0xe1,0x5d,0xad,0x37,0xc0,0xb2,0xe0,
237 0x97,0xaa,0x84,0x9f,0x20,0x14,0x91,0xc5,
238 0x7c,0xa9,0xca,0x5c,0xde,0x75,0x1b,0x57,
239 0xe2,0x86,0x70,0xd0,0x4b,0x1f,0xcd,0x8f,
240 0xc1,0x64,0xd6,0xc1,0x55,0xa9,0xb9,0x16,
241 0x88,0xb4,0xb1,0x50,0x29,0xa8,0x1d,0x53,
242 0x3f,0x93,0x5a,0x6f,0x86,0x3c,0xb5,0x9f,
243 };
244
245 static macros_t nasm_usemac_fp = {
246 571, 232, nasm_usemac_fp_blob
247 };
248
249
250 /* --- from ./macros/ifunc.mac --- */
251
252 /*
253 * %define __?USE_IFUNC?__
254 * %defalias __USE_IFUNC__ __?USEIFUNC?__
255 * %idefine ilog2(x) (__?ilog2e?__(x))
256 * %idefine ilog2e(x) (__?ilog2e?__(x))
257 * %idefine ilog2w(x) (__?ilog2w?__(x))
258 * %idefine ilog2fw(x) (__?ilog2w?__(x))
259 * %idefine ilog2f(x) (__?ilog2f?__(x))
260 * %idefine ilog2cw(x) (__?ilog2w?__(x) * 0 + __?ilog2c?__(x))
261 * %idefine ilog2c(x) (__?ilog2c?__(x))
262 */
263
264 static const unsigned char nasm_usemac_ifunc_blob[126] = {
265 0x78,0xda,0x13,0x57,0x4d,0x49,0x4d,0xcb,
266 0xcc,0x4b,0x55,0x88,0x8f,0xb7,0x0f,0x0d,
267 0x76,0x8d,0xf7,0x74,0x0b,0xf5,0x73,0xb6,
268 0x8f,0x8f,0x57,0x03,0x89,0x27,0xe6,0x64,
269 0x26,0x16,0x03,0x65,0xe0,0x12,0xf1,0xf1,
270 0x50,0x75,0x30,0x65,0xca,0xaa,0x99,0x50,
271 0xfd,0x99,0x39,0xf9,0xe9,0x46,0x1a,0x15,
272 0x9a,0x0a,0x1a,0x40,0x15,0x60,0x4e,0x2a,
273 0x50,0x1e,0x28,0xa0,0xa9,0x82,0xaa,0x26,
274 0x95,0x18,0x45,0xe5,0x28,0x8a,0xca,0xa1,
275 0x8a,0x54,0x51,0x15,0xa5,0x61,0x57,0x85,
276 0x66,0x54,0x1a,0x8a,0xa2,0x34,0xa8,0x22,
277 0x6b,0x54,0x45,0xc9,0x58,0x8d,0x52,0xd0,
278 0x52,0x30,0x50,0xd0,0x56,0x80,0x89,0x26,
279 0x63,0xb7,0x20,0x19,0x45,0x2b,0x4c,0x11,
280 0x03,0x00,0x7a,0x1b,0x6c,0xff,
281 };
282
283 static macros_t nasm_usemac_ifunc = {
284 346, 126, nasm_usemac_ifunc_blob
285 };
286
287
288 /* --- from ./macros/masm.mac --- */
289
290 /*
291 * %define __?USE_MASM?__
292 * %defalias __USE_MASM__ __?USEMASM?__
293 * %unimacro segment 1+
294 * %imacro segment 0-1+.nolist
295 * %define __?SECT?__ [segment %00 %1]
296 * __?SECT?__
297 * %endmacro
298 * %imacro ends 0+.nolist
299 * %null ends %00
300 * %endmacro
301 * %imacro proc 0-*.nolist
302 * %rep %0
303 * %ifidni %1,far
304 * %idefine ret retf
305 * %else
306 * %idefine ret retn
307 * %endif
308 * %rotate 1
309 * %endrep
310 * %endmacro
311 * %imacro endp 0.nolist
312 * %null endp %00
313 * %undef ret
314 * %endmacro
315 * %ifndef st
316 * %idefine st(x) st %+ x
317 * %endif
318 * %idefine ptr __?masm_ptr?__
319 * %idefine flat __?masm_flat?__
320 * %idefine offset
321 * %imacro end 0+.nolist
322 * %endmacro
323 * %idefine tbyte tword
324 * default rel
325 */
326
327 static const unsigned char nasm_usemac_masm_blob[299] = {
328 0x78,0xda,0x65,0x52,0xd1,0x4a,0xc3,0x30,
329 0x14,0xf5,0x45,0xc7,0x2a,0x4c,0x84,0x59,
330 0x1f,0x86,0x10,0xd0,0x0b,0x6a,0x55,0xda,
331 0x2f,0x18,0x22,0x7b,0xdc,0x53,0xf5,0x49,
332 0x24,0xc4,0x35,0x91,0x40,0x9a,0x94,0x24,
333 0xc3,0xf9,0xf7,0xde,0xcc,0x36,0x29,0xee,
334 0xa1,0xa5,0x3d,0xe7,0xdc,0x73,0x4e,0x2e,
335 0xc9,0xa1,0xe1,0x42,0x6a,0x4e,0x28,0x5d,
336 0xbe,0xd5,0x2b,0xba,0x7e,0xae,0xd7,0x4b,
337 0x4a,0x6f,0x02,0xcc,0x94,0x64,0x0e,0x89,
338 0x01,0xa7,0xb4,0x57,0xf5,0xa2,0x39,0x6c,
339 0xb5,0x6c,0xd9,0xc6,0x1a,0xe2,0xf8,0x57,
340 0xcb,0xb5,0x27,0x55,0xb1,0x80,0x7f,0x50,
341 0xf9,0x58,0x15,0x4f,0xda,0x28,0xe9,0xfc,
342 0xf5,0x28,0xac,0x5e,0xbd,0xbc,0xa2,0x07,
343 0x79,0x1f,0x74,0x50,0x96,0x04,0xaa,0x8f,
344 0x2c,0x71,0x53,0xe0,0xba,0xd9,0x9b,0xe5,
345 0x83,0x29,0x02,0x8e,0x94,0x83,0xdf,0x0c,
346 0xf4,0x56,0xa9,0x3f,0x10,0xc7,0x93,0xfe,
347 0x72,0xd0,0x77,0xd6,0x6c,0xb0,0xc1,0x7d,
348 0x3f,0x30,0x01,0xcb,0x3b,0x94,0xce,0x40,
349 0x0a,0xd9,0x68,0x89,0x81,0x0f,0x82,0xd9,
350 0x73,0x90,0x7d,0x31,0xcb,0x7d,0x78,0xc4,
351 0x31,0x70,0xe5,0xf8,0x01,0xae,0x4f,0x42,
352 0x84,0x14,0x53,0xb0,0xc6,0x33,0xcf,0x49,
353 0x35,0x09,0x00,0x9a,0xa6,0xec,0x8b,0x51,
354 0xd7,0x8e,0x94,0x07,0x55,0x43,0x7e,0x99,
355 0xe1,0xea,0xd0,0x3a,0x78,0xa6,0xc9,0x0c,
356 0x5b,0xed,0x51,0xe7,0xf3,0x98,0xec,0xfc,
357 0xed,0xee,0x0e,0xdf,0x04,0x0a,0xb2,0xeb,
358 0xe3,0x17,0x91,0xed,0xbc,0x0d,0xcb,0x6c,
359 0x99,0x6b,0x29,0x7e,0xe3,0xd2,0xae,0x22,
360 0x27,0x14,0xf3,0x91,0x0c,0x3f,0xc8,0x9e,
361 0x45,0xd6,0x08,0xe1,0xb8,0x1f,0x97,0x4d,
362 0x7b,0x4d,0x95,0xe6,0x51,0xef,0x3f,0x7f,
363 0xf0,0xbc,0xfe,0xdb,0xd8,0xe6,0x34,0xdc,
364 0x8d,0xad,0x0a,0x1b,0x51,0x47,0xbf,0xa4,
365 0x2e,0xbd,0xd6,
366 };
367
368 static macros_t nasm_usemac_masm = {
369 577, 299, nasm_usemac_masm_blob
370 };
371
372
373 /* --- from ./macros/smartalign.mac --- */
374
375 /*
376 * %define __?USE_SMARTALIGN?__
377 * %defalias __USE_SMARTALIGN__ __?USESMARTALIGN?__
378 * %imacro alignmode 1-2.nolist
379 * %ifidni %1,nop
380 * %define __?ALIGN_JMP_THRESHOLD?__ 16
381 * %define __?ALIGN_16BIT_1B?__ 0x90
382 * %define __?ALIGN_16BIT_GROUP?__ 1
383 * %define __?ALIGN_32BIT_1B?__ 0x90
384 * %define __?ALIGN_32BIT_GROUP?__ 1
385 * %define __?ALIGN_64BIT_1B?__ 0x90
386 * %define __?ALIGN_64BIT_GROUP?__ 1
387 * %elifidni %1,generic
388 * %define __?ALIGN_JMP_THRESHOLD?__ 8
389 * %define __?ALIGN_16BIT_1B?__ 0x90
390 * %define __?ALIGN_16BIT_2B?__ 0x89,0xf6
391 * %define __?ALIGN_16BIT_3B?__ 0x8d,0x74,0x00
392 * %define __?ALIGN_16BIT_4B?__ 0x8d,0xb4,0x00,0x00
393 * %define __?ALIGN_16BIT_5B?__ 0x8d,0xb4,0x00,0x00,0x90
394 * %define __?ALIGN_16BIT_6B?__ 0x8d,0xb4,0x00,0x00,0x89,0xff
395 * %define __?ALIGN_16BIT_7B?__ 0x8d,0xb4,0x00,0x00,0x8d,0x7d,0x00
396 * %define __?ALIGN_16BIT_8B?__ 0x8d,0xb4,0x00,0x00,0x8d,0xbd,0x00,0x00
397 * %define __?ALIGN_16BIT_GROUP?__ 8
398 * %define __?ALIGN_32BIT_1B?__ 0x90
399 * %define __?ALIGN_32BIT_2B?__ 0x89,0xf6
400 * %define __?ALIGN_32BIT_3B?__ 0x8d,0x76,0x00
401 * %define __?ALIGN_32BIT_4B?__ 0x8d,0x74,0x26,0x00
402 * %define __?ALIGN_32BIT_5B?__ 0x90,0x8d,0x74,0x26,0x00
403 * %define __?ALIGN_32BIT_6B?__ 0x8d,0xb6,0x00,0x00,0x00,0x00
404 * %define __?ALIGN_32BIT_7B?__ 0x8d,0xb4,0x26,0x00,0x00,0x00,0x00
405 * %define __?ALIGN_32BIT_GROUP?__ 7
406 * %define __?ALIGN_64BIT_1B?__ 0x90
407 * %define __?ALIGN_64BIT_2B?__ 0x66,0x90
408 * %define __?ALIGN_64BIT_3B?__ 0x66,0x66,0x90
409 * %define __?ALIGN_64BIT_4B?__ 0x66,0x66,0x66,0x90
410 * %define __?ALIGN_64BIT_GROUP?__ 4
411 * %elifidni %1,k8
412 * %define __?ALIGN_JMP_THRESHOLD?__ 16
413 * %define __?ALIGN_16BIT_1B?__ 0x90
414 * %define __?ALIGN_16BIT_2B?__ 0x66,0x90
415 * %define __?ALIGN_16BIT_3B?__ 0x66,0x66,0x90
416 * %define __?ALIGN_16BIT_4B?__ 0x66,0x66,0x66,0x90
417 * %define __?ALIGN_16BIT_GROUP?__ 4
418 * %define __?ALIGN_32BIT_1B?__ 0x90
419 * %define __?ALIGN_32BIT_2B?__ 0x66,0x90
420 * %define __?ALIGN_32BIT_3B?__ 0x66,0x66,0x90
421 * %define __?ALIGN_32BIT_4B?__ 0x66,0x66,0x66,0x90
422 * %define __?ALIGN_32BIT_GROUP?__ 4
423 * %define __?ALIGN_64BIT_1B?__ 0x90
424 * %define __?ALIGN_64BIT_2B?__ 0x66,0x90
425 * %define __?ALIGN_64BIT_3B?__ 0x66,0x66,0x90
426 * %define __?ALIGN_64BIT_4B?__ 0x66,0x66,0x66,0x90
427 * %define __?ALIGN_64BIT_GROUP?__ 4
428 * %elifidni %1,k7
429 * %define __?ALIGN_JMP_THRESHOLD?__ 16
430 * %define __?ALIGN_16BIT_1B?__ 0x90
431 * %define __?ALIGN_16BIT_2B?__ 0x66,0x90
432 * %define __?ALIGN_16BIT_3B?__ 0x66,0x66,0x90
433 * %define __?ALIGN_16BIT_4B?__ 0x66,0x66,0x66,0x90
434 * %define __?ALIGN_64BIT_GROUP?__ 4
435 * %define __?ALIGN_32BIT_1B?__ 0x90
436 * %define __?ALIGN_32BIT_2B?__ 0x8b,0xc0
437 * %define __?ALIGN_32BIT_3B?__ 0x8d,0x04,0x20
438 * %define __?ALIGN_32BIT_4B?__ 0x8d,0x44,0x20,0x00
439 * %define __?ALIGN_32BIT_5B?__ 0x8d,0x44,0x20,0x00,0x90
440 * %define __?ALIGN_32BIT_6B?__ 0x8d,0x80,0x00,0x00,0x00,0x00
441 * %define __?ALIGN_32BIT_7B?__ 0x8d,0x04,0x05,0x00,0x00,0x00,0x00
442 * %define __?ALIGN_32BIT_GROUP?__ 7
443 * %define __?ALIGN_64BIT_1B?__ 0x90
444 * %define __?ALIGN_64BIT_2B?__ 0x66,0x90
445 * %define __?ALIGN_64BIT_3B?__ 0x66,0x66,0x90
446 * %define __?ALIGN_64BIT_4B?__ 0x66,0x66,0x66,0x90
447 * %define __?ALIGN_64BIT_GROUP?__ 4
448 * %elifidni %1,p6
449 * %define __?ALIGN_JMP_THRESHOLD?__ 16
450 * %define __?ALIGN_16BIT_1B?__ 0x90
451 * %define __?ALIGN_16BIT_2B?__ 0x66,0x90
452 * %define __?ALIGN_16BIT_3B?__ 0x0f,0x1f,0x00
453 * %define __?ALIGN_16BIT_4B?__ 0x0f,0x1f,0x40,0x00
454 * %define __?ALIGN_16BIT_GROUP?__ 4
455 * %define __?ALIGN_32BIT_1B?__ 0x90
456 * %define __?ALIGN_32BIT_2B?__ 0x66,0x90
457 * %define __?ALIGN_32BIT_3B?__ 0x0f,0x1f,0x00
458 * %define __?ALIGN_32BIT_4B?__ 0x0f,0x1f,0x40,0x00
459 * %define __?ALIGN_32BIT_5B?__ 0x0f,0x1f,0x44,0x00,0x00
460 * %define __?ALIGN_32BIT_6B?__ 0x66,0x0f,0x1f,0x44,0x00,0x00
461 * %define __?ALIGN_32BIT_7B?__ 0x0f,0x1f,0x80,0x00,0x00,0x00,0x00
462 * %define __?ALIGN_32BIT_8B?__ 0x0f,0x1f,0x84,0x00,0x00,0x00,0x00,0x00
463 * %define __?ALIGN_32BIT_GROUP?__ 8
464 * %define __?ALIGN_64BIT_1B?__ 0x90
465 * %define __?ALIGN_64BIT_2B?__ 0x66,0x90
466 * %define __?ALIGN_64BIT_3B?__ 0x0f,0x1f,0x00
467 * %define __?ALIGN_64BIT_4B?__ 0x0f,0x1f,0x40,0x00
468 * %define __?ALIGN_64BIT_5B?__ 0x0f,0x1f,0x44,0x00,0x00
469 * %define __?ALIGN_64BIT_6B?__ 0x66,0x0f,0x1f,0x44,0x00,0x00
470 * %define __?ALIGN_64BIT_7B?__ 0x0f,0x1f,0x80,0x00,0x00,0x00,0x00
471 * %define __?ALIGN_64BIT_8B?__ 0x0f,0x1f,0x84,0x00,0x00,0x00,0x00,0x00
472 * %define __?ALIGN_64BIT_GROUP?__ 8
473 * %else
474 * %error unknown alignment mode: %1
475 * %endif
476 * %ifnempty %2
477 * %ifidni %2,nojmp
478 * %xdefine __?ALIGN_JMP_THRESHOLD?__ -1
479 * %else
480 * %xdefine __?ALIGN_JMP_THRESHOLD?__ %2
481 * %endif
482 * %endif
483 * %xdefine __?ALIGNMODE?__ %1,__?ALIGN_JMP_THRESHOLD?__
484 * %endmacro
485 * %defalias __ALIGNMODE__ __?ALIGNMODE?__
486 * %unimacro align 1-2+.nolist
487 * %imacro align 1-2+.nolist
488 * sectalign %1
489 * %ifnempty %2
490 * times (((%1) - (($-$$) % (%1))) % (%1)) %2
491 * %elif __?PASS?__ == 0 || __?PASS?__ == 3
492 * times (((%1) - (($-$$) % (%1))) % (%1)) nop
493 * %else
494 * %push
495 * %assign %$pad (((%1) - (($-$$) % (%1))) % (%1))
496 * %if __?ALIGN_JMP_THRESHOLD?__ != -1 && %$pad > __?ALIGN_JMP_THRESHOLD?__
497 * jmp %$end
498 * times (((%1) - (($-$$) % (%1))) % (%1)) nop
499 * %else
500 * times (%$pad / __?ALIGN_%[__?BITS?__]BIT_GROUP?__) db __?ALIGN_%[__?BITS?__]BIT_%[__?ALIGN_%[__?BITS?__]BIT_GROUP?__]B?__
501 * %assign %$pad %$pad % __?ALIGN_%[__?BITS?__]BIT_GROUP?__
502 * %if %$pad > 0
503 * db __?ALIGN_%[__?BITS?__]BIT_%[%$pad]B?__
504 * %endif
505 * %endif
506 * %$end:
507 * %pop
508 * %endif
509 * %endmacro
510 * alignmode generic
511 */
512
513 static const unsigned char nasm_usemac_smartalign_blob[845] = {
514 0x78,0xda,0xed,0x58,0x5b,0x4f,0xdb,0x30,
515 0x18,0xdd,0xc3,0x40,0x42,0x62,0x37,0x69,
516 0x2f,0xd3,0x78,0x70,0xb5,0xba,0x6b,0xd7,
517 0x76,0x38,0x69,0x9a,0x86,0x4a,0xac,0x02,
518 0x15,0x01,0x13,0x0c,0x44,0xe1,0x69,0x42,
519 0x51,0xdb,0x24,0x2c,0x83,0x26,0x51,0x53,
520 0x34,0x90,0xf8,0xf1,0x73,0x6c,0xd3,0xc4,
521 0x4d,0x1d,0x87,0x8b,0xd0,0x84,0xf6,0x12,
522 0x82,0x7d,0xce,0x67,0x7f,0xb7,0xd3,0xd8,
523 0x2b,0xd0,0xb2,0x1d,0xd7,0xb3,0x81,0x69,
524 0x76,0x4e,0x7a,0x5b,0x66,0x6f,0x7f,0xe3,
525 0xe8,0x78,0x63,0x6f,0x77,0xfb,0x47,0xc7,
526 0x34,0x51,0x34,0xd9,0xbf,0x70,0xfb,0x21,
527 0x9e,0xe6,0x67,0x4d,0x93,0x31,0x38,0xc2,
528 0x0a,0x74,0x47,0xfd,0xe1,0xd8,0x07,0x98,
529 0x74,0xe6,0x8d,0x7c,0xcb,0x06,0x4a,0x5d,
530 0xfd,0xea,0xf9,0x17,0x6e,0x38,0x79,0x0d,
531 0x5d,0xc7,0xb5,0x3c,0x17,0x40,0xa5,0xe6,
532 0xf9,0x41,0x31,0xb1,0x32,0x35,0xf9,0x7d,
533 0xff,0xd0,0x3c,0xde,0x39,0xda,0xea,0xed,
534 0x1c,0xec,0x75,0xb1,0x35,0xa0,0xe8,0x85,
535 0x14,0x48,0xd1,0x37,0x77,0x8f,0x4d,0x65,
536 0x33,0x9a,0x47,0x57,0x6b,0x48,0x84,0xd8,
537 0x3e,0x3a,0x38,0x39,0x24,0x46,0xd2,0x88,
538 0x86,0x2a,0xb3,0x41,0x11,0x59,0x36,0x74,
539 0x4d,0x66,0x83,0x22,0x62,0x1b,0xef,0xa1,
540 0x7d,0x11,0x47,0xe0,0xcc,0xf6,0xec,0xb1,
541 0x3b,0xfc,0x24,0x8f,0x82,0x21,0x0f,0x42,
542 0x49,0x80,0x50,0x19,0xc2,0x58,0xab,0xa1,
543 0x2b,0x47,0xaf,0x0a,0x60,0x8d,0x5b,0x98,
544 0x85,0x61,0x2d,0x0d,0x3f,0x10,0x42,0x02,
545 0xac,0x96,0xc4,0x0e,0x28,0x96,0x3c,0x9a,
546 0x02,0x42,0x53,0x44,0xa8,0x45,0x3b,0x6f,
547 0x0b,0x58,0x7a,0x06,0x8b,0x7a,0xe3,0x74,
548 0x04,0xd4,0x56,0x16,0x95,0x78,0x68,0x91,
549 0x7f,0xbb,0x02,0xbe,0x21,0xe3,0x0f,0xac,
550 0x78,0x4c,0x5a,0x7e,0x86,0xbc,0xfc,0x4a,
551 0x02,0x84,0x34,0x7b,0x14,0xc6,0x67,0x4f,
552 0x17,0x64,0x8f,0x62,0xb5,0x54,0xa6,0x55,
553 0x5d,0x90,0x3d,0x4a,0x68,0x4e,0x77,0x59,
554 0x9b,0xc3,0x6a,0x0b,0x58,0x7c,0xf6,0x74,
555 0x2e,0x84,0xec,0xd1,0x11,0x50,0xd3,0xd9,
556 0x53,0xe7,0xf2,0xa5,0x3d,0xdb,0x92,0xf7,
557 0x6c,0x49,0x80,0xb8,0x0d,0xbc,0xae,0x93,
558 0x1a,0xad,0x0a,0x60,0x8d,0x24,0x8c,0x61,
559 0x91,0x00,0xab,0xa5,0xb0,0x8c,0x20,0xd5,
560 0x0d,0xed,0x0d,0xa7,0x1b,0xe7,0xc6,0x23,
561 0x09,0xa7,0x4c,0x33,0x84,0xce,0xf3,0x9a,
562 0x91,0xed,0x3c,0xaf,0x19,0x39,0x9c,0x9f,
563 0xe9,0x1e,0xed,0xe1,0xdd,0x23,0xf4,0x83,
564 0xef,0x9e,0x6c,0x3f,0xf8,0xee,0xc9,0xe1,
565 0xc7,0x4c,0x31,0x6a,0xcf,0xb4,0x18,0x5b,
566 0xcf,0xba,0x18,0x67,0x9d,0x7f,0x04,0x29,
567 0x1f,0xe0,0xa5,0x86,0x28,0x97,0x94,0x23,
568 0x22,0x7e,0xf9,0xa4,0x5c,0xa3,0xd8,0x5c,
569 0x52,0x9e,0x22,0x08,0x7e,0x88,0xe7,0x48,
570 0xb9,0x81,0xee,0x2d,0xe5,0xc4,0x1b,0xd4,
571 0xfc,0x2f,0xe5,0x71,0xf7,0x04,0xfa,0xbf,
572 0xd5,0x3d,0xc8,0xc1,0x30,0xc5,0xc9,0xf5,
573 0xf9,0x17,0x63,0xb5,0x9c,0x1f,0x42,0x4f,
574 0x27,0xe5,0xd9,0x7e,0xf0,0xdd,0x93,0xf2,
575 0x43,0xd6,0x3d,0x09,0x42,0xe2,0xd3,0x50,
576 0xd6,0x3d,0x64,0xe7,0xf3,0xa9,0xb2,0xee,
577 0x89,0x59,0xf3,0xbb,0xaf,0x2b,0xe0,0x1b,
578 0x69,0xbe,0x36,0x8f,0x9f,0xaf,0x05,0x8d,
579 0x27,0x6b,0xc1,0xec,0xec,0xf1,0x2d,0x98,
580 0x23,0x7b,0x94,0x70,0xd7,0xec,0x51,0xd6,
581 0xbd,0xb2,0x47,0xa9,0xf7,0xcf,0x1e,0xe5,
582 0x3f,0x30,0x7b,0x33,0xc2,0x63,0x2c,0x60,
583 0xe1,0x09,0xed,0x02,0xb4,0xc7,0x63,0x7f,
584 0x0c,0x2e,0xbd,0x73,0xcf,0xff,0xe3,0xb1,
585 0x53,0xba,0xed,0x4d,0x40,0x74,0x54,0x6f,
586 0x63,0x4d,0x5a,0x84,0xb6,0x67,0xb9,0xce,
587 0x32,0x3e,0xaa,0x7b,0xf6,0x28,0x98,0x5c,
588 0x03,0xa8,0xbe,0x9d,0x9e,0xdb,0x55,0x7c,
589 0x6e,0xff,0x3d,0x0a,0x20,0xbc,0x92,0xca,
590 0x56,0x5d,0xa1,0x4b,0xe6,0xc1,0x42,0x95,
591 0x2d,0xcb,0xfe,0x34,0x53,0x9c,0xfd,0x83,
592 0xee,0x16,0x41,0x2a,0x35,0xa1,0x99,0xa5,
593 0x88,0x4c,0x6e,0x1f,0x3e,0x27,0xaf,0x2d,
594 0xa6,0x7c,0x7a,0x63,0x91,0x34,0xf7,0x11,
595 0x5e,0x7a,0xc9,0xfb,0x8a,0xe8,0xae,0xa2,
596 0xca,0x2e,0x2b,0x3e,0x40,0xd1,0xcc,0x72,
597 0x68,0x0f,0x27,0x74,0x14,0x2a,0x5c,0xa0,
598 0xbe,0x4c,0xdc,0x91,0x1d,0x82,0x72,0xb9,
599 0x0c,0x95,0x0a,0xa8,0xe3,0x97,0x62,0xbd,
600 0x58,0xac,0x00,0x08,0xa2,0x81,0xca,0xf4,
601 0x05,0x43,0xcb,0xe4,0x87,0x20,0xda,0xd0,
602 0xe1,0x46,0xaf,0x17,0xb9,0xb6,0xbe,0x0e,
603 0x10,0xb8,0xb9,0x99,0x19,0x6a,0x54,0xf3,
604 0xda,0xc4,0x37,0x2a,0x34,0xe2,0x0b,0x30,
605 0xb8,0x0c,0x7f,0xad,0xc2,0x7e,0x18,0x92,
606 0x3d,0x16,0x83,0xbe,0x25,0xe7,0xef,0x40,
607 0xba,0x1d,0x41,0x8a,0x0a,0xeb,0x38,0xa3,
608 0xa0,0x54,0x62,0xe6,0xbe,0x89,0xa1,0x4b,
609 0xb8,0x40,0x30,0x0a,0xe7,0xe2,0xee,0x5b,
610 0xbf,0x66,0x0c,0xba,0xc8,0x6a,0xbc,0x08,
611 0xfc,0x89,0x5f,0x71,0x45,0x47,0x61,0x39,
612 0x4d,0x56,0x76,0x05,0x58,0x83,0x0c,0x18,
613 0x19,0x90,0x98,0x38,0x8d,0x3a,0xcd,0xe0,
614 0xc3,0xc5,0x9e,0x39,0x36,0xf0,0x2a,0x8a,
615 0xdb,0x6d,0x50,0x50,0x45,0xb2,0x1b,0x02,
616 0x24,0x0b,0xf2,0x15,0xbf,0x48,0x02,0xd6,
617 0x7e,0x09,0x03,0x3f,0x60,0x43,0x71,0x39,
618 0xbf,0x8b,0x2f,0xd3,0xd8,0xa5,0xd1,0x8b,
619 0xbf,0x1c,0x0a,0xa8,0xc5,
620 };
621
622 static macros_t nasm_usemac_smartalign = {
623 5046, 845, nasm_usemac_smartalign_blob
624 };
625
626
627 /* --- from ./macros/standard.mac --- */
628
629 /*
630 * %idefine IDEAL
631 * %idefine JUMPS
632 * %idefine P386
633 * %idefine P486
634 * %idefine P586
635 * %idefine END
636 */
637
638 static const unsigned char nasm_stdmac_tasm_blob[52] = {
639 0x78,0xda,0xe3,0x53,0xcd,0x4c,0x49,0x4d,
640 0xcb,0xcc,0x4b,0x55,0xf0,0x74,0x71,0x75,
641 0xf4,0xe1,0x83,0x73,0xbd,0x42,0x7d,0x03,
642 0x82,0x79,0xe1,0xdc,0x00,0x63,0x0b,0x33,
643 0x24,0x9e,0x09,0x0a,0xcf,0xd4,0xc2,0x8c,
644 0x07,0xce,0x73,0xf5,0x73,0x61,0x00,0x00,
645 0x66,0x2c,0x19,0x81,
646 };
647
648 macros_t nasm_stdmac_tasm = {
649 86, 52, nasm_stdmac_tasm_blob
650 };
651
652
653 /* --- from ./macros/standard.mac --- */
654
655 /*
656 * %define __?SECT?__
657 * %defalias __SECT__ __?SECT?__
658 * %imacro section 1+.nolist
659 * %define __?SECT?__ [section %1]
660 * __?SECT?__
661 * %endmacro
662 * %imacro segment 1+.nolist
663 * %define __?SECT?__ [segment %1]
664 * __?SECT?__
665 * %endmacro
666 * %define __?SECTALIGN_ALIGN_UPDATES_SECTION?__ 1
667 * %imacro sectalign 1+.nolist
668 * %ifidni %1,off
669 * %define __?SECTALIGN_ALIGN_UPDATES_SECTION?__ 0
670 * %elifidni %1,on
671 * %define __?SECTALIGN_ALIGN_UPDATES_SECTION?__ 1
672 * %else
673 * [sectalign %1]
674 * %endif
675 * %endmacro
676 * %defalias __SECTALIGN_ALIGN_UPDATES_SECTION__ __?SECTALIGN_ALIGN_UPDATES_SECTION?__
677 * %imacro absolute 1+.nolist
678 * %define __?SECT?__ [absolute %1]
679 * __?SECT?__
680 * %endmacro
681 * %imacro struc 1-2.nolist 0
682 * %push
683 * %define %$strucname %1
684 * [absolute %2]
685 * %$strucname:
686 * %endmacro
687 * %imacro endstruc 0.nolist
688 * %{$strucname}_size equ ($-%$strucname)
689 * %pop
690 * [warning push]
691 * [warning -other]
692 * __?SECT?__
693 * [warning pop]
694 * %endmacro
695 * %imacro istruc 1.nolist
696 * %push
697 * %define %$strucname %1
698 * %$strucstart:
699 * %endmacro
700 * %imacro at 1-2+.nolist
701 * %defstr %$member %1
702 * %substr %$member1 %$member 1
703 * %ifidn %$member1, '.'
704 * times (%$strucname%1-%$strucname)-($-%$strucstart) db 0
705 * %else
706 * times (%1-%$strucname)-($-%$strucstart) db 0
707 * %endif
708 * %2
709 * %endmacro
710 * %imacro iend 0.nolist
711 * times %{$strucname}_size-($-%$strucstart) db 0
712 * %pop
713 * %endmacro
714 * %imacro align 1-2+.nolist nop
715 * %if __?SECTALIGN_ALIGN_UPDATES_SECTION?__
716 * sectalign %1
717 * %endif
718 * times (((%1) - (($-$$) % (%1))) % (%1)) %2
719 * %endmacro
720 * %imacro alignb 1-2+.nolist
721 * %if __?SECTALIGN_ALIGN_UPDATES_SECTION?__
722 * sectalign %1
723 * %endif
724 * %ifempty %2
725 * [warning push]
726 * [warning -zeroing]
727 * resb (((%1) - (($-$$) % (%1))) % (%1))
728 * [warning pop]
729 * %else
730 * times (((%1) - (($-$$) % (%1))) % (%1)) %2
731 * %endif
732 * %endmacro
733 * %imacro bits 1+.nolist
734 * [bits %1]
735 * %endmacro
736 * %imacro use16 0.nolist
737 * [bits 16]
738 * %endmacro
739 * %imacro use32 0.nolist
740 * [bits 32]
741 * %endmacro
742 * %imacro use64 0.nolist
743 * [bits 64]
744 * %endmacro
745 * %imacro extern 1-*.nolist
746 * %rep %0
747 * [extern %1]
748 * %rotate 1
749 * %endrep
750 * %endmacro
751 * %imacro static 1-*.nolist
752 * %rep %0
753 * [static %1]
754 * %rotate 1
755 * %endrep
756 * %endmacro
757 * %imacro global 1-*.nolist
758 * %rep %0
759 * [global %1]
760 * %rotate 1
761 * %endrep
762 * %endmacro
763 * %imacro required 1-*.nolist
764 * %rep %0
765 * [required %1]
766 * %rotate 1
767 * %endrep
768 * %endmacro
769 * %imacro common 1-*.nolist
770 * %rep %0
771 * [common %1]
772 * %rotate 1
773 * %endrep
774 * %endmacro
775 * %imacro cpu 1+.nolist
776 * [cpu %1]
777 * %endmacro
778 * %define __?FLOAT_DAZ?__ nodaz
779 * %define __?FLOAT_ROUND?__ near
780 * %define __?FLOAT?__ __?FLOAT_DAZ?__,__?FLOAT_ROUND?__
781 * %defalias __FLOAT_DAZ__ __?FLOAT_DAZ?__
782 * %defalias __FLOAT_ROUND__ __?FLOAT_ROUND?__
783 * %defalias __FLOAT__ __?FLOAT?__
784 * %imacro float 1-*.nolist
785 * %rep %0
786 * [float %1]
787 * %ifidni %1,daz
788 * %define __?FLOAT_DAZ?__ daz
789 * %elifidni %1,nodaz
790 * %define __?FLOAT_DAZ?__ nodaz
791 * %elifidni %1,near
792 * %define __?FLOAT_ROUND?__ near
793 * %elifidni %1,up
794 * %define __?FLOAT_ROUND?__ up
795 * %elifidni %1,down
796 * %define __?FLOAT_ROUND?__ down
797 * %elifidni %1,zero
798 * %define __?FLOAT_ROUND?__ zero
799 * %elifidni %1,default
800 * %define __?FLOAT_DAZ?__ nodaz
801 * %define __?FLOAT_ROUND?__ near
802 * %endif
803 * %rotate 1
804 * %endrep
805 * %endmacro
806 * %imacro default 1+.nolist
807 * [default %1]
808 * %endmacro
809 * %imacro userel 0.nolist
810 * [default rel]
811 * %endmacro
812 * %imacro useabs 0.nolist
813 * [default abs]
814 * %endmacro
815 * %imacro usebnd 0.nolist
816 * [default bnd]
817 * %endmacro
818 * %imacro usenobnd 0.nolist
819 * [default nobnd]
820 * %endmacro
821 * %imacro incbin 1-2+.nolist 0
822 * %? %depend(%pathsearch(%1)),%2
823 * %endmacro
824 * %defalias __NASM_MAJOR__ __?NASM_MAJOR?__
825 * %defalias __NASM_MINOR__ __?NASM_MINOR?__
826 * %defalias __NASM_SUBMINOR__ __?NASM_SUBMINOR?__
827 * %defalias __NASM_PATCHLEVEL__ __?NASM_PATCHLEVEL?__
828 * %defalias __NASM_SNAPSHOT__ __?NASM_SNAPSHOT?__
829 * %defalias __NASM_VERSION_ID__ __?NASM_VERSION_ID?__
830 * %defalias __NASM_VER__ __?NASM_VER?__
831 * %defalias __OUTPUT_FORMAT__ __?OUTPUT_FORMAT?__
832 * %defalias __DEBUG_FORMAT__ __?DEBUG_FORMAT?__
833 * %defalias __DATE__ __?DATE?__
834 * %defalias __DATE_NUM__ __?DATE_NUM?__
835 * %defalias __TIME__ __?TIME?__
836 * %defalias __TIME_NUM__ __?TIME_NUM?__
837 * %defalias __UTC_DATE__ __?UTC_DATE?__
838 * %defalias __UTC_DATE_NUM__ __?UTC_DATE_NUM?__
839 * %defalias __UTC_TIME__ __?UTC_TIME?__
840 * %defalias __UTC_TIME_NUM__ __?UTC_TIME_NUM?__
841 * %defalias __POSIX_TIME__ __?POSIX_TIME?__
842 * %defalias __FILE__ __?FILE?__
843 * %defalias __LINE__ __?LINE?__
844 * %defalias __BITS__ __?BITS?__
845 * %defalias __PTR__ __?PTR?__
846 * %defalias __PASS__ __?PASS?__
847 * %idefine __?infinity?__ %?
848 * %idefine __?nan?__ %?
849 * %idefine __?qnan?__ %?
850 * %idefine __?snan?__ %?
851 * %idefine __?float8?__ %?
852 * %idefine __?float16?__ %?
853 * %idefine __?float32?__ %?
854 * %idefine __?float64?__ %?
855 * %idefine __?float80m?__ %?
856 * %idefine __?float80e?__ %?
857 * %idefine __?float128l?__ %?
858 * %idefine __?float128h?__ %?
859 * %idefine __?utf16?__ %?
860 * %idefine __?utf16le?__ %?
861 * %idefine __?utf16be?__ %?
862 * %idefine __?utf32?__ %?
863 * %idefine __?utf32le?__ %?
864 * %idefine __?utf32be?__ %?
865 * %idefine __?ilog2e?__ %?
866 * %idefine __?ilog2w?__ %?
867 * %idefine __?ilog2f?__ %?
868 * %idefine __?ilog2c?__ %?
869 * %idefalias __infinity__ __?infinity?__
870 * %idefalias __nan__ __?nan?__
871 * %idefalias __qnan__ __?qnan?__
872 * %idefalias __snan__ __?snan?__
873 * %idefalias __float8__ __?float8?__
874 * %idefalias __float16__ __?float16?__
875 * %idefalias __float32__ __?float32?__
876 * %idefalias __float64__ __?float64?__
877 * %idefalias __float80m__ __?float80m?__
878 * %idefalias __float80e__ __?float80e?__
879 * %idefalias __float128l__ __?float128l?__
880 * %idefalias __float128h__ __?float128h?__
881 * %idefalias __utf16__ __?utf16?__
882 * %idefalias __utf16le__ __?utf16le?__
883 * %idefalias __utf16be__ __?utf16be?__
884 * %idefalias __utf32__ __?utf32?__
885 * %idefalias __utf32le__ __?utf32le?__
886 * %idefalias __utf32be__ __?utf32be?__
887 * %idefalias __ilog2e__ __?ilog2e?__
888 * %idefalias __ilog2w__ __?ilog2w?__
889 * %idefalias __ilog2f__ __?ilog2f?__
890 * %idefalias __ilog2c__ __?ilog2c?__
891 * %define __?NASM_HAS_IFDIRECTIVE?__ 1
892 */
893
894 static const unsigned char nasm_stdmac_nasm_blob[1417] = {
895 0x78,0xda,0xa5,0x58,0xfd,0x4f,0xdb,0x46,
896 0x18,0x9e,0xa6,0x75,0x5d,0x3f,0xa0,0x1b,
897 0x5b,0xa1,0x2d,0x94,0x5a,0x53,0x0c,0xa4,
898 0x25,0x6d,0x3e,0x58,0x56,0xed,0x17,0x94,
899 0x92,0xd0,0x66,0x82,0x04,0x91,0x04,0x4d,
900 0x8b,0x90,0x65,0x27,0x17,0xb0,0xe4,0xd8,
901 0xc1,0x76,0xc4,0xca,0xb4,0xff,0x7d,0xf7,
902 0xe5,0xbb,0xf7,0xec,0x73,0xa0,0xea,0x2f,
903 0xe8,0xfc,0x3e,0xcf,0xfb,0xdc,0x7b,0xef,
904 0x3d,0xbe,0x73,0x58,0x31,0xc7,0x68,0xe2,
905 0xfa,0xc8,0xb0,0xac,0xfd,0x5e,0xeb,0xa0,
906 0xbf,0x6f,0x59,0x2f,0x49,0xc8,0xf6,0x5c,
907 0x3b,0xc2,0x41,0x12,0xb3,0x2c,0x80,0x3e,
908 0x37,0xdd,0xa9,0x3d,0x0a,0x03,0x23,0x42,
909 0xa3,0xd8,0x0d,0x7c,0xa3,0xf2,0xe6,0xad,
910 0x1f,0x78,0x6e,0x14,0xbf,0xca,0x4a,0x19,
911 0xc3,0x84,0x65,0x56,0xce,0x1f,0xca,0xf8,
912 0x03,0x13,0xf9,0x63,0x2a,0x03,0xe4,0x2e,
913 0xa6,0xc8,0x8f,0x6f,0x95,0x63,0xac,0x3c,
914 0xb9,0x77,0xa9,0xa4,0xc6,0x51,0xfb,0x63,
915 0xc7,0x62,0x7f,0x07,0x27,0xcd,0x46,0xbf,
916 0xd5,0xa3,0x4b,0x6a,0x77,0x3b,0x44,0xaf,
917 0xb2,0x0e,0x57,0x83,0xd7,0x7c,0x01,0xd6,
918 0xb3,0x6c,0xba,0x13,0x77,0xec,0xbb,0x78,
919 0xb2,0xdd,0x60,0x32,0xf9,0x42,0xe9,0xf2,
920 0x13,0x13,0x79,0x40,0xc0,0xff,0xd2,0xd2,
921 0xee,0xe1,0xfc,0x08,0x2d,0x0f,0x65,0x65,
922 0x78,0xd1,0xdf,0x93,0x95,0xba,0x13,0xb9,
923 0xe0,0x5e,0x7a,0xb3,0x16,0xc8,0xca,0x7d,
924 0x5c,0x3c,0xf7,0x8b,0xa4,0x29,0xb6,0x13,
925 0x05,0xde,0x3c,0x46,0xb2,0x27,0x86,0x6e,
926 0x53,0x04,0x2d,0x6f,0x57,0x84,0x60,0x14,
927 0x87,0xf3,0x91,0x51,0x29,0x55,0x13,0xb9,
928 0xf2,0x3d,0x73,0x36,0x8f,0x2e,0x57,0x13,
929 0x59,0xb3,0x40,0x29,0xbe,0x3d,0x25,0x6a,
930 0x4b,0x40,0xba,0x7a,0xfe,0x18,0x80,0x7f,
931 0x68,0x1c,0x84,0x03,0x4c,0xbf,0xcc,0xd5,
932 0xb7,0xcc,0x7f,0x65,0xc6,0x7f,0x56,0xe4,
933 0xde,0x20,0x03,0x5d,0xcd,0x8d,0x9d,0x42,
934 0x09,0x48,0x15,0xbf,0x33,0x67,0xc1,0x6c,
935 0x79,0x78,0x6d,0x87,0xbe,0xeb,0x5f,0x18,
936 0xa4,0x9e,0xf3,0x1f,0xc5,0x63,0x29,0x88,
937 0x2f,0x51,0x08,0xd7,0xb5,0x24,0xa9,0xc1,
938 0xec,0x5c,0x16,0xb2,0x96,0x14,0xe2,0xf2,
939 0x65,0xf2,0x32,0x16,0x2f,0x91,0x3f,0x46,
940 0xb1,0x1d,0xc6,0x60,0x55,0xab,0x62,0x0f,
941 0x62,0xd2,0xaf,0xa4,0xff,0x3f,0x13,0x15,
942 0x9c,0x80,0x55,0xa6,0x68,0xea,0x20,0x3c,
943 0xa8,0x6c,0x98,0xd1,0xdc,0x81,0xb1,0x8a,
944 0x44,0x2b,0x4f,0x99,0x89,0x25,0xb6,0x6b,
945 0x6c,0xbf,0xdd,0xfe,0x3d,0x76,0xa7,0x28,
946 0x32,0x76,0x40,0x2d,0x66,0x45,0x69,0x4a,
947 0x49,0x36,0x89,0x96,0x56,0x34,0xc6,0x0e,
948 0xd9,0x2d,0xe2,0xc9,0xdd,0x24,0xfb,0x2e,
949 0x29,0xdc,0xb1,0xdf,0x9a,0x55,0xb9,0xb8,
950 0xa7,0xa2,0x53,0x38,0x22,0xb6,0xeb,0x2d,
951 0x93,0xcd,0x6e,0x9a,0x5e,0x98,0x6e,0x9b,
952 0xd4,0x7c,0x29,0x1a,0xc6,0xde,0x62,0xd9,
953 0x33,0xc3,0x0f,0x66,0x45,0xdc,0x86,0xbb,
954 0x99,0xff,0x31,0x7c,0xdf,0x78,0xf1,0xaf,
955 0xf9,0x82,0x77,0xf0,0x92,0x8b,0x46,0x09,
956 0x0f,0x0a,0xa5,0x42,0xa1,0x68,0x98,0xa4,
957 0x07,0xc5,0xa2,0x18,0x18,0x70,0x91,0x2f,
958 0x94,0x82,0x1c,0x58,0xd1,0xd7,0x55,0xf3,
959 0x08,0x67,0xa3,0xe9,0x2c,0xfe,0x8c,0xa7,
960 0x4b,0xd9,0x76,0x45,0xda,0xf6,0x06,0x85,
961 0x01,0x1e,0x9c,0x6f,0x85,0x28,0x72,0x6e,
962 0x2f,0x5d,0x35,0x35,0xdb,0xe7,0x2f,0x58,
963 0x76,0xe6,0x5c,0x12,0xfe,0x75,0xdc,0x38,
964 0x92,0xe7,0xc7,0x83,0x21,0x7d,0xc6,0x07,
965 0x85,0x86,0x3a,0x8f,0x50,0xa5,0x2e,0xec,
966 0xc0,0xa9,0x95,0x7a,0x0e,0xb5,0x56,0x4d,
967 0x53,0x6b,0xd5,0x1c,0x6a,0x7d,0x2f,0x4d,
968 0xad,0xef,0x9d,0xeb,0x4e,0x90,0x7f,0x62,
969 0x14,0x12,0xef,0xbc,0xe6,0xec,0xfb,0x66,
970 0x88,0x66,0x86,0x59,0x7e,0x34,0xe4,0x10,
971 0x2d,0x3c,0x0c,0x62,0x9b,0x1c,0x8a,0xf7,
972 0x89,0x02,0x26,0xe8,0x6e,0x33,0xcc,0x70,
973 0x47,0x5a,0x25,0x0e,0xdd,0x55,0xe9,0xc2,
974 0x0b,0x1c,0xdb,0xd3,0x2a,0x71,0xe8,0x16,
975 0x25,0x71,0xc5,0x85,0xf8,0xec,0x73,0x43,
976 0x34,0xd6,0x68,0x2d,0x0d,0x05,0x78,0xd7,
977 0xba,0x46,0xc1,0x74,0x1a,0xe8,0x7b,0xc5,
978 0xa1,0x5b,0x94,0xc4,0x21,0x30,0x9a,0xcd,
979 0xa5,0x41,0x7e,0x18,0x92,0x47,0xc5,0x1f,
980 0x2f,0xc1,0x9d,0x73,0x78,0xd4,0x6d,0xf4,
981 0xad,0x66,0xe3,0x6f,0x72,0xf1,0xf8,0xc1,
982 0xd8,0xbe,0xd9,0xcc,0xa0,0xa7,0xdd,0x41,
983 0xa7,0x49,0x71,0x64,0x87,0xbf,0xa5,0xe1,
984 0x7d,0x76,0x0b,0x42,0xa1,0xdd,0x4c,0xea,
985 0x36,0xbc,0x55,0x05,0x35,0x9b,0xf9,0x26,
986 0xcb,0xa3,0x12,0x90,0x99,0x68,0xbe,0xca,
987 0x72,0x2d,0x58,0xd5,0xb3,0xa4,0x1f,0x13,
988 0x2f,0xa0,0x87,0x7e,0xba,0xb1,0x0f,0x87,
989 0x0c,0xc1,0xcd,0x81,0x9f,0x26,0xb8,0x07,
990 0xeb,0x79,0x1d,0xc2,0xd8,0x8a,0xf2,0x19,
991 0x42,0x5b,0xb6,0xb8,0xa1,0x3f,0xa9,0x09,
992 0xb8,0x87,0xb7,0xb4,0x58,0xfd,0xd0,0x99,
993 0xcf,0x36,0xf2,0xe9,0xf3,0x99,0xaa,0x3e,
994 0x0e,0xae,0xfd,0x05,0xea,0x04,0x56,0x13,
995 0xc8,0xa9,0xb6,0x20,0x81,0xc0,0xbf,0xa8,
996 0x33,0xe0,0x9e,0xcf,0xbd,0xf8,0xab,0x3c,
997 0x24,0x0e,0xb7,0x3b,0xbc,0x16,0x7c,0x3e,
998 0x69,0xe8,0xc7,0xc3,0x24,0xa4,0x98,0x7a,
999 0x0d,0x1c,0x4f,0x21,0xf2,0xc4,0xf9,0xb4,
1000 0x24,0xe8,0x38,0x9a,0xc3,0xc7,0x1f,0x45,
1001 0x1a,0x3e,0x8e,0xe6,0xf0,0x1d,0x70,0xc9,
1002 0x4a,0x3e,0x8e,0xea,0xce,0x40,0xcc,0xf7,
1003 0x03,0x98,0xf1,0x44,0x64,0xd0,0x38,0xc8,
1004 0xd9,0x10,0xd7,0xb8,0x3f,0x72,0x5c,0xf5,
1005 0xce,0x2d,0x6f,0x9a,0xfb,0xe4,0x63,0x71,
1006 0x86,0xc9,0x3b,0xe6,0xcc,0x8e,0x2f,0x71,
1007 0xdd,0xe1,0xe8,0x92,0x5e,0x18,0xbb,0xf0,
1008 0x9e,0x2c,0xc2,0xf7,0xa2,0xd3,0xe8,0x1d,
1009 0x5b,0xc7,0x8d,0x3f,0xbb,0xa7,0xec,0xe5,
1010 0x90,0xcf,0x78,0x33,0x34,0xcc,0x76,0x47,
1011 0x65,0x92,0x67,0xcc,0x7c,0x97,0x61,0xf6,
1012 0x06,0x1f,0xd2,0xe4,0x24,0x84,0xf9,0xb5,
1013 0x0c,0xff,0xa4,0xd1,0x3f,0xf8,0x74,0xd4,
1014 0x3a,0x6b,0x1d,0x81,0x0c,0x19,0xd4,0xcf,
1015 0xd1,0x69,0x9c,0xf4,0x3e,0x75,0xfb,0x70,
1016 0x0e,0x1e,0xd2,0xce,0x71,0xd6,0x3a,0xed,
1017 0x91,0xcf,0xf2,0x76,0x13,0x64,0xc8,0x20,
1018 0xce,0x31,0x75,0x39,0x2a,0x39,0x5d,0x49,
1019 0x77,0xd0,0x3f,0x19,0xf4,0xad,0xc3,0xee,
1020 0xe9,0x71,0x72,0xc2,0x28,0x21,0xcc,0x2f,
1021 0x41,0x7e,0xb3,0xf5,0x61,0xf0,0x51,0xa1,
1022 0xc3,0x48,0xfa,0xe7,0x20,0xf9,0x3e,0xe1,
1023 0x2c,0x3c,0x4a,0x57,0x48,0xd1,0xce,0xe0,
1024 0x58,0x32,0xc8,0x53,0x5a,0xa3,0xdf,0x3e,
1025 0xe6,0x1a,0x64,0x94,0xd6,0xa0,0xa8,0xd0,
1026 0x48,0x9e,0xd2,0xac,0x41,0xff,0x00,0xd4,
1027 0x92,0x3c,0xa5,0xd7,0x26,0x58,0x42,0x0f,
1028 0x46,0x74,0x9a,0xb2,0xb6,0xe4,0x49,0xa7,
1029 0xa9,0xd6,0x08,0x23,0x69,0x97,0x9e,0x74,
1030 0x7b,0xed,0xbf,0x80,0xaa,0x7c,0x4e,0x77,
1031 0xe5,0xb0,0x7d,0xc4,0x39,0x64,0x94,0x46,
1032 0x8f,0xda,0x1d,0x8e,0x92,0x51,0x1a,0xfd,
1033 0xd0,0xee,0xf7,0x18,0x4a,0x46,0x18,0x5d,
1034 0x57,0x6a,0xe8,0x73,0xcb,0xe0,0x41,0x3a,
1035 0xf3,0xa4,0xd1,0xe3,0x99,0x64,0xc4,0x7e,
1036 0xfb,0xc9,0xb3,0xd0,0xf5,0xf1,0xc8,0x8d,
1037 0x3f,0x93,0x83,0xd0,0xdc,0x7f,0x0a,0x21,
1038 0xdf,0xf6,0x59,0x74,0x15,0x46,0xaf,0xf4,
1039 0xe1,0x48,0x84,0x9f,0xc1,0x30,0xbd,0xce,
1040 0xde,0x33,0xe0,0x79,0x06,0xa8,0xd4,0xf3,
1041 0x90,0x5a,0x35,0x0f,0xa9,0xef,0x31,0xe4,
1042 0x45,0x76,0x9a,0xf2,0x34,0x1f,0x42,0x0c,
1043 0x5a,0xcf,0xd6,0x50,0x7d,0xef,0x2d,0xc0,
1044 0x2e,0x19,0xb6,0x06,0xb1,0x79,0x3c,0xd1,
1045 0x56,0x4e,0xe3,0x1e,0xca,0x43,0x1c,0xa4,
1046 0xd7,0xd2,0xae,0x95,0xc6,0xf3,0xb4,0x6a,
1047 0xd5,0x44,0x4b,0x69,0xb6,0xeb,0x05,0x17,
1048 0xd5,0x5c,0xe0,0x3a,0x0f,0x98,0xe4,0x01,
1049 0x23,0x06,0x6c,0x51,0x20,0xb1,0x53,0x62,
1050 0x18,0x66,0x29,0x60,0x9f,0x0d,0x85,0x86,
1051 0xed,0xc0,0x18,0xcc,0x17,0x9b,0x0a,0x78,
1052 0x25,0xd0,0x2b,0x1d,0x1c,0x09,0x98,0xbb,
1053 0xea,0x57,0x05,0x66,0x3b,0xca,0x08,0xc2,
1054 0x5f,0x85,0x2c,0xa5,0x52,0x07,0x1c,0xba,
1055 0x61,0x1a,0x52,0xad,0x0a,0x48,0x74,0x27,
1056 0x34,0xa4,0xfa,0x1e,0x20,0x51,0x03,0x6e,
1057 0x69,0x2a,0x2a,0x4f,0x61,0x4d,0xd4,0x8c,
1058 0x5a,0x1a,0x52,0x68,0x64,0xbf,0x76,0x34,
1059 0xc5,0x63,0x5b,0xc2,0xf2,0x99,0x4b,0xf5,
1060 0xc4,0x4b,0x95,0xc8,0x2c,0x0b,0x89,0xd4,
1061 0x7e,0x8c,0x94,0x78,0xb7,0x90,0x25,0x78,
1062 0x08,0x50,0xa8,0xf5,0x34,0x24,0x07,0x92,
1063 0xb8,0x0b,0x53,0xa4,0xa4,0xa5,0x89,0xb5,
1064 0x0b,0x59,0x02,0x98,0x8a,0xbb,0x5c,0x43,
1065 0x72,0x20,0x89,0x4e,0xa5,0xfa,0x80,0xd9,
1066 0x9d,0xfb,0x30,0xb1,0xbe,0x86,0x72,0x0d,
1067 0x28,0xd7,0x7a,0xca,0x04,0x50,0x26,0x7a,
1068 0xca,0x08,0x50,0x46,0xb4,0x60,0xf9,0xb6,
1069 0xd0,0x8b,0xfa,0x53,0xa3,0x67,0xb5,0x0f,
1070 0x9b,0xed,0x53,0xf2,0xcb,0xfe,0xac,0x45,
1071 0xff,0xc1,0xf7,0xcd,0xff,0x15,0x94,0xed,
1072 0x4a,
1073 };
1074
1075 macros_t nasm_stdmac_nasm = {
1076 5500, 1417, nasm_stdmac_nasm_blob
1077 };
1078
1079
1080 /* --- from ./macros/vtern.mac --- */
1081
1082 /*
1083 * %define __?USE_VTERN?__
1084 * %defalias __USE_VTERN__ __?USEVTERN?__
1085 * %imacro vpternlogd 4.nolist
1086 * %define %%imm(a,A,b,B,c,C) (%4)
1087 * %? %1,%2,%3,%%imm(0xaa,0xaa,0xcc,0xcc,0xf0,0xf0)
1088 * %endmacro
1089 * %imacro vpternlogq 4.nolist
1090 * %define %%imm(a,A,b,B,c,C) (%4)
1091 * %? %1,%2,%3,%%imm(0xaa,0xaa,0xcc,0xcc,0xf0,0xf0)
1092 * %endmacro
1093 */
1094
1095 static const unsigned char nasm_usemac_vtern_blob[146] = {
1096 0x78,0xda,0x13,0x57,0x4d,0x49,0x4d,0xcb,
1097 0xcc,0x4b,0x55,0x88,0x8f,0xb7,0x0f,0x0d,
1098 0x76,0x8d,0x0f,0x0b,0x71,0x0d,0xf2,0xb3,
1099 0x8f,0x8f,0x57,0x03,0x89,0x27,0xe6,0x64,
1100 0x26,0x16,0x03,0x65,0xe0,0x12,0xf1,0xf1,
1101 0x50,0x75,0x30,0x65,0xd2,0xaa,0x99,0xb9,
1102 0x89,0xc9,0x45,0xf9,0x0a,0x65,0x05,0x25,
1103 0xa9,0x45,0x79,0x39,0xf9,0xe9,0x29,0x0a,
1104 0x26,0x7a,0x79,0xf9,0x39,0x99,0xc5,0x25,
1105 0xf2,0x30,0xa3,0x55,0x81,0x8a,0x72,0x35,
1106 0x12,0x75,0x1c,0x75,0x92,0x74,0x9c,0x74,
1107 0x92,0x75,0x9c,0x35,0x15,0x34,0x54,0x4d,
1108 0x34,0x0d,0x54,0xed,0x15,0x54,0x0d,0x75,
1109 0x54,0x8d,0x74,0x54,0x8d,0x75,0x20,0x6a,
1110 0x0c,0x2a,0x12,0x13,0x75,0xa0,0x44,0x72,
1111 0x32,0x8c,0x48,0x33,0x00,0x13,0x9a,0x9c,
1112 0xaa,0xa9,0x79,0x29,0x60,0xeb,0x30,0xad,
1113 0x2d,0xa4,0x87,0xb5,0x0c,0x00,0xd2,0xd5,
1114 0x5a,0x63,
1115 };
1116
1117 static macros_t nasm_usemac_vtern = {
1118 302, 146, nasm_usemac_vtern_blob
1119 };
1120
1121
1122 /* --- from ./output/outaout.mac --- */
1123
1124 #if defined(OF_AOUT) || defined(OF_AOUTB)
1125 /*
1126 * %define __?SECT?__ [section .text]
1127 * %macro __?NASM_CDecl?__ 1
1128 * %endmacro
1129 */
1130
1131 static const unsigned char aout_stdmac_blob[72] = {
1132 0x22,0x25,0x64,0x65,0x66,0x69,0x6e,0x65,
1133 0x20,0x5f,0x5f,0x3f,0x53,0x45,0x43,0x54,
1134 0x3f,0x5f,0x5f,0x20,0x5b,0x73,0x65,0x63,
1135 0x74,0x69,0x6f,0x6e,0x20,0x2e,0x74,0x65,
1136 0x78,0x74,0x5d,0x19,0x25,0x6d,0x61,0x63,
1137 0x72,0x6f,0x20,0x5f,0x5f,0x3f,0x4e,0x41,
1138 0x53,0x4d,0x5f,0x43,0x44,0x65,0x63,0x6c,
1139 0x3f,0x5f,0x5f,0x20,0x31,0x09,0x25,0x65,
1140 0x6e,0x64,0x6d,0x61,0x63,0x72,0x6f,0x00,
1141 };
1142
1143 macros_t aout_stdmac = {
1144 72, 72, aout_stdmac_blob
1145 };
1146 #endif
1147
1148
1149 /* --- from ./output/outas86.mac --- */
1150
1151 #if defined(OF_AS86)
1152 /*
1153 * %define __?SECT?__ [section .text]
1154 * %macro __?NASM_CDecl?__ 1
1155 * %endmacro
1156 */
1157
1158 static const unsigned char as86_stdmac_blob[72] = {
1159 0x22,0x25,0x64,0x65,0x66,0x69,0x6e,0x65,
1160 0x20,0x5f,0x5f,0x3f,0x53,0x45,0x43,0x54,
1161 0x3f,0x5f,0x5f,0x20,0x5b,0x73,0x65,0x63,
1162 0x74,0x69,0x6f,0x6e,0x20,0x2e,0x74,0x65,
1163 0x78,0x74,0x5d,0x19,0x25,0x6d,0x61,0x63,
1164 0x72,0x6f,0x20,0x5f,0x5f,0x3f,0x4e,0x41,
1165 0x53,0x4d,0x5f,0x43,0x44,0x65,0x63,0x6c,
1166 0x3f,0x5f,0x5f,0x20,0x31,0x09,0x25,0x65,
1167 0x6e,0x64,0x6d,0x61,0x63,0x72,0x6f,0x00,
1168 };
1169
1170 macros_t as86_stdmac = {
1171 72, 72, as86_stdmac_blob
1172 };
1173 #endif
1174
1175
1176 /* --- from ./output/outbin.mac --- */
1177
1178 #if defined(OF_BIN)
1179 /*
1180 * %define __?SECT?__ [section .text]
1181 * %imacro org 1+.nolist
1182 * [org %1]
1183 * %endmacro
1184 * %macro __?NASM_CDecl?__ 1
1185 * %endmacro
1186 */
1187
1188 static const unsigned char bin_stdmac_blob[101] = {
1189 0x78,0xda,0x53,0x52,0x4d,0x49,0x4d,0xcb,
1190 0xcc,0x4b,0x55,0x88,0x8f,0xb7,0x0f,0x76,
1191 0x75,0x0e,0xb1,0x8f,0x8f,0x57,0x88,0x2e,
1192 0x4e,0x4d,0x2e,0xc9,0xcc,0xcf,0x53,0xd0,
1193 0x2b,0x49,0xad,0x28,0x89,0x15,0x55,0xcd,
1194 0xcc,0x4d,0x4c,0x2e,0xca,0x57,0xc8,0x2f,
1195 0x4a,0x57,0x30,0xd4,0xd6,0xcb,0xcb,0xcf,
1196 0xc9,0x2c,0x2e,0xe1,0x88,0x06,0x71,0x55,
1197 0x0d,0x63,0x39,0x55,0x53,0xf3,0x52,0xc0,
1198 0x0a,0x24,0x55,0x21,0xea,0x80,0x46,0xf9,
1199 0x39,0x06,0xfb,0xc6,0x3b,0xbb,0xa4,0x26,
1200 0xe7,0x80,0x0c,0x34,0x44,0xa8,0x61,0x00,
1201 0x00,0x40,0x14,0x24,0xac,
1202 };
1203
1204 macros_t bin_stdmac = {
1205 113, 101, bin_stdmac_blob
1206 };
1207 #endif
1208
1209
1210 /* --- from ./output/outcoff.mac --- */
1211
1212 #if defined(OF_COFF) || defined(OF_WIN32) || defined(OF_WIN64)
1213 /*
1214 * %define __?SECT?__ [section .text]
1215 * %macro __?NASM_CDecl?__ 1
1216 * %endmacro
1217 * %imacro export 1+.nolist
1218 * [export %1]
1219 * %endmacro
1220 * %imacro safeseh 1.nolist
1221 * [safeseh %1]
1222 * %endmacro
1223 */
1224
1225 static const unsigned char coff_stdmac_blob[120] = {
1226 0x78,0xda,0x53,0x52,0x4d,0x49,0x4d,0xcb,
1227 0xcc,0x4b,0x55,0x88,0x8f,0xb7,0x0f,0x76,
1228 0x75,0x0e,0xb1,0x8f,0x8f,0x57,0x88,0x2e,
1229 0x4e,0x4d,0x2e,0xc9,0xcc,0xcf,0x53,0xd0,
1230 0x2b,0x49,0xad,0x28,0x89,0x95,0x54,0xcd,
1231 0x4d,0x4c,0x2e,0xca,0x07,0xa9,0xf0,0x73,
1232 0x0c,0xf6,0x8d,0x77,0x76,0x49,0x4d,0xce,
1233 0x01,0xa9,0x33,0xe4,0x54,0x4d,0xcd,0x4b,
1234 0x01,0x4b,0x4a,0xa8,0x66,0x42,0x14,0xa5,
1235 0x56,0x14,0xe4,0x17,0x95,0x28,0x18,0x6a,
1236 0xeb,0xe5,0xe5,0xe7,0x64,0x16,0x97,0x70,
1237 0x47,0x43,0x45,0x54,0x0d,0x63,0xb1,0x28,
1238 0x2f,0x4e,0x4c,0x4b,0x2d,0x4e,0xcd,0x50,
1239 0x30,0x84,0x2a,0xe7,0x89,0x86,0x89,0xa0,
1240 0xa8,0x67,0x00,0x00,0x33,0xe3,0x37,0xc5,
1241 };
1242
1243 macros_t coff_stdmac = {
1244 167, 120, coff_stdmac_blob
1245 };
1246 #endif
1247
1248
1249 /* --- from ./output/outdbg.mac --- */
1250
1251 #if defined(OF_DBG)
1252 /*
1253 * %define __?SECT?__ [section .text]
1254 * %imacro group 1+.nolist
1255 * [group %1]
1256 * %endmacro
1257 * %imacro uppercase 0+.nolist
1258 * %pragma dbg uppercase %1
1259 * %endmacro
1260 * %imacro export 1+.nolist
1261 * %pragma dbg export %1
1262 * %endmacro
1263 * %imacro import 1+.nolist
1264 * %pragma dbg import %1
1265 * %endmacro
1266 * %imacro org 1+.nolist
1267 * %pragma dbg org %1
1268 * %endmacro
1269 * %macro __?NASM_CDecl?__ 1
1270 * %endmacro
1271 */
1272
1273 static const unsigned char dbg_stdmac_blob[174] = {
1274 0x78,0xda,0x7d,0xd0,0x31,0x0b,0xc2,0x30,
1275 0x10,0x05,0x60,0x57,0x1d,0x85,0xa2,0xe2,
1276 0x72,0x08,0x99,0x84,0x62,0x7f,0x41,0x91,
1277 0xea,0xa8,0x4b,0xdd,0x4a,0x09,0x31,0x3d,
1278 0x43,0xa0,0x4d,0x42,0x9a,0x42,0x7f,0xbe,
1279 0xd6,0x36,0x34,0x83,0xb8,0xde,0x7b,0x1f,
1280 0x07,0xef,0x40,0x2a,0x7c,0x49,0x85,0x40,
1281 0x69,0x9a,0x5f,0xb3,0x47,0x4a,0x29,0x14,
1282 0x2d,0x72,0x27,0xb5,0x82,0xd8,0x61,0xef,
1283 0xca,0x0d,0x91,0x0d,0xe3,0x56,0x83,0xb0,
1284 0xba,0x33,0x90,0x1c,0x63,0xa5,0x6b,0xd9,
1285 0xba,0x55,0x31,0x1e,0x48,0x52,0x2e,0x09,
1286 0xaa,0xea,0x5b,0xda,0xfb,0x72,0x67,0x0c,
1287 0x5a,0xce,0x5a,0x84,0x93,0x07,0x5b,0x62,
1288 0x2c,0x13,0x0d,0x83,0xea,0x29,0x82,0x9c,
1289 0x24,0x33,0xdf,0x7a,0x8e,0xbd,0xd1,0xd6,
1290 0xcd,0xcf,0xa2,0xd0,0x4e,0xe1,0x4f,0x28,
1291 0x9b,0x3f,0x70,0x0a,0x43,0x18,0x79,0xa8,
1292 0xad,0x98,0xd5,0x3a,0x54,0x43,0x12,0x92,
1293 0x1d,0x19,0xc5,0x67,0xb2,0xfb,0x39,0xbf,
1294 0xd1,0xec,0x82,0xbc,0x1e,0x86,0x0b,0x3a,
1295 0x8b,0x37,0x00,0x61,0x73,0xaf,
1296 };
1297
1298 macros_t dbg_stdmac = {
1299 345, 174, dbg_stdmac_blob
1300 };
1301 #endif
1302
1303
1304 /* --- from ./output/outelf.mac --- */
1305
1306 #if defined(OF_ELF) || defined(OF_ELF32) || defined(OF_ELF64)
1307 /*
1308 * %define __?SECT?__ [section .text]
1309 * %macro __?NASM_CDecl?__ 1
1310 * %define $_%1 $%1
1311 * %endmacro
1312 * %imacro osabi 1+.nolist
1313 * [%? %1]
1314 * %endmacro
1315 */
1316
1317 static const unsigned char elf_stdmac_blob[114] = {
1318 0x78,0xda,0x53,0x52,0x4d,0x49,0x4d,0xcb,
1319 0xcc,0x4b,0x55,0x88,0x8f,0xb7,0x0f,0x76,
1320 0x75,0x0e,0xb1,0x8f,0x8f,0x57,0x88,0x2e,
1321 0x4e,0x4d,0x2e,0xc9,0xcc,0xcf,0x53,0xd0,
1322 0x2b,0x49,0xad,0x28,0x89,0x95,0x54,0xcd,
1323 0x4d,0x4c,0x2e,0xca,0x07,0xa9,0xf0,0x73,
1324 0x0c,0xf6,0x8d,0x77,0x76,0x49,0x4d,0xce,
1325 0x01,0xa9,0x33,0x14,0x80,0x69,0x56,0x89,
1326 0x57,0x35,0x54,0x50,0x51,0x35,0xe4,0x54,
1327 0x4d,0xcd,0x4b,0x01,0xab,0x16,0x57,0xcd,
1328 0x84,0xe8,0xca,0x2f,0x4e,0x4c,0xca,0x54,
1329 0x30,0xd4,0xd6,0xcb,0xcb,0xcf,0xc9,0x2c,
1330 0x2e,0x61,0x8f,0x56,0xb5,0x57,0x50,0x35,
1331 0x8c,0x45,0xa8,0x64,0x00,0x00,0xb1,0x2e,
1332 0x28,0xc2,
1333 };
1334
1335 macros_t elf_stdmac = {
1336 131, 114, elf_stdmac_blob
1337 };
1338 #endif
1339
1340
1341 /* --- from ./output/outmacho.mac --- */
1342
1343 #if defined(OF_MACHO) || defined(OF_MACHO32) || defined(OF_MACHO64)
1344 /*
1345 * %define __?SECT?__ [section .text]
1346 * %macro __?NASM_CDecl?__ 1
1347 * %endmacro
1348 * %imacro subsections_via_symbols 0.nolist
1349 * %pragma __?OUTPUT_FORMAT?__ %?
1350 * %endmacro
1351 * %imacro no_dead_strip 1-*.nolist
1352 * %rep %0
1353 * %pragma __?OUTPUT_FORMAT?__ %? %1
1354 * %rotate 1
1355 * %endrep
1356 * %endmacro
1357 * %imacro build_version 3+
1358 * %pragma __?OUTPUT_FORMAT?__ %? %1,%2,%3
1359 * %endmacro
1360 */
1361
1362 static const unsigned char macho_stdmac_blob[208] = {
1363 0x78,0xda,0x85,0xcf,0x4d,0x6b,0xc2,0x40,
1364 0x10,0x06,0xe0,0xde,0xa4,0xff,0xa0,0x5e,
1365 0xca,0xb4,0x30,0x54,0xea,0x07,0x46,0x7f,
1366 0x40,0x10,0xb5,0xb7,0x18,0x31,0xf1,0x54,
1367 0xca,0xb0,0xc9,0x8e,0x65,0x21,0xd9,0x0d,
1368 0xbb,0x1b,0x69,0xff,0x7d,0x5d,0x3f,0xc8,
1369 0xcd,0x9e,0xe7,0x9d,0xe7,0x9d,0x79,0x45,
1370 0xc9,0x07,0xa5,0x19,0x88,0xe2,0x6c,0xbd,
1371 0xcc,0x63,0x22,0xf8,0x74,0x5c,0x7a,0x65,
1372 0x34,0x4c,0x3c,0xff,0xf8,0xaf,0x3e,0xd6,
1373 0xa2,0xb4,0x26,0x24,0x36,0x8b,0x2c,0xa1,
1374 0xe5,0x8a,0xcb,0x2a,0xe4,0xa2,0x47,0x64,
1375 0x2d,0xcf,0xc3,0x01,0xaa,0x4b,0xc8,0xb5,
1376 0xc5,0x75,0xdb,0xd1,0x51,0x09,0x72,0xbf,
1377 0x75,0x61,0x2a,0x07,0xd3,0x89,0x36,0x95,
1378 0x72,0xfe,0x19,0x1b,0x2b,0xbe,0x6b,0x11,
1379 0xb4,0x74,0x9f,0x6f,0xf7,0x39,0x7d,0xa4,
1380 0xbb,0x64,0x71,0x2e,0xc6,0xb8,0x13,0xe1,
1381 0x26,0x6a,0x43,0x92,0x85,0x24,0xe7,0xad,
1382 0x6a,0x20,0x1a,0xbf,0x5f,0xa5,0x1e,0x5a,
1383 0x6e,0x00,0xa7,0x2f,0xf7,0x45,0xc0,0xd3,
1384 0x99,0xd6,0x78,0xe1,0x19,0xa2,0x5e,0xe0,
1385 0x4f,0x6b,0x5d,0xcd,0xd3,0xad,0xa6,0x68,
1386 0x55,0x25,0xe9,0xc8,0xd6,0x85,0xcf,0xe7,
1387 0xc3,0xb7,0x7f,0xd9,0x11,0xce,0x46,0x38,
1388 0xef,0xa8,0x87,0x3f,0x15,0x8a,0x6b,0xde,
1389 };
1390
1391 macros_t macho_stdmac = {
1392 332, 208, macho_stdmac_blob
1393 };
1394 #endif
1395
1396
1397 /* --- from ./output/outobj.mac --- */
1398
1399 #if defined(OF_OBJ) || defined(OF_OBJ2)
1400 /*
1401 * %define __?SECT?__ [section .text]
1402 * %imacro group 1+.nolist
1403 * [group %1]
1404 * %endmacro
1405 * %imacro uppercase 0+.nolist
1406 * [uppercase %1]
1407 * %endmacro
1408 * %imacro export 1+.nolist
1409 * [export %1]
1410 * %endmacro
1411 * %imacro import 1+.nolist
1412 * [import %1]
1413 * %endmacro
1414 * %macro __?NASM_CDecl?__ 1
1415 * %endmacro
1416 */
1417
1418 static const unsigned char obj_stdmac_blob[150] = {
1419 0x78,0xda,0x53,0x52,0x4d,0x49,0x4d,0xcb,
1420 0xcc,0x4b,0x55,0x88,0x8f,0xb7,0x0f,0x76,
1421 0x75,0x0e,0xb1,0x8f,0x8f,0x57,0x88,0x2e,
1422 0x4e,0x4d,0x2e,0xc9,0xcc,0xcf,0x53,0xd0,
1423 0x2b,0x49,0xad,0x28,0x89,0x15,0x57,0xcd,
1424 0xcc,0x4d,0x4c,0x2e,0xca,0x57,0x48,0x2f,
1425 0xca,0x2f,0x2d,0x50,0x30,0xd4,0xd6,0xcb,
1426 0xcb,0xcf,0xc9,0x2c,0x2e,0xe1,0x8a,0x86,
1427 0x08,0xa8,0x1a,0xc6,0x72,0xaa,0xa6,0xe6,
1428 0xa5,0x80,0x15,0x49,0xc3,0x14,0x97,0x16,
1429 0x14,0xa4,0x16,0x25,0x27,0x16,0xa7,0x2a,
1430 0x18,0xc0,0x34,0xf0,0x45,0x23,0x04,0x51,
1431 0x34,0x49,0xc0,0x34,0xa5,0x56,0x14,0xe4,
1432 0x17,0x95,0x20,0xac,0xe0,0x8e,0x86,0x8a,
1433 0x60,0x57,0x9e,0x99,0x8b,0xae,0x1c,0x2a,
1434 0x82,0xa2,0x5c,0x52,0x15,0xa2,0x1a,0xe8,
1435 0x43,0x3f,0xc7,0x60,0xdf,0x78,0x67,0x97,
1436 0xd4,0xe4,0x1c,0x90,0x3f,0x0d,0x11,0x6a,
1437 0x18,0x00,0x5f,0x36,0x58,0xea,
1438 };
1439
1440 macros_t obj_stdmac = {
1441 264, 150, obj_stdmac_blob
1442 };
1443 #endif
1444
1445
1446 const unsigned int use_package_count = 6;
1447
1448 const struct use_package *nasm_find_use_package(const char *name)
1449 {
1450 static const struct use_package packages[6] = {
1451 { "altreg", &nasm_usemac_altreg, 0 },
1452 { "fp", &nasm_usemac_fp, 1 },
1453 { "ifunc", &nasm_usemac_ifunc, 2 },
1454 { "masm", &nasm_usemac_masm, 3 },
1455 { "smartalign", &nasm_usemac_smartalign, 4 },
1456 { "vtern", &nasm_usemac_vtern, 5 },
1457 };
1458 #define INVALID_HASH_ENTRY (65535/3)
1459 static const int16_t hashdata[32] = {
1460 INVALID_HASH_ENTRY,
1461 0,
1462 INVALID_HASH_ENTRY,
1463 INVALID_HASH_ENTRY,
1464 INVALID_HASH_ENTRY,
1465 0,
1466 INVALID_HASH_ENTRY,
1467 3,
1468 1,
1469 INVALID_HASH_ENTRY,
1470 0,
1471 INVALID_HASH_ENTRY,
1472 INVALID_HASH_ENTRY,
1473 INVALID_HASH_ENTRY,
1474 INVALID_HASH_ENTRY,
1475 INVALID_HASH_ENTRY,
1476 INVALID_HASH_ENTRY,
1477 INVALID_HASH_ENTRY,
1478 INVALID_HASH_ENTRY,
1479 INVALID_HASH_ENTRY,
1480 2,
1481 INVALID_HASH_ENTRY,
1482 INVALID_HASH_ENTRY,
1483 INVALID_HASH_ENTRY,
1484 INVALID_HASH_ENTRY,
1485 0,
1486 INVALID_HASH_ENTRY,
1487 INVALID_HASH_ENTRY,
1488 INVALID_HASH_ENTRY,
1489 4,
1490 INVALID_HASH_ENTRY,
1491 INVALID_HASH_ENTRY,
1492 };
1493 uint32_t k1, k2;
1494 uint64_t crc;
1495 uint16_t ix;
1496
1497 crc = crc64i(UINT64_C(0x076259c3e291c26c), name);
1498 k1 = ((uint32_t)crc & 0x1e) + 0;
1499 k2 = ((uint32_t)(crc >> 32) & 0x1e) + 1;
1500
1501 ix = hashdata[k1] + hashdata[k2];
1502 if (ix >= 6)
1503 return NULL;
1504
1505 if (nasm_stricmp(packages[ix].package, name))
1506 return NULL;
1507
1508 return &packages[ix];
1509 }