1 | # 1 "cpu.c" |
---|
2 | # 1 "<built-in>" 1 |
---|
3 | # 1 "<built-in>" 3 |
---|
4 | # 162 "<built-in>" 3 |
---|
5 | # 1 "<command line>" 1 |
---|
6 | # 1 "<built-in>" 2 |
---|
7 | # 1 "cpu.c" 2 |
---|
8 | # 34 "cpu.c" |
---|
9 | # 1 "../../config.h" 1 |
---|
10 | # 35 "cpu.c" 2 |
---|
11 | |
---|
12 | |
---|
13 | # 1 "./include/private/cpu.h" 1 |
---|
14 | # 36 "./include/private/cpu.h" |
---|
15 | # 1 "../../include/FLAC/ordinals.h" 1 |
---|
16 | # 56 "../../include/FLAC/ordinals.h" |
---|
17 | # 1 "/usr/bin/../lib/clang/4.2/include/stdint.h" 1 3 4 |
---|
18 | # 33 "/usr/bin/../lib/clang/4.2/include/stdint.h" 3 4 |
---|
19 | # 1 "/usr/include/stdint.h" 1 3 4 |
---|
20 | # 20 "/usr/include/stdint.h" 3 4 |
---|
21 | typedef signed char int8_t; |
---|
22 | |
---|
23 | |
---|
24 | |
---|
25 | |
---|
26 | typedef short int16_t; |
---|
27 | |
---|
28 | |
---|
29 | |
---|
30 | |
---|
31 | typedef int int32_t; |
---|
32 | |
---|
33 | |
---|
34 | |
---|
35 | |
---|
36 | typedef long long int64_t; |
---|
37 | |
---|
38 | |
---|
39 | |
---|
40 | |
---|
41 | typedef unsigned char uint8_t; |
---|
42 | |
---|
43 | |
---|
44 | |
---|
45 | |
---|
46 | typedef unsigned short uint16_t; |
---|
47 | |
---|
48 | |
---|
49 | |
---|
50 | |
---|
51 | typedef unsigned int uint32_t; |
---|
52 | |
---|
53 | |
---|
54 | |
---|
55 | |
---|
56 | typedef unsigned long long uint64_t; |
---|
57 | |
---|
58 | |
---|
59 | |
---|
60 | typedef int8_t int_least8_t; |
---|
61 | typedef int16_t int_least16_t; |
---|
62 | typedef int32_t int_least32_t; |
---|
63 | typedef int64_t int_least64_t; |
---|
64 | typedef uint8_t uint_least8_t; |
---|
65 | typedef uint16_t uint_least16_t; |
---|
66 | typedef uint32_t uint_least32_t; |
---|
67 | typedef uint64_t uint_least64_t; |
---|
68 | |
---|
69 | |
---|
70 | |
---|
71 | typedef int8_t int_fast8_t; |
---|
72 | typedef int16_t int_fast16_t; |
---|
73 | typedef int32_t int_fast32_t; |
---|
74 | typedef int64_t int_fast64_t; |
---|
75 | typedef uint8_t uint_fast8_t; |
---|
76 | typedef uint16_t uint_fast16_t; |
---|
77 | typedef uint32_t uint_fast32_t; |
---|
78 | typedef uint64_t uint_fast64_t; |
---|
79 | |
---|
80 | |
---|
81 | |
---|
82 | |
---|
83 | |
---|
84 | |
---|
85 | typedef long intptr_t; |
---|
86 | |
---|
87 | |
---|
88 | |
---|
89 | |
---|
90 | typedef unsigned long uintptr_t; |
---|
91 | |
---|
92 | |
---|
93 | |
---|
94 | |
---|
95 | |
---|
96 | |
---|
97 | |
---|
98 | typedef long int intmax_t; |
---|
99 | # 106 "/usr/include/stdint.h" 3 4 |
---|
100 | typedef long unsigned int uintmax_t; |
---|
101 | # 34 "/usr/bin/../lib/clang/4.2/include/stdint.h" 2 3 4 |
---|
102 | # 57 "../../include/FLAC/ordinals.h" 2 |
---|
103 | |
---|
104 | typedef int8_t FLAC__int8; |
---|
105 | typedef uint8_t FLAC__uint8; |
---|
106 | |
---|
107 | typedef int16_t FLAC__int16; |
---|
108 | typedef int32_t FLAC__int32; |
---|
109 | typedef int64_t FLAC__int64; |
---|
110 | typedef uint16_t FLAC__uint16; |
---|
111 | typedef uint32_t FLAC__uint32; |
---|
112 | typedef uint64_t FLAC__uint64; |
---|
113 | |
---|
114 | |
---|
115 | |
---|
116 | typedef int FLAC__bool; |
---|
117 | |
---|
118 | typedef FLAC__uint8 FLAC__byte; |
---|
119 | # 37 "./include/private/cpu.h" 2 |
---|
120 | |
---|
121 | |
---|
122 | # 1 "../../config.h" 1 |
---|
123 | # 40 "./include/private/cpu.h" 2 |
---|
124 | # 111 "./include/private/cpu.h" |
---|
125 | typedef enum { |
---|
126 | FLAC__CPUINFO_TYPE_IA32, |
---|
127 | FLAC__CPUINFO_TYPE_X86_64, |
---|
128 | FLAC__CPUINFO_TYPE_UNKNOWN |
---|
129 | } FLAC__CPUInfo_Type; |
---|
130 | # 133 "./include/private/cpu.h" |
---|
131 | typedef struct { |
---|
132 | FLAC__bool sse3; |
---|
133 | FLAC__bool ssse3; |
---|
134 | FLAC__bool sse41; |
---|
135 | FLAC__bool sse42; |
---|
136 | FLAC__bool avx; |
---|
137 | FLAC__bool avx2; |
---|
138 | FLAC__bool fma; |
---|
139 | } FLAC__CPUInfo_x86; |
---|
140 | |
---|
141 | |
---|
142 | typedef struct { |
---|
143 | FLAC__bool use_asm; |
---|
144 | FLAC__CPUInfo_Type type; |
---|
145 | |
---|
146 | |
---|
147 | |
---|
148 | FLAC__CPUInfo_x86 x86; |
---|
149 | |
---|
150 | } FLAC__CPUInfo; |
---|
151 | |
---|
152 | void FLAC__cpu_info(FLAC__CPUInfo *info); |
---|
153 | # 38 "cpu.c" 2 |
---|
154 | # 1 "/usr/include/stdlib.h" 1 3 4 |
---|
155 | # 61 "/usr/include/stdlib.h" 3 4 |
---|
156 | # 1 "/usr/include/Availability.h" 1 3 4 |
---|
157 | # 141 "/usr/include/Availability.h" 3 4 |
---|
158 | # 1 "/usr/include/AvailabilityInternal.h" 1 3 4 |
---|
159 | # 142 "/usr/include/Availability.h" 2 3 4 |
---|
160 | # 62 "/usr/include/stdlib.h" 2 3 4 |
---|
161 | |
---|
162 | # 1 "/usr/include/_types.h" 1 3 4 |
---|
163 | # 27 "/usr/include/_types.h" 3 4 |
---|
164 | # 1 "/usr/include/sys/_types.h" 1 3 4 |
---|
165 | # 32 "/usr/include/sys/_types.h" 3 4 |
---|
166 | # 1 "/usr/include/sys/cdefs.h" 1 3 4 |
---|
167 | # 417 "/usr/include/sys/cdefs.h" 3 4 |
---|
168 | # 1 "/usr/include/sys/_symbol_aliasing.h" 1 3 4 |
---|
169 | # 418 "/usr/include/sys/cdefs.h" 2 3 4 |
---|
170 | # 494 "/usr/include/sys/cdefs.h" 3 4 |
---|
171 | # 1 "/usr/include/sys/_posix_availability.h" 1 3 4 |
---|
172 | # 495 "/usr/include/sys/cdefs.h" 2 3 4 |
---|
173 | # 33 "/usr/include/sys/_types.h" 2 3 4 |
---|
174 | # 1 "/usr/include/machine/_types.h" 1 3 4 |
---|
175 | # 32 "/usr/include/machine/_types.h" 3 4 |
---|
176 | # 1 "/usr/include/i386/_types.h" 1 3 4 |
---|
177 | # 37 "/usr/include/i386/_types.h" 3 4 |
---|
178 | typedef signed char __int8_t; |
---|
179 | |
---|
180 | |
---|
181 | |
---|
182 | typedef unsigned char __uint8_t; |
---|
183 | typedef short __int16_t; |
---|
184 | typedef unsigned short __uint16_t; |
---|
185 | typedef int __int32_t; |
---|
186 | typedef unsigned int __uint32_t; |
---|
187 | typedef long long __int64_t; |
---|
188 | typedef unsigned long long __uint64_t; |
---|
189 | |
---|
190 | typedef long __darwin_intptr_t; |
---|
191 | typedef unsigned int __darwin_natural_t; |
---|
192 | # 70 "/usr/include/i386/_types.h" 3 4 |
---|
193 | typedef int __darwin_ct_rune_t; |
---|
194 | |
---|
195 | |
---|
196 | |
---|
197 | |
---|
198 | |
---|
199 | typedef union { |
---|
200 | char __mbstate8[128]; |
---|
201 | long long _mbstateL; |
---|
202 | } __mbstate_t; |
---|
203 | |
---|
204 | typedef __mbstate_t __darwin_mbstate_t; |
---|
205 | |
---|
206 | |
---|
207 | typedef long int __darwin_ptrdiff_t; |
---|
208 | |
---|
209 | |
---|
210 | |
---|
211 | |
---|
212 | |
---|
213 | typedef long unsigned int __darwin_size_t; |
---|
214 | |
---|
215 | |
---|
216 | |
---|
217 | |
---|
218 | |
---|
219 | typedef __builtin_va_list __darwin_va_list; |
---|
220 | |
---|
221 | |
---|
222 | |
---|
223 | |
---|
224 | |
---|
225 | typedef int __darwin_wchar_t; |
---|
226 | |
---|
227 | |
---|
228 | |
---|
229 | |
---|
230 | typedef __darwin_wchar_t __darwin_rune_t; |
---|
231 | |
---|
232 | |
---|
233 | typedef int __darwin_wint_t; |
---|
234 | |
---|
235 | |
---|
236 | |
---|
237 | |
---|
238 | typedef unsigned long __darwin_clock_t; |
---|
239 | typedef __uint32_t __darwin_socklen_t; |
---|
240 | typedef long __darwin_ssize_t; |
---|
241 | typedef long __darwin_time_t; |
---|
242 | # 33 "/usr/include/machine/_types.h" 2 3 4 |
---|
243 | # 34 "/usr/include/sys/_types.h" 2 3 4 |
---|
244 | # 58 "/usr/include/sys/_types.h" 3 4 |
---|
245 | struct __darwin_pthread_handler_rec |
---|
246 | { |
---|
247 | void (*__routine)(void *); |
---|
248 | void *__arg; |
---|
249 | struct __darwin_pthread_handler_rec *__next; |
---|
250 | }; |
---|
251 | struct _opaque_pthread_attr_t { long __sig; char __opaque[56]; }; |
---|
252 | struct _opaque_pthread_cond_t { long __sig; char __opaque[40]; }; |
---|
253 | struct _opaque_pthread_condattr_t { long __sig; char __opaque[8]; }; |
---|
254 | struct _opaque_pthread_mutex_t { long __sig; char __opaque[56]; }; |
---|
255 | struct _opaque_pthread_mutexattr_t { long __sig; char __opaque[8]; }; |
---|
256 | struct _opaque_pthread_once_t { long __sig; char __opaque[8]; }; |
---|
257 | struct _opaque_pthread_rwlock_t { long __sig; char __opaque[192]; }; |
---|
258 | struct _opaque_pthread_rwlockattr_t { long __sig; char __opaque[16]; }; |
---|
259 | struct _opaque_pthread_t { long __sig; struct __darwin_pthread_handler_rec *__cleanup_stack; char __opaque[1168]; }; |
---|
260 | # 94 "/usr/include/sys/_types.h" 3 4 |
---|
261 | typedef __int64_t __darwin_blkcnt_t; |
---|
262 | typedef __int32_t __darwin_blksize_t; |
---|
263 | typedef __int32_t __darwin_dev_t; |
---|
264 | typedef unsigned int __darwin_fsblkcnt_t; |
---|
265 | typedef unsigned int __darwin_fsfilcnt_t; |
---|
266 | typedef __uint32_t __darwin_gid_t; |
---|
267 | typedef __uint32_t __darwin_id_t; |
---|
268 | typedef __uint64_t __darwin_ino64_t; |
---|
269 | |
---|
270 | typedef __darwin_ino64_t __darwin_ino_t; |
---|
271 | |
---|
272 | |
---|
273 | |
---|
274 | typedef __darwin_natural_t __darwin_mach_port_name_t; |
---|
275 | typedef __darwin_mach_port_name_t __darwin_mach_port_t; |
---|
276 | typedef __uint16_t __darwin_mode_t; |
---|
277 | typedef __int64_t __darwin_off_t; |
---|
278 | typedef __int32_t __darwin_pid_t; |
---|
279 | typedef struct _opaque_pthread_attr_t |
---|
280 | __darwin_pthread_attr_t; |
---|
281 | typedef struct _opaque_pthread_cond_t |
---|
282 | __darwin_pthread_cond_t; |
---|
283 | typedef struct _opaque_pthread_condattr_t |
---|
284 | __darwin_pthread_condattr_t; |
---|
285 | typedef unsigned long __darwin_pthread_key_t; |
---|
286 | typedef struct _opaque_pthread_mutex_t |
---|
287 | __darwin_pthread_mutex_t; |
---|
288 | typedef struct _opaque_pthread_mutexattr_t |
---|
289 | __darwin_pthread_mutexattr_t; |
---|
290 | typedef struct _opaque_pthread_once_t |
---|
291 | __darwin_pthread_once_t; |
---|
292 | typedef struct _opaque_pthread_rwlock_t |
---|
293 | __darwin_pthread_rwlock_t; |
---|
294 | typedef struct _opaque_pthread_rwlockattr_t |
---|
295 | __darwin_pthread_rwlockattr_t; |
---|
296 | typedef struct _opaque_pthread_t |
---|
297 | *__darwin_pthread_t; |
---|
298 | typedef __uint32_t __darwin_sigset_t; |
---|
299 | typedef __int32_t __darwin_suseconds_t; |
---|
300 | typedef __uint32_t __darwin_uid_t; |
---|
301 | typedef __uint32_t __darwin_useconds_t; |
---|
302 | typedef unsigned char __darwin_uuid_t[16]; |
---|
303 | typedef char __darwin_uuid_string_t[37]; |
---|
304 | # 28 "/usr/include/_types.h" 2 3 4 |
---|
305 | # 39 "/usr/include/_types.h" 3 4 |
---|
306 | typedef int __darwin_nl_item; |
---|
307 | typedef int __darwin_wctrans_t; |
---|
308 | |
---|
309 | typedef __uint32_t __darwin_wctype_t; |
---|
310 | # 64 "/usr/include/stdlib.h" 2 3 4 |
---|
311 | |
---|
312 | # 1 "/usr/include/sys/wait.h" 1 3 4 |
---|
313 | # 79 "/usr/include/sys/wait.h" 3 4 |
---|
314 | typedef enum { |
---|
315 | P_ALL, |
---|
316 | P_PID, |
---|
317 | P_PGID |
---|
318 | } idtype_t; |
---|
319 | |
---|
320 | |
---|
321 | |
---|
322 | |
---|
323 | |
---|
324 | |
---|
325 | typedef __darwin_pid_t pid_t; |
---|
326 | |
---|
327 | |
---|
328 | |
---|
329 | |
---|
330 | typedef __darwin_id_t id_t; |
---|
331 | # 116 "/usr/include/sys/wait.h" 3 4 |
---|
332 | # 1 "/usr/include/sys/signal.h" 1 3 4 |
---|
333 | # 73 "/usr/include/sys/signal.h" 3 4 |
---|
334 | # 1 "/usr/include/sys/appleapiopts.h" 1 3 4 |
---|
335 | # 74 "/usr/include/sys/signal.h" 2 3 4 |
---|
336 | |
---|
337 | |
---|
338 | |
---|
339 | |
---|
340 | |
---|
341 | |
---|
342 | |
---|
343 | # 1 "/usr/include/machine/signal.h" 1 3 4 |
---|
344 | # 32 "/usr/include/machine/signal.h" 3 4 |
---|
345 | # 1 "/usr/include/i386/signal.h" 1 3 4 |
---|
346 | # 39 "/usr/include/i386/signal.h" 3 4 |
---|
347 | typedef int sig_atomic_t; |
---|
348 | # 55 "/usr/include/i386/signal.h" 3 4 |
---|
349 | # 1 "/usr/include/i386/_structs.h" 1 3 4 |
---|
350 | # 56 "/usr/include/i386/signal.h" 2 3 4 |
---|
351 | # 33 "/usr/include/machine/signal.h" 2 3 4 |
---|
352 | # 82 "/usr/include/sys/signal.h" 2 3 4 |
---|
353 | # 148 "/usr/include/sys/signal.h" 3 4 |
---|
354 | # 1 "/usr/include/sys/_structs.h" 1 3 4 |
---|
355 | # 57 "/usr/include/sys/_structs.h" 3 4 |
---|
356 | # 1 "/usr/include/machine/_structs.h" 1 3 4 |
---|
357 | # 29 "/usr/include/machine/_structs.h" 3 4 |
---|
358 | # 1 "/usr/include/i386/_structs.h" 1 3 4 |
---|
359 | # 38 "/usr/include/i386/_structs.h" 3 4 |
---|
360 | # 1 "/usr/include/mach/i386/_structs.h" 1 3 4 |
---|
361 | # 43 "/usr/include/mach/i386/_structs.h" 3 4 |
---|
362 | struct __darwin_i386_thread_state |
---|
363 | { |
---|
364 | unsigned int __eax; |
---|
365 | unsigned int __ebx; |
---|
366 | unsigned int __ecx; |
---|
367 | unsigned int __edx; |
---|
368 | unsigned int __edi; |
---|
369 | unsigned int __esi; |
---|
370 | unsigned int __ebp; |
---|
371 | unsigned int __esp; |
---|
372 | unsigned int __ss; |
---|
373 | unsigned int __eflags; |
---|
374 | unsigned int __eip; |
---|
375 | unsigned int __cs; |
---|
376 | unsigned int __ds; |
---|
377 | unsigned int __es; |
---|
378 | unsigned int __fs; |
---|
379 | unsigned int __gs; |
---|
380 | }; |
---|
381 | # 89 "/usr/include/mach/i386/_structs.h" 3 4 |
---|
382 | struct __darwin_fp_control |
---|
383 | { |
---|
384 | unsigned short __invalid :1, |
---|
385 | __denorm :1, |
---|
386 | __zdiv :1, |
---|
387 | __ovrfl :1, |
---|
388 | __undfl :1, |
---|
389 | __precis :1, |
---|
390 | :2, |
---|
391 | __pc :2, |
---|
392 | |
---|
393 | |
---|
394 | |
---|
395 | |
---|
396 | |
---|
397 | __rc :2, |
---|
398 | |
---|
399 | |
---|
400 | |
---|
401 | |
---|
402 | |
---|
403 | |
---|
404 | :1, |
---|
405 | :3; |
---|
406 | }; |
---|
407 | typedef struct __darwin_fp_control __darwin_fp_control_t; |
---|
408 | # 147 "/usr/include/mach/i386/_structs.h" 3 4 |
---|
409 | struct __darwin_fp_status |
---|
410 | { |
---|
411 | unsigned short __invalid :1, |
---|
412 | __denorm :1, |
---|
413 | __zdiv :1, |
---|
414 | __ovrfl :1, |
---|
415 | __undfl :1, |
---|
416 | __precis :1, |
---|
417 | __stkflt :1, |
---|
418 | __errsumm :1, |
---|
419 | __c0 :1, |
---|
420 | __c1 :1, |
---|
421 | __c2 :1, |
---|
422 | __tos :3, |
---|
423 | __c3 :1, |
---|
424 | __busy :1; |
---|
425 | }; |
---|
426 | typedef struct __darwin_fp_status __darwin_fp_status_t; |
---|
427 | # 191 "/usr/include/mach/i386/_structs.h" 3 4 |
---|
428 | struct __darwin_mmst_reg |
---|
429 | { |
---|
430 | char __mmst_reg[10]; |
---|
431 | char __mmst_rsrv[6]; |
---|
432 | }; |
---|
433 | # 210 "/usr/include/mach/i386/_structs.h" 3 4 |
---|
434 | struct __darwin_xmm_reg |
---|
435 | { |
---|
436 | char __xmm_reg[16]; |
---|
437 | }; |
---|
438 | # 232 "/usr/include/mach/i386/_structs.h" 3 4 |
---|
439 | struct __darwin_i386_float_state |
---|
440 | { |
---|
441 | int __fpu_reserved[2]; |
---|
442 | struct __darwin_fp_control __fpu_fcw; |
---|
443 | struct __darwin_fp_status __fpu_fsw; |
---|
444 | __uint8_t __fpu_ftw; |
---|
445 | __uint8_t __fpu_rsrv1; |
---|
446 | __uint16_t __fpu_fop; |
---|
447 | __uint32_t __fpu_ip; |
---|
448 | __uint16_t __fpu_cs; |
---|
449 | __uint16_t __fpu_rsrv2; |
---|
450 | __uint32_t __fpu_dp; |
---|
451 | __uint16_t __fpu_ds; |
---|
452 | __uint16_t __fpu_rsrv3; |
---|
453 | __uint32_t __fpu_mxcsr; |
---|
454 | __uint32_t __fpu_mxcsrmask; |
---|
455 | struct __darwin_mmst_reg __fpu_stmm0; |
---|
456 | struct __darwin_mmst_reg __fpu_stmm1; |
---|
457 | struct __darwin_mmst_reg __fpu_stmm2; |
---|
458 | struct __darwin_mmst_reg __fpu_stmm3; |
---|
459 | struct __darwin_mmst_reg __fpu_stmm4; |
---|
460 | struct __darwin_mmst_reg __fpu_stmm5; |
---|
461 | struct __darwin_mmst_reg __fpu_stmm6; |
---|
462 | struct __darwin_mmst_reg __fpu_stmm7; |
---|
463 | struct __darwin_xmm_reg __fpu_xmm0; |
---|
464 | struct __darwin_xmm_reg __fpu_xmm1; |
---|
465 | struct __darwin_xmm_reg __fpu_xmm2; |
---|
466 | struct __darwin_xmm_reg __fpu_xmm3; |
---|
467 | struct __darwin_xmm_reg __fpu_xmm4; |
---|
468 | struct __darwin_xmm_reg __fpu_xmm5; |
---|
469 | struct __darwin_xmm_reg __fpu_xmm6; |
---|
470 | struct __darwin_xmm_reg __fpu_xmm7; |
---|
471 | char __fpu_rsrv4[14*16]; |
---|
472 | int __fpu_reserved1; |
---|
473 | }; |
---|
474 | |
---|
475 | |
---|
476 | struct __darwin_i386_avx_state |
---|
477 | { |
---|
478 | int __fpu_reserved[2]; |
---|
479 | struct __darwin_fp_control __fpu_fcw; |
---|
480 | struct __darwin_fp_status __fpu_fsw; |
---|
481 | __uint8_t __fpu_ftw; |
---|
482 | __uint8_t __fpu_rsrv1; |
---|
483 | __uint16_t __fpu_fop; |
---|
484 | __uint32_t __fpu_ip; |
---|
485 | __uint16_t __fpu_cs; |
---|
486 | __uint16_t __fpu_rsrv2; |
---|
487 | __uint32_t __fpu_dp; |
---|
488 | __uint16_t __fpu_ds; |
---|
489 | __uint16_t __fpu_rsrv3; |
---|
490 | __uint32_t __fpu_mxcsr; |
---|
491 | __uint32_t __fpu_mxcsrmask; |
---|
492 | struct __darwin_mmst_reg __fpu_stmm0; |
---|
493 | struct __darwin_mmst_reg __fpu_stmm1; |
---|
494 | struct __darwin_mmst_reg __fpu_stmm2; |
---|
495 | struct __darwin_mmst_reg __fpu_stmm3; |
---|
496 | struct __darwin_mmst_reg __fpu_stmm4; |
---|
497 | struct __darwin_mmst_reg __fpu_stmm5; |
---|
498 | struct __darwin_mmst_reg __fpu_stmm6; |
---|
499 | struct __darwin_mmst_reg __fpu_stmm7; |
---|
500 | struct __darwin_xmm_reg __fpu_xmm0; |
---|
501 | struct __darwin_xmm_reg __fpu_xmm1; |
---|
502 | struct __darwin_xmm_reg __fpu_xmm2; |
---|
503 | struct __darwin_xmm_reg __fpu_xmm3; |
---|
504 | struct __darwin_xmm_reg __fpu_xmm4; |
---|
505 | struct __darwin_xmm_reg __fpu_xmm5; |
---|
506 | struct __darwin_xmm_reg __fpu_xmm6; |
---|
507 | struct __darwin_xmm_reg __fpu_xmm7; |
---|
508 | char __fpu_rsrv4[14*16]; |
---|
509 | int __fpu_reserved1; |
---|
510 | char __avx_reserved1[64]; |
---|
511 | struct __darwin_xmm_reg __fpu_ymmh0; |
---|
512 | struct __darwin_xmm_reg __fpu_ymmh1; |
---|
513 | struct __darwin_xmm_reg __fpu_ymmh2; |
---|
514 | struct __darwin_xmm_reg __fpu_ymmh3; |
---|
515 | struct __darwin_xmm_reg __fpu_ymmh4; |
---|
516 | struct __darwin_xmm_reg __fpu_ymmh5; |
---|
517 | struct __darwin_xmm_reg __fpu_ymmh6; |
---|
518 | struct __darwin_xmm_reg __fpu_ymmh7; |
---|
519 | }; |
---|
520 | # 402 "/usr/include/mach/i386/_structs.h" 3 4 |
---|
521 | struct __darwin_i386_exception_state |
---|
522 | { |
---|
523 | __uint16_t __trapno; |
---|
524 | __uint16_t __cpu; |
---|
525 | __uint32_t __err; |
---|
526 | __uint32_t __faultvaddr; |
---|
527 | }; |
---|
528 | # 422 "/usr/include/mach/i386/_structs.h" 3 4 |
---|
529 | struct __darwin_x86_debug_state32 |
---|
530 | { |
---|
531 | unsigned int __dr0; |
---|
532 | unsigned int __dr1; |
---|
533 | unsigned int __dr2; |
---|
534 | unsigned int __dr3; |
---|
535 | unsigned int __dr4; |
---|
536 | unsigned int __dr5; |
---|
537 | unsigned int __dr6; |
---|
538 | unsigned int __dr7; |
---|
539 | }; |
---|
540 | # 454 "/usr/include/mach/i386/_structs.h" 3 4 |
---|
541 | struct __darwin_x86_thread_state64 |
---|
542 | { |
---|
543 | __uint64_t __rax; |
---|
544 | __uint64_t __rbx; |
---|
545 | __uint64_t __rcx; |
---|
546 | __uint64_t __rdx; |
---|
547 | __uint64_t __rdi; |
---|
548 | __uint64_t __rsi; |
---|
549 | __uint64_t __rbp; |
---|
550 | __uint64_t __rsp; |
---|
551 | __uint64_t __r8; |
---|
552 | __uint64_t __r9; |
---|
553 | __uint64_t __r10; |
---|
554 | __uint64_t __r11; |
---|
555 | __uint64_t __r12; |
---|
556 | __uint64_t __r13; |
---|
557 | __uint64_t __r14; |
---|
558 | __uint64_t __r15; |
---|
559 | __uint64_t __rip; |
---|
560 | __uint64_t __rflags; |
---|
561 | __uint64_t __cs; |
---|
562 | __uint64_t __fs; |
---|
563 | __uint64_t __gs; |
---|
564 | }; |
---|
565 | # 509 "/usr/include/mach/i386/_structs.h" 3 4 |
---|
566 | struct __darwin_x86_float_state64 |
---|
567 | { |
---|
568 | int __fpu_reserved[2]; |
---|
569 | struct __darwin_fp_control __fpu_fcw; |
---|
570 | struct __darwin_fp_status __fpu_fsw; |
---|
571 | __uint8_t __fpu_ftw; |
---|
572 | __uint8_t __fpu_rsrv1; |
---|
573 | __uint16_t __fpu_fop; |
---|
574 | |
---|
575 | |
---|
576 | __uint32_t __fpu_ip; |
---|
577 | __uint16_t __fpu_cs; |
---|
578 | |
---|
579 | __uint16_t __fpu_rsrv2; |
---|
580 | |
---|
581 | |
---|
582 | __uint32_t __fpu_dp; |
---|
583 | __uint16_t __fpu_ds; |
---|
584 | |
---|
585 | __uint16_t __fpu_rsrv3; |
---|
586 | __uint32_t __fpu_mxcsr; |
---|
587 | __uint32_t __fpu_mxcsrmask; |
---|
588 | struct __darwin_mmst_reg __fpu_stmm0; |
---|
589 | struct __darwin_mmst_reg __fpu_stmm1; |
---|
590 | struct __darwin_mmst_reg __fpu_stmm2; |
---|
591 | struct __darwin_mmst_reg __fpu_stmm3; |
---|
592 | struct __darwin_mmst_reg __fpu_stmm4; |
---|
593 | struct __darwin_mmst_reg __fpu_stmm5; |
---|
594 | struct __darwin_mmst_reg __fpu_stmm6; |
---|
595 | struct __darwin_mmst_reg __fpu_stmm7; |
---|
596 | struct __darwin_xmm_reg __fpu_xmm0; |
---|
597 | struct __darwin_xmm_reg __fpu_xmm1; |
---|
598 | struct __darwin_xmm_reg __fpu_xmm2; |
---|
599 | struct __darwin_xmm_reg __fpu_xmm3; |
---|
600 | struct __darwin_xmm_reg __fpu_xmm4; |
---|
601 | struct __darwin_xmm_reg __fpu_xmm5; |
---|
602 | struct __darwin_xmm_reg __fpu_xmm6; |
---|
603 | struct __darwin_xmm_reg __fpu_xmm7; |
---|
604 | struct __darwin_xmm_reg __fpu_xmm8; |
---|
605 | struct __darwin_xmm_reg __fpu_xmm9; |
---|
606 | struct __darwin_xmm_reg __fpu_xmm10; |
---|
607 | struct __darwin_xmm_reg __fpu_xmm11; |
---|
608 | struct __darwin_xmm_reg __fpu_xmm12; |
---|
609 | struct __darwin_xmm_reg __fpu_xmm13; |
---|
610 | struct __darwin_xmm_reg __fpu_xmm14; |
---|
611 | struct __darwin_xmm_reg __fpu_xmm15; |
---|
612 | char __fpu_rsrv4[6*16]; |
---|
613 | int __fpu_reserved1; |
---|
614 | }; |
---|
615 | |
---|
616 | |
---|
617 | struct __darwin_x86_avx_state64 |
---|
618 | { |
---|
619 | int __fpu_reserved[2]; |
---|
620 | struct __darwin_fp_control __fpu_fcw; |
---|
621 | struct __darwin_fp_status __fpu_fsw; |
---|
622 | __uint8_t __fpu_ftw; |
---|
623 | __uint8_t __fpu_rsrv1; |
---|
624 | __uint16_t __fpu_fop; |
---|
625 | |
---|
626 | |
---|
627 | __uint32_t __fpu_ip; |
---|
628 | __uint16_t __fpu_cs; |
---|
629 | |
---|
630 | __uint16_t __fpu_rsrv2; |
---|
631 | |
---|
632 | |
---|
633 | __uint32_t __fpu_dp; |
---|
634 | __uint16_t __fpu_ds; |
---|
635 | |
---|
636 | __uint16_t __fpu_rsrv3; |
---|
637 | __uint32_t __fpu_mxcsr; |
---|
638 | __uint32_t __fpu_mxcsrmask; |
---|
639 | struct __darwin_mmst_reg __fpu_stmm0; |
---|
640 | struct __darwin_mmst_reg __fpu_stmm1; |
---|
641 | struct __darwin_mmst_reg __fpu_stmm2; |
---|
642 | struct __darwin_mmst_reg __fpu_stmm3; |
---|
643 | struct __darwin_mmst_reg __fpu_stmm4; |
---|
644 | struct __darwin_mmst_reg __fpu_stmm5; |
---|
645 | struct __darwin_mmst_reg __fpu_stmm6; |
---|
646 | struct __darwin_mmst_reg __fpu_stmm7; |
---|
647 | struct __darwin_xmm_reg __fpu_xmm0; |
---|
648 | struct __darwin_xmm_reg __fpu_xmm1; |
---|
649 | struct __darwin_xmm_reg __fpu_xmm2; |
---|
650 | struct __darwin_xmm_reg __fpu_xmm3; |
---|
651 | struct __darwin_xmm_reg __fpu_xmm4; |
---|
652 | struct __darwin_xmm_reg __fpu_xmm5; |
---|
653 | struct __darwin_xmm_reg __fpu_xmm6; |
---|
654 | struct __darwin_xmm_reg __fpu_xmm7; |
---|
655 | struct __darwin_xmm_reg __fpu_xmm8; |
---|
656 | struct __darwin_xmm_reg __fpu_xmm9; |
---|
657 | struct __darwin_xmm_reg __fpu_xmm10; |
---|
658 | struct __darwin_xmm_reg __fpu_xmm11; |
---|
659 | struct __darwin_xmm_reg __fpu_xmm12; |
---|
660 | struct __darwin_xmm_reg __fpu_xmm13; |
---|
661 | struct __darwin_xmm_reg __fpu_xmm14; |
---|
662 | struct __darwin_xmm_reg __fpu_xmm15; |
---|
663 | char __fpu_rsrv4[6*16]; |
---|
664 | int __fpu_reserved1; |
---|
665 | char __avx_reserved1[64]; |
---|
666 | struct __darwin_xmm_reg __fpu_ymmh0; |
---|
667 | struct __darwin_xmm_reg __fpu_ymmh1; |
---|
668 | struct __darwin_xmm_reg __fpu_ymmh2; |
---|
669 | struct __darwin_xmm_reg __fpu_ymmh3; |
---|
670 | struct __darwin_xmm_reg __fpu_ymmh4; |
---|
671 | struct __darwin_xmm_reg __fpu_ymmh5; |
---|
672 | struct __darwin_xmm_reg __fpu_ymmh6; |
---|
673 | struct __darwin_xmm_reg __fpu_ymmh7; |
---|
674 | struct __darwin_xmm_reg __fpu_ymmh8; |
---|
675 | struct __darwin_xmm_reg __fpu_ymmh9; |
---|
676 | struct __darwin_xmm_reg __fpu_ymmh10; |
---|
677 | struct __darwin_xmm_reg __fpu_ymmh11; |
---|
678 | struct __darwin_xmm_reg __fpu_ymmh12; |
---|
679 | struct __darwin_xmm_reg __fpu_ymmh13; |
---|
680 | struct __darwin_xmm_reg __fpu_ymmh14; |
---|
681 | struct __darwin_xmm_reg __fpu_ymmh15; |
---|
682 | }; |
---|
683 | # 751 "/usr/include/mach/i386/_structs.h" 3 4 |
---|
684 | struct __darwin_x86_exception_state64 |
---|
685 | { |
---|
686 | __uint16_t __trapno; |
---|
687 | __uint16_t __cpu; |
---|
688 | __uint32_t __err; |
---|
689 | __uint64_t __faultvaddr; |
---|
690 | }; |
---|
691 | # 771 "/usr/include/mach/i386/_structs.h" 3 4 |
---|
692 | struct __darwin_x86_debug_state64 |
---|
693 | { |
---|
694 | __uint64_t __dr0; |
---|
695 | __uint64_t __dr1; |
---|
696 | __uint64_t __dr2; |
---|
697 | __uint64_t __dr3; |
---|
698 | __uint64_t __dr4; |
---|
699 | __uint64_t __dr5; |
---|
700 | __uint64_t __dr6; |
---|
701 | __uint64_t __dr7; |
---|
702 | }; |
---|
703 | # 39 "/usr/include/i386/_structs.h" 2 3 4 |
---|
704 | # 48 "/usr/include/i386/_structs.h" 3 4 |
---|
705 | struct __darwin_mcontext32 |
---|
706 | { |
---|
707 | struct __darwin_i386_exception_state __es; |
---|
708 | struct __darwin_i386_thread_state __ss; |
---|
709 | struct __darwin_i386_float_state __fs; |
---|
710 | }; |
---|
711 | |
---|
712 | |
---|
713 | struct __darwin_mcontext_avx32 |
---|
714 | { |
---|
715 | struct __darwin_i386_exception_state __es; |
---|
716 | struct __darwin_i386_thread_state __ss; |
---|
717 | struct __darwin_i386_avx_state __fs; |
---|
718 | }; |
---|
719 | # 86 "/usr/include/i386/_structs.h" 3 4 |
---|
720 | struct __darwin_mcontext64 |
---|
721 | { |
---|
722 | struct __darwin_x86_exception_state64 __es; |
---|
723 | struct __darwin_x86_thread_state64 __ss; |
---|
724 | struct __darwin_x86_float_state64 __fs; |
---|
725 | }; |
---|
726 | |
---|
727 | |
---|
728 | struct __darwin_mcontext_avx64 |
---|
729 | { |
---|
730 | struct __darwin_x86_exception_state64 __es; |
---|
731 | struct __darwin_x86_thread_state64 __ss; |
---|
732 | struct __darwin_x86_avx_state64 __fs; |
---|
733 | }; |
---|
734 | # 127 "/usr/include/i386/_structs.h" 3 4 |
---|
735 | typedef struct __darwin_mcontext64 *mcontext_t; |
---|
736 | # 30 "/usr/include/machine/_structs.h" 2 3 4 |
---|
737 | # 58 "/usr/include/sys/_structs.h" 2 3 4 |
---|
738 | # 75 "/usr/include/sys/_structs.h" 3 4 |
---|
739 | struct __darwin_sigaltstack |
---|
740 | { |
---|
741 | void *ss_sp; |
---|
742 | __darwin_size_t ss_size; |
---|
743 | int ss_flags; |
---|
744 | }; |
---|
745 | # 128 "/usr/include/sys/_structs.h" 3 4 |
---|
746 | struct __darwin_ucontext |
---|
747 | { |
---|
748 | int uc_onstack; |
---|
749 | __darwin_sigset_t uc_sigmask; |
---|
750 | struct __darwin_sigaltstack uc_stack; |
---|
751 | struct __darwin_ucontext *uc_link; |
---|
752 | __darwin_size_t uc_mcsize; |
---|
753 | struct __darwin_mcontext64 *uc_mcontext; |
---|
754 | |
---|
755 | |
---|
756 | |
---|
757 | }; |
---|
758 | # 218 "/usr/include/sys/_structs.h" 3 4 |
---|
759 | typedef struct __darwin_sigaltstack stack_t; |
---|
760 | # 227 "/usr/include/sys/_structs.h" 3 4 |
---|
761 | typedef struct __darwin_ucontext ucontext_t; |
---|
762 | # 149 "/usr/include/sys/signal.h" 2 3 4 |
---|
763 | |
---|
764 | |
---|
765 | |
---|
766 | |
---|
767 | |
---|
768 | |
---|
769 | |
---|
770 | |
---|
771 | typedef __darwin_pthread_attr_t pthread_attr_t; |
---|
772 | |
---|
773 | |
---|
774 | |
---|
775 | |
---|
776 | typedef __darwin_sigset_t sigset_t; |
---|
777 | |
---|
778 | |
---|
779 | |
---|
780 | |
---|
781 | typedef __darwin_size_t size_t; |
---|
782 | |
---|
783 | |
---|
784 | |
---|
785 | |
---|
786 | typedef __darwin_uid_t uid_t; |
---|
787 | |
---|
788 | |
---|
789 | union sigval { |
---|
790 | |
---|
791 | int sival_int; |
---|
792 | void *sival_ptr; |
---|
793 | }; |
---|
794 | |
---|
795 | |
---|
796 | |
---|
797 | |
---|
798 | |
---|
799 | struct sigevent { |
---|
800 | int sigev_notify; |
---|
801 | int sigev_signo; |
---|
802 | union sigval sigev_value; |
---|
803 | void (*sigev_notify_function)(union sigval); |
---|
804 | pthread_attr_t *sigev_notify_attributes; |
---|
805 | }; |
---|
806 | |
---|
807 | |
---|
808 | typedef struct __siginfo { |
---|
809 | int si_signo; |
---|
810 | int si_errno; |
---|
811 | int si_code; |
---|
812 | pid_t si_pid; |
---|
813 | uid_t si_uid; |
---|
814 | int si_status; |
---|
815 | void *si_addr; |
---|
816 | union sigval si_value; |
---|
817 | long si_band; |
---|
818 | unsigned long __pad[7]; |
---|
819 | } siginfo_t; |
---|
820 | # 286 "/usr/include/sys/signal.h" 3 4 |
---|
821 | union __sigaction_u { |
---|
822 | void (*__sa_handler)(int); |
---|
823 | void (*__sa_sigaction)(int, struct __siginfo *, |
---|
824 | void *); |
---|
825 | }; |
---|
826 | |
---|
827 | |
---|
828 | struct __sigaction { |
---|
829 | union __sigaction_u __sigaction_u; |
---|
830 | void (*sa_tramp)(void *, int, int, siginfo_t *, void *); |
---|
831 | sigset_t sa_mask; |
---|
832 | int sa_flags; |
---|
833 | }; |
---|
834 | |
---|
835 | |
---|
836 | |
---|
837 | |
---|
838 | struct sigaction { |
---|
839 | union __sigaction_u __sigaction_u; |
---|
840 | sigset_t sa_mask; |
---|
841 | int sa_flags; |
---|
842 | }; |
---|
843 | # 348 "/usr/include/sys/signal.h" 3 4 |
---|
844 | typedef void (*sig_t)(int); |
---|
845 | # 365 "/usr/include/sys/signal.h" 3 4 |
---|
846 | struct sigvec { |
---|
847 | void (*sv_handler)(int); |
---|
848 | int sv_mask; |
---|
849 | int sv_flags; |
---|
850 | }; |
---|
851 | # 384 "/usr/include/sys/signal.h" 3 4 |
---|
852 | struct sigstack { |
---|
853 | char *ss_sp; |
---|
854 | int ss_onstack; |
---|
855 | }; |
---|
856 | # 407 "/usr/include/sys/signal.h" 3 4 |
---|
857 | void (*signal(int, void (*)(int)))(int); |
---|
858 | # 117 "/usr/include/sys/wait.h" 2 3 4 |
---|
859 | # 1 "/usr/include/sys/resource.h" 1 3 4 |
---|
860 | # 77 "/usr/include/sys/resource.h" 3 4 |
---|
861 | # 1 "/usr/include/sys/_structs.h" 1 3 4 |
---|
862 | # 100 "/usr/include/sys/_structs.h" 3 4 |
---|
863 | struct timeval |
---|
864 | { |
---|
865 | __darwin_time_t tv_sec; |
---|
866 | __darwin_suseconds_t tv_usec; |
---|
867 | }; |
---|
868 | # 78 "/usr/include/sys/resource.h" 2 3 4 |
---|
869 | # 89 "/usr/include/sys/resource.h" 3 4 |
---|
870 | typedef __uint64_t rlim_t; |
---|
871 | # 151 "/usr/include/sys/resource.h" 3 4 |
---|
872 | struct rusage { |
---|
873 | struct timeval ru_utime; |
---|
874 | struct timeval ru_stime; |
---|
875 | # 162 "/usr/include/sys/resource.h" 3 4 |
---|
876 | long ru_maxrss; |
---|
877 | |
---|
878 | long ru_ixrss; |
---|
879 | long ru_idrss; |
---|
880 | long ru_isrss; |
---|
881 | long ru_minflt; |
---|
882 | long ru_majflt; |
---|
883 | long ru_nswap; |
---|
884 | long ru_inblock; |
---|
885 | long ru_oublock; |
---|
886 | long ru_msgsnd; |
---|
887 | long ru_msgrcv; |
---|
888 | long ru_nsignals; |
---|
889 | long ru_nvcsw; |
---|
890 | long ru_nivcsw; |
---|
891 | |
---|
892 | |
---|
893 | }; |
---|
894 | # 222 "/usr/include/sys/resource.h" 3 4 |
---|
895 | struct rlimit { |
---|
896 | rlim_t rlim_cur; |
---|
897 | rlim_t rlim_max; |
---|
898 | }; |
---|
899 | # 245 "/usr/include/sys/resource.h" 3 4 |
---|
900 | int getpriority(int, id_t); |
---|
901 | |
---|
902 | int getiopolicy_np(int, int) __attribute__((visibility("default"))); |
---|
903 | |
---|
904 | int getrlimit(int, struct rlimit *) __asm("_" "getrlimit" ); |
---|
905 | int getrusage(int, struct rusage *); |
---|
906 | int setpriority(int, id_t, int); |
---|
907 | |
---|
908 | int setiopolicy_np(int, int, int) __attribute__((visibility("default"))); |
---|
909 | |
---|
910 | int setrlimit(int, const struct rlimit *) __asm("_" "setrlimit" ); |
---|
911 | # 118 "/usr/include/sys/wait.h" 2 3 4 |
---|
912 | # 193 "/usr/include/sys/wait.h" 3 4 |
---|
913 | # 1 "/usr/include/machine/endian.h" 1 3 4 |
---|
914 | # 35 "/usr/include/machine/endian.h" 3 4 |
---|
915 | # 1 "/usr/include/i386/endian.h" 1 3 4 |
---|
916 | # 99 "/usr/include/i386/endian.h" 3 4 |
---|
917 | # 1 "/usr/include/sys/_endian.h" 1 3 4 |
---|
918 | # 124 "/usr/include/sys/_endian.h" 3 4 |
---|
919 | # 1 "/usr/include/libkern/_OSByteOrder.h" 1 3 4 |
---|
920 | # 66 "/usr/include/libkern/_OSByteOrder.h" 3 4 |
---|
921 | # 1 "/usr/include/libkern/i386/_OSByteOrder.h" 1 3 4 |
---|
922 | # 44 "/usr/include/libkern/i386/_OSByteOrder.h" 3 4 |
---|
923 | static __inline__ |
---|
924 | __uint16_t |
---|
925 | _OSSwapInt16( |
---|
926 | __uint16_t _data |
---|
927 | ) |
---|
928 | { |
---|
929 | return ((_data << 8) | (_data >> 8)); |
---|
930 | } |
---|
931 | |
---|
932 | static __inline__ |
---|
933 | __uint32_t |
---|
934 | _OSSwapInt32( |
---|
935 | __uint32_t _data |
---|
936 | ) |
---|
937 | { |
---|
938 | |
---|
939 | return __builtin_bswap32(_data); |
---|
940 | |
---|
941 | |
---|
942 | |
---|
943 | |
---|
944 | } |
---|
945 | |
---|
946 | |
---|
947 | static __inline__ |
---|
948 | __uint64_t |
---|
949 | _OSSwapInt64( |
---|
950 | __uint64_t _data |
---|
951 | ) |
---|
952 | { |
---|
953 | return __builtin_bswap64(_data); |
---|
954 | } |
---|
955 | # 67 "/usr/include/libkern/_OSByteOrder.h" 2 3 4 |
---|
956 | # 125 "/usr/include/sys/_endian.h" 2 3 4 |
---|
957 | # 100 "/usr/include/i386/endian.h" 2 3 4 |
---|
958 | # 36 "/usr/include/machine/endian.h" 2 3 4 |
---|
959 | # 194 "/usr/include/sys/wait.h" 2 3 4 |
---|
960 | |
---|
961 | |
---|
962 | |
---|
963 | |
---|
964 | |
---|
965 | |
---|
966 | |
---|
967 | union wait { |
---|
968 | int w_status; |
---|
969 | |
---|
970 | |
---|
971 | |
---|
972 | struct { |
---|
973 | |
---|
974 | unsigned int w_Termsig:7, |
---|
975 | w_Coredump:1, |
---|
976 | w_Retcode:8, |
---|
977 | w_Filler:16; |
---|
978 | |
---|
979 | |
---|
980 | |
---|
981 | |
---|
982 | |
---|
983 | |
---|
984 | |
---|
985 | } w_T; |
---|
986 | |
---|
987 | |
---|
988 | |
---|
989 | |
---|
990 | |
---|
991 | struct { |
---|
992 | |
---|
993 | unsigned int w_Stopval:8, |
---|
994 | w_Stopsig:8, |
---|
995 | w_Filler:16; |
---|
996 | |
---|
997 | |
---|
998 | |
---|
999 | |
---|
1000 | |
---|
1001 | |
---|
1002 | } w_S; |
---|
1003 | }; |
---|
1004 | # 255 "/usr/include/sys/wait.h" 3 4 |
---|
1005 | pid_t wait(int *) __asm("_" "wait" ); |
---|
1006 | pid_t waitpid(pid_t, int *, int) __asm("_" "waitpid" ); |
---|
1007 | |
---|
1008 | int waitid(idtype_t, id_t, siginfo_t *, int) __asm("_" "waitid" ); |
---|
1009 | |
---|
1010 | |
---|
1011 | pid_t wait3(int *, int, struct rusage *); |
---|
1012 | pid_t wait4(pid_t, int *, int, struct rusage *); |
---|
1013 | # 66 "/usr/include/stdlib.h" 2 3 4 |
---|
1014 | |
---|
1015 | # 1 "/usr/include/alloca.h" 1 3 4 |
---|
1016 | # 36 "/usr/include/alloca.h" 3 4 |
---|
1017 | void *alloca(size_t); |
---|
1018 | # 68 "/usr/include/stdlib.h" 2 3 4 |
---|
1019 | # 81 "/usr/include/stdlib.h" 3 4 |
---|
1020 | typedef __darwin_ct_rune_t ct_rune_t; |
---|
1021 | |
---|
1022 | |
---|
1023 | |
---|
1024 | |
---|
1025 | typedef __darwin_rune_t rune_t; |
---|
1026 | |
---|
1027 | |
---|
1028 | |
---|
1029 | |
---|
1030 | |
---|
1031 | |
---|
1032 | typedef __darwin_wchar_t wchar_t; |
---|
1033 | |
---|
1034 | |
---|
1035 | |
---|
1036 | typedef struct { |
---|
1037 | int quot; |
---|
1038 | int rem; |
---|
1039 | } div_t; |
---|
1040 | |
---|
1041 | typedef struct { |
---|
1042 | long quot; |
---|
1043 | long rem; |
---|
1044 | } ldiv_t; |
---|
1045 | |
---|
1046 | |
---|
1047 | typedef struct { |
---|
1048 | long long quot; |
---|
1049 | long long rem; |
---|
1050 | } lldiv_t; |
---|
1051 | # 134 "/usr/include/stdlib.h" 3 4 |
---|
1052 | extern int __mb_cur_max; |
---|
1053 | # 145 "/usr/include/stdlib.h" 3 4 |
---|
1054 | void abort(void) __attribute__((__noreturn__)); |
---|
1055 | int abs(int) __attribute__((__const__)); |
---|
1056 | int atexit(void (*)(void)); |
---|
1057 | double atof(const char *); |
---|
1058 | int atoi(const char *); |
---|
1059 | long atol(const char *); |
---|
1060 | |
---|
1061 | long long |
---|
1062 | atoll(const char *); |
---|
1063 | |
---|
1064 | void *bsearch(const void *, const void *, size_t, |
---|
1065 | size_t, int (*)(const void *, const void *)); |
---|
1066 | void *calloc(size_t, size_t); |
---|
1067 | div_t div(int, int) __attribute__((__const__)); |
---|
1068 | void exit(int) __attribute__((__noreturn__)); |
---|
1069 | void free(void *); |
---|
1070 | char *getenv(const char *); |
---|
1071 | long labs(long) __attribute__((__const__)); |
---|
1072 | ldiv_t ldiv(long, long) __attribute__((__const__)); |
---|
1073 | |
---|
1074 | long long |
---|
1075 | llabs(long long); |
---|
1076 | lldiv_t lldiv(long long, long long); |
---|
1077 | |
---|
1078 | void *malloc(size_t); |
---|
1079 | int mblen(const char *, size_t); |
---|
1080 | size_t mbstowcs(wchar_t * , const char * , size_t); |
---|
1081 | int mbtowc(wchar_t * , const char * , size_t); |
---|
1082 | int posix_memalign(void **, size_t, size_t) __attribute__((visibility("default"))); |
---|
1083 | void qsort(void *, size_t, size_t, |
---|
1084 | int (*)(const void *, const void *)); |
---|
1085 | int rand(void); |
---|
1086 | void *realloc(void *, size_t); |
---|
1087 | void srand(unsigned); |
---|
1088 | double strtod(const char *, char **) __asm("_" "strtod" ); |
---|
1089 | float strtof(const char *, char **) __asm("_" "strtof" ); |
---|
1090 | long strtol(const char *, char **, int); |
---|
1091 | long double |
---|
1092 | strtold(const char *, char **) ; |
---|
1093 | |
---|
1094 | long long |
---|
1095 | strtoll(const char *, char **, int); |
---|
1096 | |
---|
1097 | unsigned long |
---|
1098 | strtoul(const char *, char **, int); |
---|
1099 | |
---|
1100 | unsigned long long |
---|
1101 | strtoull(const char *, char **, int); |
---|
1102 | |
---|
1103 | int system(const char *) __asm("_" "system" ); |
---|
1104 | size_t wcstombs(char * , const wchar_t * , size_t); |
---|
1105 | int wctomb(char *, wchar_t); |
---|
1106 | |
---|
1107 | |
---|
1108 | void _Exit(int) __attribute__((__noreturn__)); |
---|
1109 | long a64l(const char *); |
---|
1110 | double drand48(void); |
---|
1111 | char *ecvt(double, int, int *, int *); |
---|
1112 | double erand48(unsigned short[3]); |
---|
1113 | char *fcvt(double, int, int *, int *); |
---|
1114 | char *gcvt(double, int, char *); |
---|
1115 | int getsubopt(char **, char * const *, char **); |
---|
1116 | int grantpt(int); |
---|
1117 | |
---|
1118 | char *initstate(unsigned, char *, size_t); |
---|
1119 | |
---|
1120 | |
---|
1121 | |
---|
1122 | long jrand48(unsigned short[3]); |
---|
1123 | char *l64a(long); |
---|
1124 | void lcong48(unsigned short[7]); |
---|
1125 | long lrand48(void); |
---|
1126 | char *mktemp(char *); |
---|
1127 | int mkstemp(char *); |
---|
1128 | long mrand48(void); |
---|
1129 | long nrand48(unsigned short[3]); |
---|
1130 | int posix_openpt(int); |
---|
1131 | char *ptsname(int); |
---|
1132 | int putenv(char *) __asm("_" "putenv" ); |
---|
1133 | long random(void); |
---|
1134 | int rand_r(unsigned *); |
---|
1135 | |
---|
1136 | char *realpath(const char * , char * ) __asm("_" "realpath" "$DARWIN_EXTSN"); |
---|
1137 | |
---|
1138 | |
---|
1139 | |
---|
1140 | unsigned short |
---|
1141 | *seed48(unsigned short[3]); |
---|
1142 | int setenv(const char *, const char *, int) __asm("_" "setenv" ); |
---|
1143 | |
---|
1144 | void setkey(const char *) __asm("_" "setkey" ); |
---|
1145 | |
---|
1146 | |
---|
1147 | |
---|
1148 | char *setstate(const char *); |
---|
1149 | void srand48(long); |
---|
1150 | |
---|
1151 | void srandom(unsigned); |
---|
1152 | |
---|
1153 | |
---|
1154 | |
---|
1155 | int unlockpt(int); |
---|
1156 | |
---|
1157 | int unsetenv(const char *) __asm("_" "unsetenv" ); |
---|
1158 | |
---|
1159 | |
---|
1160 | |
---|
1161 | |
---|
1162 | |
---|
1163 | |
---|
1164 | |
---|
1165 | # 1 "/usr/include/machine/types.h" 1 3 4 |
---|
1166 | # 35 "/usr/include/machine/types.h" 3 4 |
---|
1167 | # 1 "/usr/include/i386/types.h" 1 3 4 |
---|
1168 | # 80 "/usr/include/i386/types.h" 3 4 |
---|
1169 | typedef unsigned char u_int8_t; |
---|
1170 | |
---|
1171 | |
---|
1172 | |
---|
1173 | |
---|
1174 | typedef unsigned short u_int16_t; |
---|
1175 | |
---|
1176 | |
---|
1177 | |
---|
1178 | |
---|
1179 | typedef unsigned int u_int32_t; |
---|
1180 | |
---|
1181 | |
---|
1182 | |
---|
1183 | |
---|
1184 | typedef unsigned long long u_int64_t; |
---|
1185 | |
---|
1186 | |
---|
1187 | typedef int64_t register_t; |
---|
1188 | # 114 "/usr/include/i386/types.h" 3 4 |
---|
1189 | typedef u_int64_t user_addr_t; |
---|
1190 | typedef u_int64_t user_size_t; |
---|
1191 | typedef int64_t user_ssize_t; |
---|
1192 | typedef int64_t user_long_t; |
---|
1193 | typedef u_int64_t user_ulong_t; |
---|
1194 | typedef int64_t user_time_t; |
---|
1195 | typedef int64_t user_off_t; |
---|
1196 | |
---|
1197 | |
---|
1198 | |
---|
1199 | |
---|
1200 | |
---|
1201 | |
---|
1202 | |
---|
1203 | typedef u_int64_t syscall_arg_t; |
---|
1204 | # 36 "/usr/include/machine/types.h" 2 3 4 |
---|
1205 | # 256 "/usr/include/stdlib.h" 2 3 4 |
---|
1206 | |
---|
1207 | |
---|
1208 | typedef __darwin_dev_t dev_t; |
---|
1209 | |
---|
1210 | |
---|
1211 | |
---|
1212 | |
---|
1213 | typedef __darwin_mode_t mode_t; |
---|
1214 | |
---|
1215 | |
---|
1216 | |
---|
1217 | u_int32_t |
---|
1218 | arc4random(void); |
---|
1219 | void arc4random_addrandom(unsigned char * , int ); |
---|
1220 | void arc4random_buf(void * , size_t ) __attribute__((visibility("default"))); |
---|
1221 | void arc4random_stir(void); |
---|
1222 | u_int32_t |
---|
1223 | arc4random_uniform(u_int32_t ) __attribute__((visibility("default"))); |
---|
1224 | |
---|
1225 | int atexit_b(void (^)(void)) __attribute__((visibility("default"))); |
---|
1226 | void *bsearch_b(const void *, const void *, size_t, |
---|
1227 | size_t, int (^)(const void *, const void *)) __attribute__((visibility("default"))); |
---|
1228 | |
---|
1229 | |
---|
1230 | |
---|
1231 | char *cgetcap(char *, const char *, int); |
---|
1232 | int cgetclose(void); |
---|
1233 | int cgetent(char **, char **, const char *); |
---|
1234 | int cgetfirst(char **, char **); |
---|
1235 | int cgetmatch(const char *, const char *); |
---|
1236 | int cgetnext(char **, char **); |
---|
1237 | int cgetnum(char *, const char *, long *); |
---|
1238 | int cgetset(const char *); |
---|
1239 | int cgetstr(char *, const char *, char **); |
---|
1240 | int cgetustr(char *, const char *, char **); |
---|
1241 | |
---|
1242 | int daemon(int, int) __asm("_" "daemon" "$1050") __attribute__((deprecated,visibility("default"))); |
---|
1243 | char *devname(dev_t, mode_t); |
---|
1244 | char *devname_r(dev_t, mode_t, char *buf, int len); |
---|
1245 | char *getbsize(int *, long *); |
---|
1246 | int getloadavg(double [], int); |
---|
1247 | const char |
---|
1248 | *getprogname(void); |
---|
1249 | |
---|
1250 | int heapsort(void *, size_t, size_t, |
---|
1251 | int (*)(const void *, const void *)); |
---|
1252 | |
---|
1253 | int heapsort_b(void *, size_t, size_t, |
---|
1254 | int (^)(const void *, const void *)) __attribute__((visibility("default"))); |
---|
1255 | |
---|
1256 | int mergesort(void *, size_t, size_t, |
---|
1257 | int (*)(const void *, const void *)); |
---|
1258 | |
---|
1259 | int mergesort_b(void *, size_t, size_t, |
---|
1260 | int (^)(const void *, const void *)) __attribute__((visibility("default"))); |
---|
1261 | |
---|
1262 | void psort(void *, size_t, size_t, |
---|
1263 | int (*)(const void *, const void *)) __attribute__((visibility("default"))); |
---|
1264 | |
---|
1265 | void psort_b(void *, size_t, size_t, |
---|
1266 | int (^)(const void *, const void *)) __attribute__((visibility("default"))); |
---|
1267 | |
---|
1268 | void psort_r(void *, size_t, size_t, void *, |
---|
1269 | int (*)(void *, const void *, const void *)) __attribute__((visibility("default"))); |
---|
1270 | |
---|
1271 | void qsort_b(void *, size_t, size_t, |
---|
1272 | int (^)(const void *, const void *)) __attribute__((visibility("default"))); |
---|
1273 | |
---|
1274 | void qsort_r(void *, size_t, size_t, void *, |
---|
1275 | int (*)(void *, const void *, const void *)); |
---|
1276 | int radixsort(const unsigned char **, int, const unsigned char *, |
---|
1277 | unsigned); |
---|
1278 | void setprogname(const char *); |
---|
1279 | int sradixsort(const unsigned char **, int, const unsigned char *, |
---|
1280 | unsigned); |
---|
1281 | void sranddev(void); |
---|
1282 | void srandomdev(void); |
---|
1283 | void *reallocf(void *, size_t); |
---|
1284 | |
---|
1285 | long long |
---|
1286 | strtoq(const char *, char **, int); |
---|
1287 | unsigned long long |
---|
1288 | strtouq(const char *, char **, int); |
---|
1289 | |
---|
1290 | extern char *suboptarg; |
---|
1291 | void *valloc(size_t); |
---|
1292 | # 39 "cpu.c" 2 |
---|
1293 | # 1 "/usr/include/memory.h" 1 3 4 |
---|
1294 | # 36 "/usr/include/memory.h" 3 4 |
---|
1295 | # 1 "/usr/include/string.h" 1 3 4 |
---|
1296 | # 80 "/usr/include/string.h" 3 4 |
---|
1297 | void *memchr(const void *, int, size_t); |
---|
1298 | int memcmp(const void *, const void *, size_t); |
---|
1299 | void *memcpy(void *, const void *, size_t); |
---|
1300 | void *memmove(void *, const void *, size_t); |
---|
1301 | void *memset(void *, int, size_t); |
---|
1302 | char *strcat(char *, const char *); |
---|
1303 | char *strchr(const char *, int); |
---|
1304 | int strcmp(const char *, const char *); |
---|
1305 | int strcoll(const char *, const char *); |
---|
1306 | char *strcpy(char *, const char *); |
---|
1307 | size_t strcspn(const char *, const char *); |
---|
1308 | char *strerror(int) __asm("_" "strerror" ); |
---|
1309 | size_t strlen(const char *); |
---|
1310 | char *strncat(char *, const char *, size_t); |
---|
1311 | int strncmp(const char *, const char *, size_t); |
---|
1312 | char *strncpy(char *, const char *, size_t); |
---|
1313 | char *strpbrk(const char *, const char *); |
---|
1314 | char *strrchr(const char *, int); |
---|
1315 | size_t strspn(const char *, const char *); |
---|
1316 | char *strstr(const char *, const char *); |
---|
1317 | char *strtok(char *, const char *); |
---|
1318 | size_t strxfrm(char *, const char *, size_t); |
---|
1319 | # 114 "/usr/include/string.h" 3 4 |
---|
1320 | char *strtok_r(char *, const char *, char **); |
---|
1321 | # 126 "/usr/include/string.h" 3 4 |
---|
1322 | int strerror_r(int, char *, size_t); |
---|
1323 | char *strdup(const char *); |
---|
1324 | void *memccpy(void *, const void *, int, size_t); |
---|
1325 | # 140 "/usr/include/string.h" 3 4 |
---|
1326 | char *stpcpy(char *, const char *); |
---|
1327 | char *stpncpy(char *, const char *, size_t) __attribute__((visibility("default"))); |
---|
1328 | char *strndup(const char *, size_t) __attribute__((visibility("default"))); |
---|
1329 | size_t strnlen(const char *, size_t) __attribute__((visibility("default"))); |
---|
1330 | char *strsignal(int sig); |
---|
1331 | # 155 "/usr/include/string.h" 3 4 |
---|
1332 | typedef __darwin_ssize_t ssize_t; |
---|
1333 | |
---|
1334 | |
---|
1335 | |
---|
1336 | void *memmem(const void *, size_t, const void *, size_t) __attribute__((visibility("default"))); |
---|
1337 | void memset_pattern4(void *, const void *, size_t) __attribute__((visibility("default"))); |
---|
1338 | void memset_pattern8(void *, const void *, size_t) __attribute__((visibility("default"))); |
---|
1339 | void memset_pattern16(void *, const void *, size_t) __attribute__((visibility("default"))); |
---|
1340 | |
---|
1341 | char *strcasestr(const char *, const char *); |
---|
1342 | char *strnstr(const char *, const char *, size_t); |
---|
1343 | size_t strlcat(char *, const char *, size_t); |
---|
1344 | size_t strlcpy(char *, const char *, size_t); |
---|
1345 | void strmode(int, char *); |
---|
1346 | char *strsep(char **, const char *); |
---|
1347 | |
---|
1348 | |
---|
1349 | void swab(const void * , void * , ssize_t); |
---|
1350 | |
---|
1351 | |
---|
1352 | |
---|
1353 | |
---|
1354 | |
---|
1355 | |
---|
1356 | |
---|
1357 | |
---|
1358 | # 1 "/usr/include/strings.h" 1 3 4 |
---|
1359 | # 74 "/usr/include/strings.h" 3 4 |
---|
1360 | int bcmp(const void *, const void *, size_t) ; |
---|
1361 | void bcopy(const void *, void *, size_t) ; |
---|
1362 | void bzero(void *, size_t) ; |
---|
1363 | char *index(const char *, int) ; |
---|
1364 | char *rindex(const char *, int) ; |
---|
1365 | |
---|
1366 | |
---|
1367 | int ffs(int); |
---|
1368 | int strcasecmp(const char *, const char *); |
---|
1369 | int strncasecmp(const char *, const char *, size_t); |
---|
1370 | |
---|
1371 | |
---|
1372 | |
---|
1373 | |
---|
1374 | |
---|
1375 | int ffsl(long) __attribute__((visibility("default"))); |
---|
1376 | int fls(int) __attribute__((visibility("default"))); |
---|
1377 | int flsl(long) __attribute__((visibility("default"))); |
---|
1378 | |
---|
1379 | |
---|
1380 | |
---|
1381 | # 1 "/usr/include/string.h" 1 3 4 |
---|
1382 | # 95 "/usr/include/strings.h" 2 3 4 |
---|
1383 | # 181 "/usr/include/string.h" 2 3 4 |
---|
1384 | # 190 "/usr/include/string.h" 3 4 |
---|
1385 | # 1 "/usr/include/secure/_string.h" 1 3 4 |
---|
1386 | # 32 "/usr/include/secure/_string.h" 3 4 |
---|
1387 | # 1 "/usr/include/secure/_common.h" 1 3 4 |
---|
1388 | # 33 "/usr/include/secure/_string.h" 2 3 4 |
---|
1389 | # 58 "/usr/include/secure/_string.h" 3 4 |
---|
1390 | static __inline void * |
---|
1391 | __inline_memcpy_chk (void *__dest, const void *__src, size_t __len) |
---|
1392 | { |
---|
1393 | return __builtin___memcpy_chk (__dest, __src, __len, __builtin_object_size (__dest, 0)); |
---|
1394 | } |
---|
1395 | |
---|
1396 | |
---|
1397 | |
---|
1398 | |
---|
1399 | |
---|
1400 | |
---|
1401 | static __inline void * |
---|
1402 | __inline_memmove_chk (void *__dest, const void *__src, size_t __len) |
---|
1403 | { |
---|
1404 | return __builtin___memmove_chk (__dest, __src, __len, __builtin_object_size (__dest, 0)); |
---|
1405 | } |
---|
1406 | |
---|
1407 | |
---|
1408 | |
---|
1409 | |
---|
1410 | |
---|
1411 | |
---|
1412 | static __inline void * |
---|
1413 | __inline_memset_chk (void *__dest, int __val, size_t __len) |
---|
1414 | { |
---|
1415 | return __builtin___memset_chk (__dest, __val, __len, __builtin_object_size (__dest, 0)); |
---|
1416 | } |
---|
1417 | |
---|
1418 | |
---|
1419 | |
---|
1420 | |
---|
1421 | |
---|
1422 | |
---|
1423 | static __inline char * |
---|
1424 | __inline_strcpy_chk (char * __dest, const char * __src) |
---|
1425 | { |
---|
1426 | return __builtin___strcpy_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1)); |
---|
1427 | } |
---|
1428 | |
---|
1429 | |
---|
1430 | |
---|
1431 | |
---|
1432 | |
---|
1433 | |
---|
1434 | |
---|
1435 | static __inline char * |
---|
1436 | __inline_stpcpy_chk (char *__dest, const char *__src) |
---|
1437 | { |
---|
1438 | return __builtin___stpcpy_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1)); |
---|
1439 | } |
---|
1440 | |
---|
1441 | |
---|
1442 | |
---|
1443 | |
---|
1444 | |
---|
1445 | |
---|
1446 | static __inline char * |
---|
1447 | __inline_stpncpy_chk (char * __dest, const char * __src, |
---|
1448 | size_t __len) |
---|
1449 | { |
---|
1450 | return __builtin___stpncpy_chk (__dest, __src, __len, __builtin_object_size (__dest, 2 > 1)); |
---|
1451 | } |
---|
1452 | |
---|
1453 | |
---|
1454 | |
---|
1455 | |
---|
1456 | |
---|
1457 | |
---|
1458 | |
---|
1459 | static __inline char * |
---|
1460 | __inline_strncpy_chk (char * __dest, const char * __src, |
---|
1461 | size_t __len) |
---|
1462 | { |
---|
1463 | return __builtin___strncpy_chk (__dest, __src, __len, __builtin_object_size (__dest, 2 > 1)); |
---|
1464 | } |
---|
1465 | |
---|
1466 | |
---|
1467 | |
---|
1468 | |
---|
1469 | |
---|
1470 | |
---|
1471 | static __inline char * |
---|
1472 | __inline_strcat_chk (char * __dest, const char * __src) |
---|
1473 | { |
---|
1474 | return __builtin___strcat_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1)); |
---|
1475 | } |
---|
1476 | |
---|
1477 | |
---|
1478 | |
---|
1479 | |
---|
1480 | |
---|
1481 | |
---|
1482 | |
---|
1483 | static __inline char * |
---|
1484 | __inline_strncat_chk (char * __dest, const char * __src, |
---|
1485 | size_t __len) |
---|
1486 | { |
---|
1487 | return __builtin___strncat_chk (__dest, __src, __len, __builtin_object_size (__dest, 2 > 1)); |
---|
1488 | } |
---|
1489 | # 191 "/usr/include/string.h" 2 3 4 |
---|
1490 | # 37 "/usr/include/memory.h" 2 3 4 |
---|
1491 | # 40 "cpu.c" 2 |
---|
1492 | # 66 "cpu.c" |
---|
1493 | static void disable_avx(FLAC__CPUInfo *info) |
---|
1494 | { |
---|
1495 | info->x86.avx = 0; |
---|
1496 | info->x86.avx2 = 0; |
---|
1497 | info->x86.fma = 0; |
---|
1498 | } |
---|
1499 | # 99 "cpu.c" |
---|
1500 | static const unsigned FLAC__CPUINFO_IA32_CPUID_SSE3 = 0x00000001; |
---|
1501 | static const unsigned FLAC__CPUINFO_IA32_CPUID_SSSE3 = 0x00000200; |
---|
1502 | static const unsigned FLAC__CPUINFO_IA32_CPUID_SSE41 = 0x00080000; |
---|
1503 | static const unsigned FLAC__CPUINFO_IA32_CPUID_SSE42 = 0x00100000; |
---|
1504 | # 143 "cpu.c" |
---|
1505 | void FLAC__cpu_info(FLAC__CPUInfo *info) |
---|
1506 | { |
---|
1507 | # 341 "cpu.c" |
---|
1508 | FLAC__bool x86_osxsave = 0; |
---|
1509 | (void) x86_osxsave; |
---|
1510 | ((__builtin_object_size (info, 0) != (size_t) -1) ? __builtin___memset_chk (info, 0, sizeof(*info), __builtin_object_size (info, 0)) : __inline_memset_chk (info, 0, sizeof(*info))); |
---|
1511 | info->type = FLAC__CPUINFO_TYPE_X86_64; |
---|
1512 | # 390 "cpu.c" |
---|
1513 | info->use_asm = 0; |
---|
1514 | # 400 "cpu.c" |
---|
1515 | } |
---|
1516 | |
---|
1517 | |
---|
1518 | |
---|
1519 | |
---|
1520 | |
---|
1521 | |
---|
1522 | |
---|
1523 | # 1 "/usr/bin/../lib/clang/4.2/include/cpuid.h" 1 3 4 |
---|
1524 | # 28 "/usr/bin/../lib/clang/4.2/include/cpuid.h" 3 4 |
---|
1525 | static inline int __get_cpuid (unsigned int level, unsigned int *eax, |
---|
1526 | unsigned int *ebx, unsigned int *ecx, |
---|
1527 | unsigned int *edx) { |
---|
1528 | asm("cpuid" : "=a"(*eax), "=b" (*ebx), "=c"(*ecx), "=d"(*edx) : "0"(level)); |
---|
1529 | return 1; |
---|
1530 | } |
---|
1531 | # 408 "cpu.c" 2 |
---|
1532 | |
---|
1533 | |
---|
1534 | FLAC__uint32 FLAC__cpu_have_cpuid_x86(void) |
---|
1535 | { |
---|
1536 | |
---|
1537 | return 1; |
---|
1538 | # 443 "cpu.c" |
---|
1539 | } |
---|
1540 | |
---|
1541 | void FLAC__cpu_info_x86(FLAC__uint32 level, FLAC__uint32 *eax, FLAC__uint32 *ebx, FLAC__uint32 *ecx, FLAC__uint32 *edx) |
---|
1542 | { |
---|
1543 | # 462 "cpu.c" |
---|
1544 | FLAC__uint32 ext = level & 0x80000000; |
---|
1545 | __cpuid(ext, *eax, *ebx, *ecx, *edx); |
---|
1546 | if (*eax < level) { |
---|
1547 | *eax = *ebx = *ecx = *edx = 0; |
---|
1548 | return; |
---|
1549 | } |
---|
1550 | __cpuid_count(level, 0, *eax, *ebx, *ecx, *edx); |
---|
1551 | |
---|
1552 | |
---|
1553 | |
---|
1554 | } |
---|
1555 | |
---|
1556 | FLAC__uint32 FLAC__cpu_xgetbv_x86(void) |
---|
1557 | { |
---|
1558 | |
---|
1559 | |
---|
1560 | |
---|
1561 | FLAC__uint32 lo, hi; |
---|
1562 | asm volatile (".byte 0x0f, 0x01, 0xd0" : "=a"(lo), "=d"(hi) : "c" (0)); |
---|
1563 | return lo; |
---|
1564 | |
---|
1565 | |
---|
1566 | |
---|
1567 | } |
---|