2 /* autogenerated from gstaudiopack.orc */
9 #ifndef _ORC_INTEGER_TYPEDEFS_
10 #define _ORC_INTEGER_TYPEDEFS_
11 #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
13 typedef int8_t orc_int8;
14 typedef int16_t orc_int16;
15 typedef int32_t orc_int32;
16 typedef int64_t orc_int64;
17 typedef uint8_t orc_uint8;
18 typedef uint16_t orc_uint16;
19 typedef uint32_t orc_uint32;
20 typedef uint64_t orc_uint64;
21 #define ORC_UINT64_C(x) UINT64_C(x)
22 #elif defined(_MSC_VER)
23 typedef signed __int8 orc_int8;
24 typedef signed __int16 orc_int16;
25 typedef signed __int32 orc_int32;
26 typedef signed __int64 orc_int64;
27 typedef unsigned __int8 orc_uint8;
28 typedef unsigned __int16 orc_uint16;
29 typedef unsigned __int32 orc_uint32;
30 typedef unsigned __int64 orc_uint64;
31 #define ORC_UINT64_C(x) (x##Ui64)
32 #define inline __inline
35 typedef signed char orc_int8;
36 typedef short orc_int16;
37 typedef int orc_int32;
38 typedef unsigned char orc_uint8;
39 typedef unsigned short orc_uint16;
40 typedef unsigned int orc_uint32;
41 #if INT_MAX == LONG_MAX
42 typedef long long orc_int64;
43 typedef unsigned long long orc_uint64;
44 #define ORC_UINT64_C(x) (x##ULL)
46 typedef long orc_int64;
47 typedef unsigned long orc_uint64;
48 #define ORC_UINT64_C(x) (x##UL)
73 #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
74 #define ORC_RESTRICT restrict
75 #elif defined(__GNUC__) && __GNUC__ >= 4
76 #define ORC_RESTRICT __restrict__
83 #if defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)
84 #define ORC_INTERNAL __attribute__((visibility("hidden")))
85 #elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)
86 #define ORC_INTERNAL __hidden
87 #elif defined (__GNUC__)
88 #define ORC_INTERNAL __attribute__((visibility("hidden")))
98 void audio_orc_unpack_u8 (gint32 * ORC_RESTRICT d1,
99 const guint8 * ORC_RESTRICT s1, int n);
100 void audio_orc_unpack_s8 (gint32 * ORC_RESTRICT d1,
101 const guint8 * ORC_RESTRICT s1, int n);
102 void audio_orc_unpack_u16 (gint32 * ORC_RESTRICT d1,
103 const guint8 * ORC_RESTRICT s1, int n);
104 void audio_orc_unpack_s16 (gint32 * ORC_RESTRICT d1,
105 const guint8 * ORC_RESTRICT s1, int n);
106 void audio_orc_unpack_u16_swap (gint32 * ORC_RESTRICT d1,
107 const guint8 * ORC_RESTRICT s1, int n);
108 void audio_orc_unpack_s16_swap (gint32 * ORC_RESTRICT d1,
109 const guint8 * ORC_RESTRICT s1, int n);
110 void audio_orc_unpack_u24_32 (gint32 * ORC_RESTRICT d1,
111 const guint8 * ORC_RESTRICT s1, int n);
112 void audio_orc_unpack_s24_32 (gint32 * ORC_RESTRICT d1,
113 const guint8 * ORC_RESTRICT s1, int n);
114 void audio_orc_unpack_u24_32_swap (gint32 * ORC_RESTRICT d1,
115 const guint8 * ORC_RESTRICT s1, int n);
116 void audio_orc_unpack_s24_32_swap (gint32 * ORC_RESTRICT d1,
117 const guint8 * ORC_RESTRICT s1, int n);
118 void audio_orc_unpack_u32 (gint32 * ORC_RESTRICT d1,
119 const guint8 * ORC_RESTRICT s1, int n);
120 void audio_orc_unpack_u32_swap (gint32 * ORC_RESTRICT d1,
121 const guint8 * ORC_RESTRICT s1, int n);
122 void audio_orc_unpack_s32 (gint32 * ORC_RESTRICT d1,
123 const guint8 * ORC_RESTRICT s1, int n);
124 void audio_orc_unpack_s32_swap (gint32 * ORC_RESTRICT d1,
125 const guint8 * ORC_RESTRICT s1, int n);
126 void audio_orc_unpack_f32 (gdouble * ORC_RESTRICT d1,
127 const gfloat * ORC_RESTRICT s1, int n);
128 void audio_orc_unpack_f32_swap (gdouble * ORC_RESTRICT d1,
129 const gfloat * ORC_RESTRICT s1, int n);
130 void audio_orc_unpack_f64 (gdouble * ORC_RESTRICT d1,
131 const gdouble * ORC_RESTRICT s1, int n);
132 void audio_orc_unpack_f64_swap (gdouble * ORC_RESTRICT d1,
133 const gdouble * ORC_RESTRICT s1, int n);
134 void audio_orc_pack_u8 (guint8 * ORC_RESTRICT d1,
135 const gint32 * ORC_RESTRICT s1, int n);
136 void audio_orc_pack_s8 (guint8 * ORC_RESTRICT d1,
137 const gint32 * ORC_RESTRICT s1, int n);
138 void audio_orc_pack_u16 (guint8 * ORC_RESTRICT d1,
139 const gint32 * ORC_RESTRICT s1, int n);
140 void audio_orc_pack_s16 (guint8 * ORC_RESTRICT d1,
141 const gint32 * ORC_RESTRICT s1, int n);
142 void audio_orc_pack_u16_swap (guint8 * ORC_RESTRICT d1,
143 const gint32 * ORC_RESTRICT s1, int n);
144 void audio_orc_pack_s16_swap (guint8 * ORC_RESTRICT d1,
145 const gint32 * ORC_RESTRICT s1, int n);
146 void audio_orc_pack_u24_32 (guint8 * ORC_RESTRICT d1,
147 const gint32 * ORC_RESTRICT s1, int n);
148 void audio_orc_pack_s24_32 (guint8 * ORC_RESTRICT d1,
149 const gint32 * ORC_RESTRICT s1, int n);
150 void audio_orc_pack_u24_32_swap (guint8 * ORC_RESTRICT d1,
151 const gint32 * ORC_RESTRICT s1, int n);
152 void audio_orc_pack_s24_32_swap (guint8 * ORC_RESTRICT d1,
153 const gint32 * ORC_RESTRICT s1, int n);
154 void audio_orc_pack_u32 (guint8 * ORC_RESTRICT d1,
155 const gint32 * ORC_RESTRICT s1, int n);
156 void audio_orc_pack_s32 (guint8 * ORC_RESTRICT d1,
157 const gint32 * ORC_RESTRICT s1, int n);
158 void audio_orc_pack_u32_swap (guint8 * ORC_RESTRICT d1,
159 const gint32 * ORC_RESTRICT s1, int n);
160 void audio_orc_pack_s32_swap (guint8 * ORC_RESTRICT d1,
161 const gint32 * ORC_RESTRICT s1, int n);
162 void audio_orc_pack_f32 (gfloat * ORC_RESTRICT d1,
163 const gdouble * ORC_RESTRICT s1, int n);
164 void audio_orc_pack_f32_swap (gfloat * ORC_RESTRICT d1,
165 const gdouble * ORC_RESTRICT s1, int n);
166 void audio_orc_pack_f64 (gdouble * ORC_RESTRICT d1,
167 const gdouble * ORC_RESTRICT s1, int n);
168 void audio_orc_pack_f64_swap (gdouble * ORC_RESTRICT d1,
169 const gdouble * ORC_RESTRICT s1, int n);
172 /* begin Orc C target preamble */
173 #define ORC_CLAMP(x,a,b) ((x)<(a) ? (a) : ((x)>(b) ? (b) : (x)))
174 #define ORC_ABS(a) ((a)<0 ? -(a) : (a))
175 #define ORC_MIN(a,b) ((a)<(b) ? (a) : (b))
176 #define ORC_MAX(a,b) ((a)>(b) ? (a) : (b))
177 #define ORC_SB_MAX 127
178 #define ORC_SB_MIN (-1-ORC_SB_MAX)
179 #define ORC_UB_MAX 255
181 #define ORC_SW_MAX 32767
182 #define ORC_SW_MIN (-1-ORC_SW_MAX)
183 #define ORC_UW_MAX 65535
185 #define ORC_SL_MAX 2147483647
186 #define ORC_SL_MIN (-1-ORC_SL_MAX)
187 #define ORC_UL_MAX 4294967295U
189 #define ORC_CLAMP_SB(x) ORC_CLAMP(x,ORC_SB_MIN,ORC_SB_MAX)
190 #define ORC_CLAMP_UB(x) ORC_CLAMP(x,ORC_UB_MIN,ORC_UB_MAX)
191 #define ORC_CLAMP_SW(x) ORC_CLAMP(x,ORC_SW_MIN,ORC_SW_MAX)
192 #define ORC_CLAMP_UW(x) ORC_CLAMP(x,ORC_UW_MIN,ORC_UW_MAX)
193 #define ORC_CLAMP_SL(x) ORC_CLAMP(x,ORC_SL_MIN,ORC_SL_MAX)
194 #define ORC_CLAMP_UL(x) ORC_CLAMP(x,ORC_UL_MIN,ORC_UL_MAX)
195 #define ORC_SWAP_W(x) ((((x)&0xff)<<8) | (((x)&0xff00)>>8))
196 #define ORC_SWAP_L(x) ((((x)&0xff)<<24) | (((x)&0xff00)<<8) | (((x)&0xff0000)>>8) | (((x)&0xff000000)>>24))
197 #define ORC_SWAP_Q(x) ((((x)&ORC_UINT64_C(0xff))<<56) | (((x)&ORC_UINT64_C(0xff00))<<40) | (((x)&ORC_UINT64_C(0xff0000))<<24) | (((x)&ORC_UINT64_C(0xff000000))<<8) | (((x)&ORC_UINT64_C(0xff00000000))>>8) | (((x)&ORC_UINT64_C(0xff0000000000))>>24) | (((x)&ORC_UINT64_C(0xff000000000000))>>40) | (((x)&ORC_UINT64_C(0xff00000000000000))>>56))
198 #define ORC_PTR_OFFSET(ptr,offset) ((void *)(((unsigned char *)(ptr)) + (offset)))
199 #define ORC_DENORMAL(x) ((x) & ((((x)&0x7f800000) == 0) ? 0xff800000 : 0xffffffff))
200 #define ORC_ISNAN(x) ((((x)&0x7f800000) == 0x7f800000) && (((x)&0x007fffff) != 0))
201 #define ORC_DENORMAL_DOUBLE(x) ((x) & ((((x)&ORC_UINT64_C(0x7ff0000000000000)) == 0) ? ORC_UINT64_C(0xfff0000000000000) : ORC_UINT64_C(0xffffffffffffffff)))
202 #define ORC_ISNAN_DOUBLE(x) ((((x)&ORC_UINT64_C(0x7ff0000000000000)) == ORC_UINT64_C(0x7ff0000000000000)) && (((x)&ORC_UINT64_C(0x000fffffffffffff)) != 0))
204 #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
205 #define ORC_RESTRICT restrict
206 #elif defined(__GNUC__) && __GNUC__ >= 4
207 #define ORC_RESTRICT __restrict__
212 /* end Orc C target preamble */
216 /* audio_orc_unpack_u8 */
219 audio_orc_unpack_u8 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1,
223 orc_union32 *ORC_RESTRICT ptr0;
224 const orc_int8 *ORC_RESTRICT ptr4;
226 #if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
227 volatile orc_union32 var35;
236 ptr0 = (orc_union32 *) d1;
237 ptr4 = (orc_int8 *) s1;
240 var35.i = (int) 0x80000000; /* -2147483648 or 1.061e-314f */
242 for (i = 0; i < n; i++) {
246 var37.i = (orc_uint8) var34;
248 var38.i = (orc_uint16) var37.i;
250 var39.i = var38.i << 24;
252 var36.i = var39.i ^ var35.i;
261 _backup_audio_orc_unpack_u8 (OrcExecutor * ORC_RESTRICT ex)
265 orc_union32 *ORC_RESTRICT ptr0;
266 const orc_int8 *ORC_RESTRICT ptr4;
268 #if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
269 volatile orc_union32 var35;
278 ptr0 = (orc_union32 *) ex->arrays[0];
279 ptr4 = (orc_int8 *) ex->arrays[4];
282 var35.i = (int) 0x80000000; /* -2147483648 or 1.061e-314f */
284 for (i = 0; i < n; i++) {
288 var37.i = (orc_uint8) var34;
290 var38.i = (orc_uint16) var37.i;
292 var39.i = var38.i << 24;
294 var36.i = var39.i ^ var35.i;
302 audio_orc_unpack_u8 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1,
305 OrcExecutor _ex, *ex = &_ex;
306 static volatile int p_inited = 0;
307 static OrcCode *c = 0;
308 void (*func) (OrcExecutor *);
311 orc_once_mutex_lock ();
316 static const orc_uint8 bc[] = {
317 1, 9, 19, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 117, 110, 112,
318 97, 99, 107, 95, 117, 56, 11, 4, 4, 12, 1, 1, 14, 4, 0, 0,
319 0, 128, 14, 4, 24, 0, 0, 0, 20, 2, 20, 4, 150, 32, 4, 154,
320 33, 32, 124, 33, 33, 17, 132, 0, 33, 16, 2, 0,
322 p = orc_program_new_from_static_bytecode (bc);
323 orc_program_set_backup_function (p, _backup_audio_orc_unpack_u8);
325 p = orc_program_new ();
326 orc_program_set_name (p, "audio_orc_unpack_u8");
327 orc_program_set_backup_function (p, _backup_audio_orc_unpack_u8);
328 orc_program_add_destination (p, 4, "d1");
329 orc_program_add_source (p, 1, "s1");
330 orc_program_add_constant (p, 4, 0x80000000, "c1");
331 orc_program_add_constant (p, 4, 0x00000018, "c2");
332 orc_program_add_temporary (p, 2, "t1");
333 orc_program_add_temporary (p, 4, "t2");
335 orc_program_append_2 (p, "convubw", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
337 orc_program_append_2 (p, "convuwl", 0, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1,
339 orc_program_append_2 (p, "shll", 0, ORC_VAR_T2, ORC_VAR_T2, ORC_VAR_C2,
341 orc_program_append_2 (p, "xorl", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_C1,
345 orc_program_compile (p);
346 c = orc_program_take_code (p);
347 orc_program_free (p);
350 orc_once_mutex_unlock ();
352 ex->arrays[ORC_VAR_A2] = c;
356 ex->arrays[ORC_VAR_D1] = d1;
357 ex->arrays[ORC_VAR_S1] = (void *) s1;
365 /* audio_orc_unpack_s8 */
368 audio_orc_unpack_s8 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1,
372 orc_union32 *ORC_RESTRICT ptr0;
373 const orc_int8 *ORC_RESTRICT ptr4;
379 ptr0 = (orc_union32 *) d1;
380 ptr4 = (orc_int8 *) s1;
383 for (i = 0; i < n; i++) {
387 var36.i = (orc_uint8) var34;
389 var37.i = (orc_uint16) var36.i;
391 var35.i = var37.i << 24;
400 _backup_audio_orc_unpack_s8 (OrcExecutor * ORC_RESTRICT ex)
404 orc_union32 *ORC_RESTRICT ptr0;
405 const orc_int8 *ORC_RESTRICT ptr4;
411 ptr0 = (orc_union32 *) ex->arrays[0];
412 ptr4 = (orc_int8 *) ex->arrays[4];
415 for (i = 0; i < n; i++) {
419 var36.i = (orc_uint8) var34;
421 var37.i = (orc_uint16) var36.i;
423 var35.i = var37.i << 24;
431 audio_orc_unpack_s8 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1,
434 OrcExecutor _ex, *ex = &_ex;
435 static volatile int p_inited = 0;
436 static OrcCode *c = 0;
437 void (*func) (OrcExecutor *);
440 orc_once_mutex_lock ();
445 static const orc_uint8 bc[] = {
446 1, 9, 19, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 117, 110, 112,
447 97, 99, 107, 95, 115, 56, 11, 4, 4, 12, 1, 1, 14, 4, 24, 0,
448 0, 0, 20, 2, 20, 4, 150, 32, 4, 154, 33, 32, 124, 0, 33, 16,
451 p = orc_program_new_from_static_bytecode (bc);
452 orc_program_set_backup_function (p, _backup_audio_orc_unpack_s8);
454 p = orc_program_new ();
455 orc_program_set_name (p, "audio_orc_unpack_s8");
456 orc_program_set_backup_function (p, _backup_audio_orc_unpack_s8);
457 orc_program_add_destination (p, 4, "d1");
458 orc_program_add_source (p, 1, "s1");
459 orc_program_add_constant (p, 4, 0x00000018, "c1");
460 orc_program_add_temporary (p, 2, "t1");
461 orc_program_add_temporary (p, 4, "t2");
463 orc_program_append_2 (p, "convubw", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
465 orc_program_append_2 (p, "convuwl", 0, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1,
467 orc_program_append_2 (p, "shll", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_C1,
471 orc_program_compile (p);
472 c = orc_program_take_code (p);
473 orc_program_free (p);
476 orc_once_mutex_unlock ();
478 ex->arrays[ORC_VAR_A2] = c;
482 ex->arrays[ORC_VAR_D1] = d1;
483 ex->arrays[ORC_VAR_S1] = (void *) s1;
491 /* audio_orc_unpack_u16 */
494 audio_orc_unpack_u16 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1,
498 orc_union32 *ORC_RESTRICT ptr0;
499 const orc_union16 *ORC_RESTRICT ptr4;
501 #if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
502 volatile orc_union32 var34;
510 ptr0 = (orc_union32 *) d1;
511 ptr4 = (orc_union16 *) s1;
514 var34.i = (int) 0x80000000; /* -2147483648 or 1.061e-314f */
516 for (i = 0; i < n; i++) {
520 var36.i = (orc_uint16) var33.i;
522 var37.i = var36.i << 16;
524 var35.i = var37.i ^ var34.i;
533 _backup_audio_orc_unpack_u16 (OrcExecutor * ORC_RESTRICT ex)
537 orc_union32 *ORC_RESTRICT ptr0;
538 const orc_union16 *ORC_RESTRICT ptr4;
540 #if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
541 volatile orc_union32 var34;
549 ptr0 = (orc_union32 *) ex->arrays[0];
550 ptr4 = (orc_union16 *) ex->arrays[4];
553 var34.i = (int) 0x80000000; /* -2147483648 or 1.061e-314f */
555 for (i = 0; i < n; i++) {
559 var36.i = (orc_uint16) var33.i;
561 var37.i = var36.i << 16;
563 var35.i = var37.i ^ var34.i;
571 audio_orc_unpack_u16 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1,
574 OrcExecutor _ex, *ex = &_ex;
575 static volatile int p_inited = 0;
576 static OrcCode *c = 0;
577 void (*func) (OrcExecutor *);
580 orc_once_mutex_lock ();
585 static const orc_uint8 bc[] = {
586 1, 9, 20, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 117, 110, 112,
587 97, 99, 107, 95, 117, 49, 54, 11, 4, 4, 12, 2, 2, 14, 4, 16,
588 0, 0, 0, 14, 4, 0, 0, 0, 128, 20, 4, 154, 32, 4, 124, 32,
589 32, 16, 132, 0, 32, 17, 2, 0,
591 p = orc_program_new_from_static_bytecode (bc);
592 orc_program_set_backup_function (p, _backup_audio_orc_unpack_u16);
594 p = orc_program_new ();
595 orc_program_set_name (p, "audio_orc_unpack_u16");
596 orc_program_set_backup_function (p, _backup_audio_orc_unpack_u16);
597 orc_program_add_destination (p, 4, "d1");
598 orc_program_add_source (p, 2, "s1");
599 orc_program_add_constant (p, 4, 0x00000010, "c1");
600 orc_program_add_constant (p, 4, 0x80000000, "c2");
601 orc_program_add_temporary (p, 4, "t1");
603 orc_program_append_2 (p, "convuwl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
605 orc_program_append_2 (p, "shll", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_C1,
607 orc_program_append_2 (p, "xorl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_C2,
611 orc_program_compile (p);
612 c = orc_program_take_code (p);
613 orc_program_free (p);
616 orc_once_mutex_unlock ();
618 ex->arrays[ORC_VAR_A2] = c;
622 ex->arrays[ORC_VAR_D1] = d1;
623 ex->arrays[ORC_VAR_S1] = (void *) s1;
631 /* audio_orc_unpack_s16 */
634 audio_orc_unpack_s16 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1,
638 orc_union32 *ORC_RESTRICT ptr0;
639 const orc_union16 *ORC_RESTRICT ptr4;
644 ptr0 = (orc_union32 *) d1;
645 ptr4 = (orc_union16 *) s1;
648 for (i = 0; i < n; i++) {
652 var35.i = (orc_uint16) var33.i;
654 var34.i = var35.i << 16;
663 _backup_audio_orc_unpack_s16 (OrcExecutor * ORC_RESTRICT ex)
667 orc_union32 *ORC_RESTRICT ptr0;
668 const orc_union16 *ORC_RESTRICT ptr4;
673 ptr0 = (orc_union32 *) ex->arrays[0];
674 ptr4 = (orc_union16 *) ex->arrays[4];
677 for (i = 0; i < n; i++) {
681 var35.i = (orc_uint16) var33.i;
683 var34.i = var35.i << 16;
691 audio_orc_unpack_s16 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1,
694 OrcExecutor _ex, *ex = &_ex;
695 static volatile int p_inited = 0;
696 static OrcCode *c = 0;
697 void (*func) (OrcExecutor *);
700 orc_once_mutex_lock ();
705 static const orc_uint8 bc[] = {
706 1, 9, 20, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 117, 110, 112,
707 97, 99, 107, 95, 115, 49, 54, 11, 4, 4, 12, 2, 2, 14, 4, 16,
708 0, 0, 0, 20, 4, 154, 32, 4, 124, 0, 32, 16, 2, 0,
710 p = orc_program_new_from_static_bytecode (bc);
711 orc_program_set_backup_function (p, _backup_audio_orc_unpack_s16);
713 p = orc_program_new ();
714 orc_program_set_name (p, "audio_orc_unpack_s16");
715 orc_program_set_backup_function (p, _backup_audio_orc_unpack_s16);
716 orc_program_add_destination (p, 4, "d1");
717 orc_program_add_source (p, 2, "s1");
718 orc_program_add_constant (p, 4, 0x00000010, "c1");
719 orc_program_add_temporary (p, 4, "t1");
721 orc_program_append_2 (p, "convuwl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
723 orc_program_append_2 (p, "shll", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_C1,
727 orc_program_compile (p);
728 c = orc_program_take_code (p);
729 orc_program_free (p);
732 orc_once_mutex_unlock ();
734 ex->arrays[ORC_VAR_A2] = c;
738 ex->arrays[ORC_VAR_D1] = d1;
739 ex->arrays[ORC_VAR_S1] = (void *) s1;
747 /* audio_orc_unpack_u16_swap */
750 audio_orc_unpack_u16_swap (gint32 * ORC_RESTRICT d1,
751 const guint8 * ORC_RESTRICT s1, int n)
754 orc_union32 *ORC_RESTRICT ptr0;
755 const orc_union16 *ORC_RESTRICT ptr4;
757 #if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
758 volatile orc_union32 var35;
767 ptr0 = (orc_union32 *) d1;
768 ptr4 = (orc_union16 *) s1;
771 var35.i = (int) 0x80000000; /* -2147483648 or 1.061e-314f */
773 for (i = 0; i < n; i++) {
777 var37.i = ORC_SWAP_W (var34.i);
779 var38.i = (orc_uint16) var37.i;
781 var39.i = var38.i << 16;
783 var36.i = var39.i ^ var35.i;
792 _backup_audio_orc_unpack_u16_swap (OrcExecutor * ORC_RESTRICT ex)
796 orc_union32 *ORC_RESTRICT ptr0;
797 const orc_union16 *ORC_RESTRICT ptr4;
799 #if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
800 volatile orc_union32 var35;
809 ptr0 = (orc_union32 *) ex->arrays[0];
810 ptr4 = (orc_union16 *) ex->arrays[4];
813 var35.i = (int) 0x80000000; /* -2147483648 or 1.061e-314f */
815 for (i = 0; i < n; i++) {
819 var37.i = ORC_SWAP_W (var34.i);
821 var38.i = (orc_uint16) var37.i;
823 var39.i = var38.i << 16;
825 var36.i = var39.i ^ var35.i;
833 audio_orc_unpack_u16_swap (gint32 * ORC_RESTRICT d1,
834 const guint8 * ORC_RESTRICT s1, int n)
836 OrcExecutor _ex, *ex = &_ex;
837 static volatile int p_inited = 0;
838 static OrcCode *c = 0;
839 void (*func) (OrcExecutor *);
842 orc_once_mutex_lock ();
847 static const orc_uint8 bc[] = {
848 1, 9, 25, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 117, 110, 112,
849 97, 99, 107, 95, 117, 49, 54, 95, 115, 119, 97, 112, 11, 4, 4, 12,
850 2, 2, 14, 4, 16, 0, 0, 0, 14, 4, 0, 0, 0, 128, 20, 2,
851 20, 4, 183, 32, 4, 154, 33, 32, 124, 33, 33, 16, 132, 0, 33, 17,
854 p = orc_program_new_from_static_bytecode (bc);
855 orc_program_set_backup_function (p, _backup_audio_orc_unpack_u16_swap);
857 p = orc_program_new ();
858 orc_program_set_name (p, "audio_orc_unpack_u16_swap");
859 orc_program_set_backup_function (p, _backup_audio_orc_unpack_u16_swap);
860 orc_program_add_destination (p, 4, "d1");
861 orc_program_add_source (p, 2, "s1");
862 orc_program_add_constant (p, 4, 0x00000010, "c1");
863 orc_program_add_constant (p, 4, 0x80000000, "c2");
864 orc_program_add_temporary (p, 2, "t1");
865 orc_program_add_temporary (p, 4, "t2");
867 orc_program_append_2 (p, "swapw", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
869 orc_program_append_2 (p, "convuwl", 0, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1,
871 orc_program_append_2 (p, "shll", 0, ORC_VAR_T2, ORC_VAR_T2, ORC_VAR_C1,
873 orc_program_append_2 (p, "xorl", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_C2,
877 orc_program_compile (p);
878 c = orc_program_take_code (p);
879 orc_program_free (p);
882 orc_once_mutex_unlock ();
884 ex->arrays[ORC_VAR_A2] = c;
888 ex->arrays[ORC_VAR_D1] = d1;
889 ex->arrays[ORC_VAR_S1] = (void *) s1;
897 /* audio_orc_unpack_s16_swap */
900 audio_orc_unpack_s16_swap (gint32 * ORC_RESTRICT d1,
901 const guint8 * ORC_RESTRICT s1, int n)
904 orc_union32 *ORC_RESTRICT ptr0;
905 const orc_union16 *ORC_RESTRICT ptr4;
911 ptr0 = (orc_union32 *) d1;
912 ptr4 = (orc_union16 *) s1;
915 for (i = 0; i < n; i++) {
919 var36.i = ORC_SWAP_W (var34.i);
921 var37.i = (orc_uint16) var36.i;
923 var35.i = var37.i << 16;
932 _backup_audio_orc_unpack_s16_swap (OrcExecutor * ORC_RESTRICT ex)
936 orc_union32 *ORC_RESTRICT ptr0;
937 const orc_union16 *ORC_RESTRICT ptr4;
943 ptr0 = (orc_union32 *) ex->arrays[0];
944 ptr4 = (orc_union16 *) ex->arrays[4];
947 for (i = 0; i < n; i++) {
951 var36.i = ORC_SWAP_W (var34.i);
953 var37.i = (orc_uint16) var36.i;
955 var35.i = var37.i << 16;
963 audio_orc_unpack_s16_swap (gint32 * ORC_RESTRICT d1,
964 const guint8 * ORC_RESTRICT s1, int n)
966 OrcExecutor _ex, *ex = &_ex;
967 static volatile int p_inited = 0;
968 static OrcCode *c = 0;
969 void (*func) (OrcExecutor *);
972 orc_once_mutex_lock ();
977 static const orc_uint8 bc[] = {
978 1, 9, 25, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 117, 110, 112,
979 97, 99, 107, 95, 115, 49, 54, 95, 115, 119, 97, 112, 11, 4, 4, 12,
980 2, 2, 14, 4, 16, 0, 0, 0, 20, 2, 20, 4, 183, 32, 4, 154,
981 33, 32, 124, 0, 33, 16, 2, 0,
983 p = orc_program_new_from_static_bytecode (bc);
984 orc_program_set_backup_function (p, _backup_audio_orc_unpack_s16_swap);
986 p = orc_program_new ();
987 orc_program_set_name (p, "audio_orc_unpack_s16_swap");
988 orc_program_set_backup_function (p, _backup_audio_orc_unpack_s16_swap);
989 orc_program_add_destination (p, 4, "d1");
990 orc_program_add_source (p, 2, "s1");
991 orc_program_add_constant (p, 4, 0x00000010, "c1");
992 orc_program_add_temporary (p, 2, "t1");
993 orc_program_add_temporary (p, 4, "t2");
995 orc_program_append_2 (p, "swapw", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
997 orc_program_append_2 (p, "convuwl", 0, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1,
999 orc_program_append_2 (p, "shll", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_C1,
1003 orc_program_compile (p);
1004 c = orc_program_take_code (p);
1005 orc_program_free (p);
1008 orc_once_mutex_unlock ();
1010 ex->arrays[ORC_VAR_A2] = c;
1014 ex->arrays[ORC_VAR_D1] = d1;
1015 ex->arrays[ORC_VAR_S1] = (void *) s1;
1023 /* audio_orc_unpack_u24_32 */
1026 audio_orc_unpack_u24_32 (gint32 * ORC_RESTRICT d1,
1027 const guint8 * ORC_RESTRICT s1, int n)
1030 orc_union32 *ORC_RESTRICT ptr0;
1031 const orc_union32 *ORC_RESTRICT ptr4;
1033 #if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
1034 volatile orc_union32 var34;
1041 ptr0 = (orc_union32 *) d1;
1042 ptr4 = (orc_union32 *) s1;
1045 var34.i = (int) 0x80000000; /* -2147483648 or 1.061e-314f */
1047 for (i = 0; i < n; i++) {
1051 var36.i = var33.i << 8;
1053 var35.i = var36.i ^ var34.i;
1062 _backup_audio_orc_unpack_u24_32 (OrcExecutor * ORC_RESTRICT ex)
1066 orc_union32 *ORC_RESTRICT ptr0;
1067 const orc_union32 *ORC_RESTRICT ptr4;
1069 #if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
1070 volatile orc_union32 var34;
1077 ptr0 = (orc_union32 *) ex->arrays[0];
1078 ptr4 = (orc_union32 *) ex->arrays[4];
1081 var34.i = (int) 0x80000000; /* -2147483648 or 1.061e-314f */
1083 for (i = 0; i < n; i++) {
1087 var36.i = var33.i << 8;
1089 var35.i = var36.i ^ var34.i;
1097 audio_orc_unpack_u24_32 (gint32 * ORC_RESTRICT d1,
1098 const guint8 * ORC_RESTRICT s1, int n)
1100 OrcExecutor _ex, *ex = &_ex;
1101 static volatile int p_inited = 0;
1102 static OrcCode *c = 0;
1103 void (*func) (OrcExecutor *);
1106 orc_once_mutex_lock ();
1111 static const orc_uint8 bc[] = {
1112 1, 9, 23, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 117, 110, 112,
1113 97, 99, 107, 95, 117, 50, 52, 95, 51, 50, 11, 4, 4, 12, 4, 4,
1114 14, 4, 8, 0, 0, 0, 14, 4, 0, 0, 0, 128, 20, 4, 124, 32,
1115 4, 16, 132, 0, 32, 17, 2, 0,
1117 p = orc_program_new_from_static_bytecode (bc);
1118 orc_program_set_backup_function (p, _backup_audio_orc_unpack_u24_32);
1120 p = orc_program_new ();
1121 orc_program_set_name (p, "audio_orc_unpack_u24_32");
1122 orc_program_set_backup_function (p, _backup_audio_orc_unpack_u24_32);
1123 orc_program_add_destination (p, 4, "d1");
1124 orc_program_add_source (p, 4, "s1");
1125 orc_program_add_constant (p, 4, 0x00000008, "c1");
1126 orc_program_add_constant (p, 4, 0x80000000, "c2");
1127 orc_program_add_temporary (p, 4, "t1");
1129 orc_program_append_2 (p, "shll", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_C1,
1131 orc_program_append_2 (p, "xorl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_C2,
1135 orc_program_compile (p);
1136 c = orc_program_take_code (p);
1137 orc_program_free (p);
1140 orc_once_mutex_unlock ();
1142 ex->arrays[ORC_VAR_A2] = c;
1146 ex->arrays[ORC_VAR_D1] = d1;
1147 ex->arrays[ORC_VAR_S1] = (void *) s1;
1155 /* audio_orc_unpack_s24_32 */
1158 audio_orc_unpack_s24_32 (gint32 * ORC_RESTRICT d1,
1159 const guint8 * ORC_RESTRICT s1, int n)
1162 orc_union32 *ORC_RESTRICT ptr0;
1163 const orc_union32 *ORC_RESTRICT ptr4;
1167 ptr0 = (orc_union32 *) d1;
1168 ptr4 = (orc_union32 *) s1;
1171 for (i = 0; i < n; i++) {
1175 var33.i = var32.i << 8;
1184 _backup_audio_orc_unpack_s24_32 (OrcExecutor * ORC_RESTRICT ex)
1188 orc_union32 *ORC_RESTRICT ptr0;
1189 const orc_union32 *ORC_RESTRICT ptr4;
1193 ptr0 = (orc_union32 *) ex->arrays[0];
1194 ptr4 = (orc_union32 *) ex->arrays[4];
1197 for (i = 0; i < n; i++) {
1201 var33.i = var32.i << 8;
1209 audio_orc_unpack_s24_32 (gint32 * ORC_RESTRICT d1,
1210 const guint8 * ORC_RESTRICT s1, int n)
1212 OrcExecutor _ex, *ex = &_ex;
1213 static volatile int p_inited = 0;
1214 static OrcCode *c = 0;
1215 void (*func) (OrcExecutor *);
1218 orc_once_mutex_lock ();
1223 static const orc_uint8 bc[] = {
1224 1, 9, 23, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 117, 110, 112,
1225 97, 99, 107, 95, 115, 50, 52, 95, 51, 50, 11, 4, 4, 12, 4, 4,
1226 14, 4, 8, 0, 0, 0, 124, 0, 4, 16, 2, 0,
1228 p = orc_program_new_from_static_bytecode (bc);
1229 orc_program_set_backup_function (p, _backup_audio_orc_unpack_s24_32);
1231 p = orc_program_new ();
1232 orc_program_set_name (p, "audio_orc_unpack_s24_32");
1233 orc_program_set_backup_function (p, _backup_audio_orc_unpack_s24_32);
1234 orc_program_add_destination (p, 4, "d1");
1235 orc_program_add_source (p, 4, "s1");
1236 orc_program_add_constant (p, 4, 0x00000008, "c1");
1238 orc_program_append_2 (p, "shll", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_C1,
1242 orc_program_compile (p);
1243 c = orc_program_take_code (p);
1244 orc_program_free (p);
1247 orc_once_mutex_unlock ();
1249 ex->arrays[ORC_VAR_A2] = c;
1253 ex->arrays[ORC_VAR_D1] = d1;
1254 ex->arrays[ORC_VAR_S1] = (void *) s1;
1262 /* audio_orc_unpack_u24_32_swap */
1265 audio_orc_unpack_u24_32_swap (gint32 * ORC_RESTRICT d1,
1266 const guint8 * ORC_RESTRICT s1, int n)
1269 orc_union32 *ORC_RESTRICT ptr0;
1270 const orc_union32 *ORC_RESTRICT ptr4;
1272 #if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
1273 volatile orc_union32 var34;
1281 ptr0 = (orc_union32 *) d1;
1282 ptr4 = (orc_union32 *) s1;
1285 var34.i = (int) 0x80000000; /* -2147483648 or 1.061e-314f */
1287 for (i = 0; i < n; i++) {
1291 var36.i = ORC_SWAP_L (var33.i);
1293 var37.i = var36.i << 8;
1295 var35.i = var37.i ^ var34.i;
1304 _backup_audio_orc_unpack_u24_32_swap (OrcExecutor * ORC_RESTRICT ex)
1308 orc_union32 *ORC_RESTRICT ptr0;
1309 const orc_union32 *ORC_RESTRICT ptr4;
1311 #if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
1312 volatile orc_union32 var34;
1320 ptr0 = (orc_union32 *) ex->arrays[0];
1321 ptr4 = (orc_union32 *) ex->arrays[4];
1324 var34.i = (int) 0x80000000; /* -2147483648 or 1.061e-314f */
1326 for (i = 0; i < n; i++) {
1330 var36.i = ORC_SWAP_L (var33.i);
1332 var37.i = var36.i << 8;
1334 var35.i = var37.i ^ var34.i;
1342 audio_orc_unpack_u24_32_swap (gint32 * ORC_RESTRICT d1,
1343 const guint8 * ORC_RESTRICT s1, int n)
1345 OrcExecutor _ex, *ex = &_ex;
1346 static volatile int p_inited = 0;
1347 static OrcCode *c = 0;
1348 void (*func) (OrcExecutor *);
1351 orc_once_mutex_lock ();
1356 static const orc_uint8 bc[] = {
1357 1, 9, 28, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 117, 110, 112,
1358 97, 99, 107, 95, 117, 50, 52, 95, 51, 50, 95, 115, 119, 97, 112, 11,
1359 4, 4, 12, 4, 4, 14, 4, 8, 0, 0, 0, 14, 4, 0, 0, 0,
1360 128, 20, 4, 184, 32, 4, 124, 32, 32, 16, 132, 0, 32, 17, 2, 0,
1363 p = orc_program_new_from_static_bytecode (bc);
1364 orc_program_set_backup_function (p, _backup_audio_orc_unpack_u24_32_swap);
1366 p = orc_program_new ();
1367 orc_program_set_name (p, "audio_orc_unpack_u24_32_swap");
1368 orc_program_set_backup_function (p, _backup_audio_orc_unpack_u24_32_swap);
1369 orc_program_add_destination (p, 4, "d1");
1370 orc_program_add_source (p, 4, "s1");
1371 orc_program_add_constant (p, 4, 0x00000008, "c1");
1372 orc_program_add_constant (p, 4, 0x80000000, "c2");
1373 orc_program_add_temporary (p, 4, "t1");
1375 orc_program_append_2 (p, "swapl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
1377 orc_program_append_2 (p, "shll", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_C1,
1379 orc_program_append_2 (p, "xorl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_C2,
1383 orc_program_compile (p);
1384 c = orc_program_take_code (p);
1385 orc_program_free (p);
1388 orc_once_mutex_unlock ();
1390 ex->arrays[ORC_VAR_A2] = c;
1394 ex->arrays[ORC_VAR_D1] = d1;
1395 ex->arrays[ORC_VAR_S1] = (void *) s1;
1403 /* audio_orc_unpack_s24_32_swap */
1406 audio_orc_unpack_s24_32_swap (gint32 * ORC_RESTRICT d1,
1407 const guint8 * ORC_RESTRICT s1, int n)
1410 orc_union32 *ORC_RESTRICT ptr0;
1411 const orc_union32 *ORC_RESTRICT ptr4;
1416 ptr0 = (orc_union32 *) d1;
1417 ptr4 = (orc_union32 *) s1;
1420 for (i = 0; i < n; i++) {
1424 var35.i = ORC_SWAP_L (var33.i);
1426 var34.i = var35.i << 8;
1435 _backup_audio_orc_unpack_s24_32_swap (OrcExecutor * ORC_RESTRICT ex)
1439 orc_union32 *ORC_RESTRICT ptr0;
1440 const orc_union32 *ORC_RESTRICT ptr4;
1445 ptr0 = (orc_union32 *) ex->arrays[0];
1446 ptr4 = (orc_union32 *) ex->arrays[4];
1449 for (i = 0; i < n; i++) {
1453 var35.i = ORC_SWAP_L (var33.i);
1455 var34.i = var35.i << 8;
1463 audio_orc_unpack_s24_32_swap (gint32 * ORC_RESTRICT d1,
1464 const guint8 * ORC_RESTRICT s1, int n)
1466 OrcExecutor _ex, *ex = &_ex;
1467 static volatile int p_inited = 0;
1468 static OrcCode *c = 0;
1469 void (*func) (OrcExecutor *);
1472 orc_once_mutex_lock ();
1477 static const orc_uint8 bc[] = {
1478 1, 9, 28, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 117, 110, 112,
1479 97, 99, 107, 95, 115, 50, 52, 95, 51, 50, 95, 115, 119, 97, 112, 11,
1480 4, 4, 12, 4, 4, 14, 4, 8, 0, 0, 0, 20, 4, 184, 32, 4,
1481 124, 0, 32, 16, 2, 0,
1483 p = orc_program_new_from_static_bytecode (bc);
1484 orc_program_set_backup_function (p, _backup_audio_orc_unpack_s24_32_swap);
1486 p = orc_program_new ();
1487 orc_program_set_name (p, "audio_orc_unpack_s24_32_swap");
1488 orc_program_set_backup_function (p, _backup_audio_orc_unpack_s24_32_swap);
1489 orc_program_add_destination (p, 4, "d1");
1490 orc_program_add_source (p, 4, "s1");
1491 orc_program_add_constant (p, 4, 0x00000008, "c1");
1492 orc_program_add_temporary (p, 4, "t1");
1494 orc_program_append_2 (p, "swapl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
1496 orc_program_append_2 (p, "shll", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_C1,
1500 orc_program_compile (p);
1501 c = orc_program_take_code (p);
1502 orc_program_free (p);
1505 orc_once_mutex_unlock ();
1507 ex->arrays[ORC_VAR_A2] = c;
1511 ex->arrays[ORC_VAR_D1] = d1;
1512 ex->arrays[ORC_VAR_S1] = (void *) s1;
1520 /* audio_orc_unpack_u32 */
1523 audio_orc_unpack_u32 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1,
1527 orc_union32 *ORC_RESTRICT ptr0;
1528 const orc_union32 *ORC_RESTRICT ptr4;
1530 #if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
1531 volatile orc_union32 var33;
1537 ptr0 = (orc_union32 *) d1;
1538 ptr4 = (orc_union32 *) s1;
1541 var33.i = (int) 0x80000000; /* -2147483648 or 1.061e-314f */
1543 for (i = 0; i < n; i++) {
1547 var34.i = var32.i ^ var33.i;
1556 _backup_audio_orc_unpack_u32 (OrcExecutor * ORC_RESTRICT ex)
1560 orc_union32 *ORC_RESTRICT ptr0;
1561 const orc_union32 *ORC_RESTRICT ptr4;
1563 #if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
1564 volatile orc_union32 var33;
1570 ptr0 = (orc_union32 *) ex->arrays[0];
1571 ptr4 = (orc_union32 *) ex->arrays[4];
1574 var33.i = (int) 0x80000000; /* -2147483648 or 1.061e-314f */
1576 for (i = 0; i < n; i++) {
1580 var34.i = var32.i ^ var33.i;
1588 audio_orc_unpack_u32 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1,
1591 OrcExecutor _ex, *ex = &_ex;
1592 static volatile int p_inited = 0;
1593 static OrcCode *c = 0;
1594 void (*func) (OrcExecutor *);
1597 orc_once_mutex_lock ();
1602 static const orc_uint8 bc[] = {
1603 1, 9, 20, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 117, 110, 112,
1604 97, 99, 107, 95, 117, 51, 50, 11, 4, 4, 12, 4, 4, 14, 4, 0,
1605 0, 0, 128, 132, 0, 4, 16, 2, 0,
1607 p = orc_program_new_from_static_bytecode (bc);
1608 orc_program_set_backup_function (p, _backup_audio_orc_unpack_u32);
1610 p = orc_program_new ();
1611 orc_program_set_name (p, "audio_orc_unpack_u32");
1612 orc_program_set_backup_function (p, _backup_audio_orc_unpack_u32);
1613 orc_program_add_destination (p, 4, "d1");
1614 orc_program_add_source (p, 4, "s1");
1615 orc_program_add_constant (p, 4, 0x80000000, "c1");
1617 orc_program_append_2 (p, "xorl", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_C1,
1621 orc_program_compile (p);
1622 c = orc_program_take_code (p);
1623 orc_program_free (p);
1626 orc_once_mutex_unlock ();
1628 ex->arrays[ORC_VAR_A2] = c;
1632 ex->arrays[ORC_VAR_D1] = d1;
1633 ex->arrays[ORC_VAR_S1] = (void *) s1;
1641 /* audio_orc_unpack_u32_swap */
1644 audio_orc_unpack_u32_swap (gint32 * ORC_RESTRICT d1,
1645 const guint8 * ORC_RESTRICT s1, int n)
1648 orc_union32 *ORC_RESTRICT ptr0;
1649 const orc_union32 *ORC_RESTRICT ptr4;
1651 #if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
1652 volatile orc_union32 var34;
1659 ptr0 = (orc_union32 *) d1;
1660 ptr4 = (orc_union32 *) s1;
1663 var34.i = (int) 0x80000000; /* -2147483648 or 1.061e-314f */
1665 for (i = 0; i < n; i++) {
1669 var36.i = ORC_SWAP_L (var33.i);
1671 var35.i = var36.i ^ var34.i;
1680 _backup_audio_orc_unpack_u32_swap (OrcExecutor * ORC_RESTRICT ex)
1684 orc_union32 *ORC_RESTRICT ptr0;
1685 const orc_union32 *ORC_RESTRICT ptr4;
1687 #if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
1688 volatile orc_union32 var34;
1695 ptr0 = (orc_union32 *) ex->arrays[0];
1696 ptr4 = (orc_union32 *) ex->arrays[4];
1699 var34.i = (int) 0x80000000; /* -2147483648 or 1.061e-314f */
1701 for (i = 0; i < n; i++) {
1705 var36.i = ORC_SWAP_L (var33.i);
1707 var35.i = var36.i ^ var34.i;
1715 audio_orc_unpack_u32_swap (gint32 * ORC_RESTRICT d1,
1716 const guint8 * ORC_RESTRICT s1, int n)
1718 OrcExecutor _ex, *ex = &_ex;
1719 static volatile int p_inited = 0;
1720 static OrcCode *c = 0;
1721 void (*func) (OrcExecutor *);
1724 orc_once_mutex_lock ();
1729 static const orc_uint8 bc[] = {
1730 1, 9, 25, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 117, 110, 112,
1731 97, 99, 107, 95, 117, 51, 50, 95, 115, 119, 97, 112, 11, 4, 4, 12,
1732 4, 4, 14, 4, 0, 0, 0, 128, 20, 4, 184, 32, 4, 132, 0, 32,
1735 p = orc_program_new_from_static_bytecode (bc);
1736 orc_program_set_backup_function (p, _backup_audio_orc_unpack_u32_swap);
1738 p = orc_program_new ();
1739 orc_program_set_name (p, "audio_orc_unpack_u32_swap");
1740 orc_program_set_backup_function (p, _backup_audio_orc_unpack_u32_swap);
1741 orc_program_add_destination (p, 4, "d1");
1742 orc_program_add_source (p, 4, "s1");
1743 orc_program_add_constant (p, 4, 0x80000000, "c1");
1744 orc_program_add_temporary (p, 4, "t1");
1746 orc_program_append_2 (p, "swapl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
1748 orc_program_append_2 (p, "xorl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_C1,
1752 orc_program_compile (p);
1753 c = orc_program_take_code (p);
1754 orc_program_free (p);
1757 orc_once_mutex_unlock ();
1759 ex->arrays[ORC_VAR_A2] = c;
1763 ex->arrays[ORC_VAR_D1] = d1;
1764 ex->arrays[ORC_VAR_S1] = (void *) s1;
1772 /* audio_orc_unpack_s32 */
1775 audio_orc_unpack_s32 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1,
1779 orc_union32 *ORC_RESTRICT ptr0;
1780 const orc_union32 *ORC_RESTRICT ptr4;
1784 ptr0 = (orc_union32 *) d1;
1785 ptr4 = (orc_union32 *) s1;
1788 for (i = 0; i < n; i++) {
1801 _backup_audio_orc_unpack_s32 (OrcExecutor * ORC_RESTRICT ex)
1805 orc_union32 *ORC_RESTRICT ptr0;
1806 const orc_union32 *ORC_RESTRICT ptr4;
1810 ptr0 = (orc_union32 *) ex->arrays[0];
1811 ptr4 = (orc_union32 *) ex->arrays[4];
1814 for (i = 0; i < n; i++) {
1826 audio_orc_unpack_s32 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1,
1829 OrcExecutor _ex, *ex = &_ex;
1830 static volatile int p_inited = 0;
1831 static OrcCode *c = 0;
1832 void (*func) (OrcExecutor *);
1835 orc_once_mutex_lock ();
1840 static const orc_uint8 bc[] = {
1841 1, 9, 20, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 117, 110, 112,
1842 97, 99, 107, 95, 115, 51, 50, 11, 4, 4, 12, 4, 4, 112, 0, 4,
1845 p = orc_program_new_from_static_bytecode (bc);
1846 orc_program_set_backup_function (p, _backup_audio_orc_unpack_s32);
1848 p = orc_program_new ();
1849 orc_program_set_name (p, "audio_orc_unpack_s32");
1850 orc_program_set_backup_function (p, _backup_audio_orc_unpack_s32);
1851 orc_program_add_destination (p, 4, "d1");
1852 orc_program_add_source (p, 4, "s1");
1854 orc_program_append_2 (p, "copyl", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1,
1858 orc_program_compile (p);
1859 c = orc_program_take_code (p);
1860 orc_program_free (p);
1863 orc_once_mutex_unlock ();
1865 ex->arrays[ORC_VAR_A2] = c;
1869 ex->arrays[ORC_VAR_D1] = d1;
1870 ex->arrays[ORC_VAR_S1] = (void *) s1;
1878 /* audio_orc_unpack_s32_swap */
1881 audio_orc_unpack_s32_swap (gint32 * ORC_RESTRICT d1,
1882 const guint8 * ORC_RESTRICT s1, int n)
1885 orc_union32 *ORC_RESTRICT ptr0;
1886 const orc_union32 *ORC_RESTRICT ptr4;
1890 ptr0 = (orc_union32 *) d1;
1891 ptr4 = (orc_union32 *) s1;
1894 for (i = 0; i < n; i++) {
1898 var33.i = ORC_SWAP_L (var32.i);
1907 _backup_audio_orc_unpack_s32_swap (OrcExecutor * ORC_RESTRICT ex)
1911 orc_union32 *ORC_RESTRICT ptr0;
1912 const orc_union32 *ORC_RESTRICT ptr4;
1916 ptr0 = (orc_union32 *) ex->arrays[0];
1917 ptr4 = (orc_union32 *) ex->arrays[4];
1920 for (i = 0; i < n; i++) {
1924 var33.i = ORC_SWAP_L (var32.i);
1932 audio_orc_unpack_s32_swap (gint32 * ORC_RESTRICT d1,
1933 const guint8 * ORC_RESTRICT s1, int n)
1935 OrcExecutor _ex, *ex = &_ex;
1936 static volatile int p_inited = 0;
1937 static OrcCode *c = 0;
1938 void (*func) (OrcExecutor *);
1941 orc_once_mutex_lock ();
1946 static const orc_uint8 bc[] = {
1947 1, 9, 25, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 117, 110, 112,
1948 97, 99, 107, 95, 115, 51, 50, 95, 115, 119, 97, 112, 11, 4, 4, 12,
1949 4, 4, 184, 0, 4, 2, 0,
1951 p = orc_program_new_from_static_bytecode (bc);
1952 orc_program_set_backup_function (p, _backup_audio_orc_unpack_s32_swap);
1954 p = orc_program_new ();
1955 orc_program_set_name (p, "audio_orc_unpack_s32_swap");
1956 orc_program_set_backup_function (p, _backup_audio_orc_unpack_s32_swap);
1957 orc_program_add_destination (p, 4, "d1");
1958 orc_program_add_source (p, 4, "s1");
1960 orc_program_append_2 (p, "swapl", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1,
1964 orc_program_compile (p);
1965 c = orc_program_take_code (p);
1966 orc_program_free (p);
1969 orc_once_mutex_unlock ();
1971 ex->arrays[ORC_VAR_A2] = c;
1975 ex->arrays[ORC_VAR_D1] = d1;
1976 ex->arrays[ORC_VAR_S1] = (void *) s1;
1984 /* audio_orc_unpack_f32 */
1987 audio_orc_unpack_f32 (gdouble * ORC_RESTRICT d1, const gfloat * ORC_RESTRICT s1,
1991 orc_union64 *ORC_RESTRICT ptr0;
1992 const orc_union32 *ORC_RESTRICT ptr4;
1996 ptr0 = (orc_union64 *) d1;
1997 ptr4 = (orc_union32 *) s1;
2000 for (i = 0; i < n; i++) {
2006 _src1.i = ORC_DENORMAL (var32.i);
2017 _backup_audio_orc_unpack_f32 (OrcExecutor * ORC_RESTRICT ex)
2021 orc_union64 *ORC_RESTRICT ptr0;
2022 const orc_union32 *ORC_RESTRICT ptr4;
2026 ptr0 = (orc_union64 *) ex->arrays[0];
2027 ptr4 = (orc_union32 *) ex->arrays[4];
2030 for (i = 0; i < n; i++) {
2036 _src1.i = ORC_DENORMAL (var32.i);
2046 audio_orc_unpack_f32 (gdouble * ORC_RESTRICT d1, const gfloat * ORC_RESTRICT s1,
2049 OrcExecutor _ex, *ex = &_ex;
2050 static volatile int p_inited = 0;
2051 static OrcCode *c = 0;
2052 void (*func) (OrcExecutor *);
2055 orc_once_mutex_lock ();
2060 static const orc_uint8 bc[] = {
2061 1, 9, 20, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 117, 110, 112,
2062 97, 99, 107, 95, 102, 51, 50, 11, 8, 8, 12, 4, 4, 224, 0, 4,
2065 p = orc_program_new_from_static_bytecode (bc);
2066 orc_program_set_backup_function (p, _backup_audio_orc_unpack_f32);
2068 p = orc_program_new ();
2069 orc_program_set_name (p, "audio_orc_unpack_f32");
2070 orc_program_set_backup_function (p, _backup_audio_orc_unpack_f32);
2071 orc_program_add_destination (p, 8, "d1");
2072 orc_program_add_source (p, 4, "s1");
2074 orc_program_append_2 (p, "convfd", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1,
2078 orc_program_compile (p);
2079 c = orc_program_take_code (p);
2080 orc_program_free (p);
2083 orc_once_mutex_unlock ();
2085 ex->arrays[ORC_VAR_A2] = c;
2089 ex->arrays[ORC_VAR_D1] = d1;
2090 ex->arrays[ORC_VAR_S1] = (void *) s1;
2098 /* audio_orc_unpack_f32_swap */
2101 audio_orc_unpack_f32_swap (gdouble * ORC_RESTRICT d1,
2102 const gfloat * ORC_RESTRICT s1, int n)
2105 orc_union64 *ORC_RESTRICT ptr0;
2106 const orc_union32 *ORC_RESTRICT ptr4;
2111 ptr0 = (orc_union64 *) d1;
2112 ptr4 = (orc_union32 *) s1;
2115 for (i = 0; i < n; i++) {
2119 var35.i = ORC_SWAP_L (var33.i);
2123 _src1.i = ORC_DENORMAL (var35.i);
2134 _backup_audio_orc_unpack_f32_swap (OrcExecutor * ORC_RESTRICT ex)
2138 orc_union64 *ORC_RESTRICT ptr0;
2139 const orc_union32 *ORC_RESTRICT ptr4;
2144 ptr0 = (orc_union64 *) ex->arrays[0];
2145 ptr4 = (orc_union32 *) ex->arrays[4];
2148 for (i = 0; i < n; i++) {
2152 var35.i = ORC_SWAP_L (var33.i);
2156 _src1.i = ORC_DENORMAL (var35.i);
2166 audio_orc_unpack_f32_swap (gdouble * ORC_RESTRICT d1,
2167 const gfloat * ORC_RESTRICT s1, int n)
2169 OrcExecutor _ex, *ex = &_ex;
2170 static volatile int p_inited = 0;
2171 static OrcCode *c = 0;
2172 void (*func) (OrcExecutor *);
2175 orc_once_mutex_lock ();
2180 static const orc_uint8 bc[] = {
2181 1, 9, 25, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 117, 110, 112,
2182 97, 99, 107, 95, 102, 51, 50, 95, 115, 119, 97, 112, 11, 8, 8, 12,
2183 4, 4, 20, 4, 184, 32, 4, 224, 0, 32, 2, 0,
2185 p = orc_program_new_from_static_bytecode (bc);
2186 orc_program_set_backup_function (p, _backup_audio_orc_unpack_f32_swap);
2188 p = orc_program_new ();
2189 orc_program_set_name (p, "audio_orc_unpack_f32_swap");
2190 orc_program_set_backup_function (p, _backup_audio_orc_unpack_f32_swap);
2191 orc_program_add_destination (p, 8, "d1");
2192 orc_program_add_source (p, 4, "s1");
2193 orc_program_add_temporary (p, 4, "t1");
2195 orc_program_append_2 (p, "swapl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
2197 orc_program_append_2 (p, "convfd", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
2201 orc_program_compile (p);
2202 c = orc_program_take_code (p);
2203 orc_program_free (p);
2206 orc_once_mutex_unlock ();
2208 ex->arrays[ORC_VAR_A2] = c;
2212 ex->arrays[ORC_VAR_D1] = d1;
2213 ex->arrays[ORC_VAR_S1] = (void *) s1;
2221 /* audio_orc_unpack_f64 */
2224 audio_orc_unpack_f64 (gdouble * ORC_RESTRICT d1,
2225 const gdouble * ORC_RESTRICT s1, int n)
2228 orc_union64 *ORC_RESTRICT ptr0;
2229 const orc_union64 *ORC_RESTRICT ptr4;
2233 ptr0 = (orc_union64 *) d1;
2234 ptr4 = (orc_union64 *) s1;
2237 for (i = 0; i < n; i++) {
2250 _backup_audio_orc_unpack_f64 (OrcExecutor * ORC_RESTRICT ex)
2254 orc_union64 *ORC_RESTRICT ptr0;
2255 const orc_union64 *ORC_RESTRICT ptr4;
2259 ptr0 = (orc_union64 *) ex->arrays[0];
2260 ptr4 = (orc_union64 *) ex->arrays[4];
2263 for (i = 0; i < n; i++) {
2275 audio_orc_unpack_f64 (gdouble * ORC_RESTRICT d1,
2276 const gdouble * ORC_RESTRICT s1, int n)
2278 OrcExecutor _ex, *ex = &_ex;
2279 static volatile int p_inited = 0;
2280 static OrcCode *c = 0;
2281 void (*func) (OrcExecutor *);
2284 orc_once_mutex_lock ();
2289 static const orc_uint8 bc[] = {
2290 1, 9, 20, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 117, 110, 112,
2291 97, 99, 107, 95, 102, 54, 52, 11, 8, 8, 12, 8, 8, 137, 0, 4,
2294 p = orc_program_new_from_static_bytecode (bc);
2295 orc_program_set_backup_function (p, _backup_audio_orc_unpack_f64);
2297 p = orc_program_new ();
2298 orc_program_set_name (p, "audio_orc_unpack_f64");
2299 orc_program_set_backup_function (p, _backup_audio_orc_unpack_f64);
2300 orc_program_add_destination (p, 8, "d1");
2301 orc_program_add_source (p, 8, "s1");
2303 orc_program_append_2 (p, "copyq", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1,
2307 orc_program_compile (p);
2308 c = orc_program_take_code (p);
2309 orc_program_free (p);
2312 orc_once_mutex_unlock ();
2314 ex->arrays[ORC_VAR_A2] = c;
2318 ex->arrays[ORC_VAR_D1] = d1;
2319 ex->arrays[ORC_VAR_S1] = (void *) s1;
2327 /* audio_orc_unpack_f64_swap */
2330 audio_orc_unpack_f64_swap (gdouble * ORC_RESTRICT d1,
2331 const gdouble * ORC_RESTRICT s1, int n)
2334 orc_union64 *ORC_RESTRICT ptr0;
2335 const orc_union64 *ORC_RESTRICT ptr4;
2339 ptr0 = (orc_union64 *) d1;
2340 ptr4 = (orc_union64 *) s1;
2343 for (i = 0; i < n; i++) {
2347 var33.i = ORC_SWAP_Q (var32.i);
2356 _backup_audio_orc_unpack_f64_swap (OrcExecutor * ORC_RESTRICT ex)
2360 orc_union64 *ORC_RESTRICT ptr0;
2361 const orc_union64 *ORC_RESTRICT ptr4;
2365 ptr0 = (orc_union64 *) ex->arrays[0];
2366 ptr4 = (orc_union64 *) ex->arrays[4];
2369 for (i = 0; i < n; i++) {
2373 var33.i = ORC_SWAP_Q (var32.i);
2381 audio_orc_unpack_f64_swap (gdouble * ORC_RESTRICT d1,
2382 const gdouble * ORC_RESTRICT s1, int n)
2384 OrcExecutor _ex, *ex = &_ex;
2385 static volatile int p_inited = 0;
2386 static OrcCode *c = 0;
2387 void (*func) (OrcExecutor *);
2390 orc_once_mutex_lock ();
2395 static const orc_uint8 bc[] = {
2396 1, 9, 25, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 117, 110, 112,
2397 97, 99, 107, 95, 102, 54, 52, 95, 115, 119, 97, 112, 11, 8, 8, 12,
2398 8, 8, 186, 0, 4, 2, 0,
2400 p = orc_program_new_from_static_bytecode (bc);
2401 orc_program_set_backup_function (p, _backup_audio_orc_unpack_f64_swap);
2403 p = orc_program_new ();
2404 orc_program_set_name (p, "audio_orc_unpack_f64_swap");
2405 orc_program_set_backup_function (p, _backup_audio_orc_unpack_f64_swap);
2406 orc_program_add_destination (p, 8, "d1");
2407 orc_program_add_source (p, 8, "s1");
2409 orc_program_append_2 (p, "swapq", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1,
2413 orc_program_compile (p);
2414 c = orc_program_take_code (p);
2415 orc_program_free (p);
2418 orc_once_mutex_unlock ();
2420 ex->arrays[ORC_VAR_A2] = c;
2424 ex->arrays[ORC_VAR_D1] = d1;
2425 ex->arrays[ORC_VAR_S1] = (void *) s1;
2433 /* audio_orc_pack_u8 */
2436 audio_orc_pack_u8 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1,
2440 orc_int8 *ORC_RESTRICT ptr0;
2441 const orc_union32 *ORC_RESTRICT ptr4;
2443 #if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
2444 volatile orc_union32 var35;
2453 ptr0 = (orc_int8 *) d1;
2454 ptr4 = (orc_union32 *) s1;
2457 var35.i = (int) 0x80000000; /* -2147483648 or 1.061e-314f */
2459 for (i = 0; i < n; i++) {
2463 var37.i = var34.i ^ var35.i;
2465 var38.i = ((orc_uint32) var37.i) >> 24;
2478 _backup_audio_orc_pack_u8 (OrcExecutor * ORC_RESTRICT ex)
2482 orc_int8 *ORC_RESTRICT ptr0;
2483 const orc_union32 *ORC_RESTRICT ptr4;
2485 #if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
2486 volatile orc_union32 var35;
2495 ptr0 = (orc_int8 *) ex->arrays[0];
2496 ptr4 = (orc_union32 *) ex->arrays[4];
2499 var35.i = (int) 0x80000000; /* -2147483648 or 1.061e-314f */
2501 for (i = 0; i < n; i++) {
2505 var37.i = var34.i ^ var35.i;
2507 var38.i = ((orc_uint32) var37.i) >> 24;
2519 audio_orc_pack_u8 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1,
2522 OrcExecutor _ex, *ex = &_ex;
2523 static volatile int p_inited = 0;
2524 static OrcCode *c = 0;
2525 void (*func) (OrcExecutor *);
2528 orc_once_mutex_lock ();
2533 static const orc_uint8 bc[] = {
2534 1, 9, 17, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 112, 97, 99,
2535 107, 95, 117, 56, 11, 1, 1, 12, 4, 4, 14, 4, 24, 0, 0, 0,
2536 14, 4, 0, 0, 0, 128, 20, 4, 20, 2, 132, 32, 4, 17, 126, 32,
2537 32, 16, 163, 33, 32, 157, 0, 33, 2, 0,
2539 p = orc_program_new_from_static_bytecode (bc);
2540 orc_program_set_backup_function (p, _backup_audio_orc_pack_u8);
2542 p = orc_program_new ();
2543 orc_program_set_name (p, "audio_orc_pack_u8");
2544 orc_program_set_backup_function (p, _backup_audio_orc_pack_u8);
2545 orc_program_add_destination (p, 1, "d1");
2546 orc_program_add_source (p, 4, "s1");
2547 orc_program_add_constant (p, 4, 0x00000018, "c1");
2548 orc_program_add_constant (p, 4, 0x80000000, "c2");
2549 orc_program_add_temporary (p, 4, "t1");
2550 orc_program_add_temporary (p, 2, "t2");
2552 orc_program_append_2 (p, "xorl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_C2,
2554 orc_program_append_2 (p, "shrul", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_C1,
2556 orc_program_append_2 (p, "convlw", 0, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1,
2558 orc_program_append_2 (p, "convwb", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1,
2562 orc_program_compile (p);
2563 c = orc_program_take_code (p);
2564 orc_program_free (p);
2567 orc_once_mutex_unlock ();
2569 ex->arrays[ORC_VAR_A2] = c;
2573 ex->arrays[ORC_VAR_D1] = d1;
2574 ex->arrays[ORC_VAR_S1] = (void *) s1;
2582 /* audio_orc_pack_s8 */
2585 audio_orc_pack_s8 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1,
2589 orc_int8 *ORC_RESTRICT ptr0;
2590 const orc_union32 *ORC_RESTRICT ptr4;
2596 ptr0 = (orc_int8 *) d1;
2597 ptr4 = (orc_union32 *) s1;
2600 for (i = 0; i < n; i++) {
2604 var36.i = var34.i >> 24;
2617 _backup_audio_orc_pack_s8 (OrcExecutor * ORC_RESTRICT ex)
2621 orc_int8 *ORC_RESTRICT ptr0;
2622 const orc_union32 *ORC_RESTRICT ptr4;
2628 ptr0 = (orc_int8 *) ex->arrays[0];
2629 ptr4 = (orc_union32 *) ex->arrays[4];
2632 for (i = 0; i < n; i++) {
2636 var36.i = var34.i >> 24;
2648 audio_orc_pack_s8 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1,
2651 OrcExecutor _ex, *ex = &_ex;
2652 static volatile int p_inited = 0;
2653 static OrcCode *c = 0;
2654 void (*func) (OrcExecutor *);
2657 orc_once_mutex_lock ();
2662 static const orc_uint8 bc[] = {
2663 1, 9, 17, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 112, 97, 99,
2664 107, 95, 115, 56, 11, 1, 1, 12, 4, 4, 14, 4, 24, 0, 0, 0,
2665 20, 4, 20, 2, 125, 32, 4, 16, 163, 33, 32, 157, 0, 33, 2, 0,
2668 p = orc_program_new_from_static_bytecode (bc);
2669 orc_program_set_backup_function (p, _backup_audio_orc_pack_s8);
2671 p = orc_program_new ();
2672 orc_program_set_name (p, "audio_orc_pack_s8");
2673 orc_program_set_backup_function (p, _backup_audio_orc_pack_s8);
2674 orc_program_add_destination (p, 1, "d1");
2675 orc_program_add_source (p, 4, "s1");
2676 orc_program_add_constant (p, 4, 0x00000018, "c1");
2677 orc_program_add_temporary (p, 4, "t1");
2678 orc_program_add_temporary (p, 2, "t2");
2680 orc_program_append_2 (p, "shrsl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_C1,
2682 orc_program_append_2 (p, "convlw", 0, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1,
2684 orc_program_append_2 (p, "convwb", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1,
2688 orc_program_compile (p);
2689 c = orc_program_take_code (p);
2690 orc_program_free (p);
2693 orc_once_mutex_unlock ();
2695 ex->arrays[ORC_VAR_A2] = c;
2699 ex->arrays[ORC_VAR_D1] = d1;
2700 ex->arrays[ORC_VAR_S1] = (void *) s1;
2708 /* audio_orc_pack_u16 */
2711 audio_orc_pack_u16 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1,
2715 orc_union16 *ORC_RESTRICT ptr0;
2716 const orc_union32 *ORC_RESTRICT ptr4;
2718 #if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
2719 volatile orc_union32 var34;
2727 ptr0 = (orc_union16 *) d1;
2728 ptr4 = (orc_union32 *) s1;
2731 var34.i = (int) 0x80000000; /* -2147483648 or 1.061e-314f */
2733 for (i = 0; i < n; i++) {
2737 var36.i = var33.i ^ var34.i;
2739 var37.i = ((orc_uint32) var36.i) >> 16;
2750 _backup_audio_orc_pack_u16 (OrcExecutor * ORC_RESTRICT ex)
2754 orc_union16 *ORC_RESTRICT ptr0;
2755 const orc_union32 *ORC_RESTRICT ptr4;
2757 #if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
2758 volatile orc_union32 var34;
2766 ptr0 = (orc_union16 *) ex->arrays[0];
2767 ptr4 = (orc_union32 *) ex->arrays[4];
2770 var34.i = (int) 0x80000000; /* -2147483648 or 1.061e-314f */
2772 for (i = 0; i < n; i++) {
2776 var36.i = var33.i ^ var34.i;
2778 var37.i = ((orc_uint32) var36.i) >> 16;
2788 audio_orc_pack_u16 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1,
2791 OrcExecutor _ex, *ex = &_ex;
2792 static volatile int p_inited = 0;
2793 static OrcCode *c = 0;
2794 void (*func) (OrcExecutor *);
2797 orc_once_mutex_lock ();
2802 static const orc_uint8 bc[] = {
2803 1, 9, 18, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 112, 97, 99,
2804 107, 95, 117, 49, 54, 11, 2, 2, 12, 4, 4, 14, 4, 16, 0, 0,
2805 0, 14, 4, 0, 0, 0, 128, 20, 4, 132, 32, 4, 17, 126, 32, 32,
2806 16, 163, 0, 32, 2, 0,
2808 p = orc_program_new_from_static_bytecode (bc);
2809 orc_program_set_backup_function (p, _backup_audio_orc_pack_u16);
2811 p = orc_program_new ();
2812 orc_program_set_name (p, "audio_orc_pack_u16");
2813 orc_program_set_backup_function (p, _backup_audio_orc_pack_u16);
2814 orc_program_add_destination (p, 2, "d1");
2815 orc_program_add_source (p, 4, "s1");
2816 orc_program_add_constant (p, 4, 0x00000010, "c1");
2817 orc_program_add_constant (p, 4, 0x80000000, "c2");
2818 orc_program_add_temporary (p, 4, "t1");
2820 orc_program_append_2 (p, "xorl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_C2,
2822 orc_program_append_2 (p, "shrul", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_C1,
2824 orc_program_append_2 (p, "convlw", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
2828 orc_program_compile (p);
2829 c = orc_program_take_code (p);
2830 orc_program_free (p);
2833 orc_once_mutex_unlock ();
2835 ex->arrays[ORC_VAR_A2] = c;
2839 ex->arrays[ORC_VAR_D1] = d1;
2840 ex->arrays[ORC_VAR_S1] = (void *) s1;
2848 /* audio_orc_pack_s16 */
2851 audio_orc_pack_s16 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1,
2855 orc_union16 *ORC_RESTRICT ptr0;
2856 const orc_union32 *ORC_RESTRICT ptr4;
2861 ptr0 = (orc_union16 *) d1;
2862 ptr4 = (orc_union32 *) s1;
2865 for (i = 0; i < n; i++) {
2869 var35.i = var33.i >> 16;
2880 _backup_audio_orc_pack_s16 (OrcExecutor * ORC_RESTRICT ex)
2884 orc_union16 *ORC_RESTRICT ptr0;
2885 const orc_union32 *ORC_RESTRICT ptr4;
2890 ptr0 = (orc_union16 *) ex->arrays[0];
2891 ptr4 = (orc_union32 *) ex->arrays[4];
2894 for (i = 0; i < n; i++) {
2898 var35.i = var33.i >> 16;
2908 audio_orc_pack_s16 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1,
2911 OrcExecutor _ex, *ex = &_ex;
2912 static volatile int p_inited = 0;
2913 static OrcCode *c = 0;
2914 void (*func) (OrcExecutor *);
2917 orc_once_mutex_lock ();
2922 static const orc_uint8 bc[] = {
2923 1, 9, 18, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 112, 97, 99,
2924 107, 95, 115, 49, 54, 11, 2, 2, 12, 4, 4, 14, 4, 16, 0, 0,
2925 0, 20, 4, 125, 32, 4, 16, 163, 0, 32, 2, 0,
2927 p = orc_program_new_from_static_bytecode (bc);
2928 orc_program_set_backup_function (p, _backup_audio_orc_pack_s16);
2930 p = orc_program_new ();
2931 orc_program_set_name (p, "audio_orc_pack_s16");
2932 orc_program_set_backup_function (p, _backup_audio_orc_pack_s16);
2933 orc_program_add_destination (p, 2, "d1");
2934 orc_program_add_source (p, 4, "s1");
2935 orc_program_add_constant (p, 4, 0x00000010, "c1");
2936 orc_program_add_temporary (p, 4, "t1");
2938 orc_program_append_2 (p, "shrsl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_C1,
2940 orc_program_append_2 (p, "convlw", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
2944 orc_program_compile (p);
2945 c = orc_program_take_code (p);
2946 orc_program_free (p);
2949 orc_once_mutex_unlock ();
2951 ex->arrays[ORC_VAR_A2] = c;
2955 ex->arrays[ORC_VAR_D1] = d1;
2956 ex->arrays[ORC_VAR_S1] = (void *) s1;
2964 /* audio_orc_pack_u16_swap */
2967 audio_orc_pack_u16_swap (guint8 * ORC_RESTRICT d1,
2968 const gint32 * ORC_RESTRICT s1, int n)
2971 orc_union16 *ORC_RESTRICT ptr0;
2972 const orc_union32 *ORC_RESTRICT ptr4;
2974 #if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
2975 volatile orc_union32 var35;
2984 ptr0 = (orc_union16 *) d1;
2985 ptr4 = (orc_union32 *) s1;
2988 var35.i = (int) 0x80000000; /* -2147483648 or 1.061e-314f */
2990 for (i = 0; i < n; i++) {
2994 var37.i = var34.i ^ var35.i;
2996 var38.i = ((orc_uint32) var37.i) >> 16;
3000 var36.i = ORC_SWAP_W (var39.i);
3009 _backup_audio_orc_pack_u16_swap (OrcExecutor * ORC_RESTRICT ex)
3013 orc_union16 *ORC_RESTRICT ptr0;
3014 const orc_union32 *ORC_RESTRICT ptr4;
3016 #if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
3017 volatile orc_union32 var35;
3026 ptr0 = (orc_union16 *) ex->arrays[0];
3027 ptr4 = (orc_union32 *) ex->arrays[4];
3030 var35.i = (int) 0x80000000; /* -2147483648 or 1.061e-314f */
3032 for (i = 0; i < n; i++) {
3036 var37.i = var34.i ^ var35.i;
3038 var38.i = ((orc_uint32) var37.i) >> 16;
3042 var36.i = ORC_SWAP_W (var39.i);
3050 audio_orc_pack_u16_swap (guint8 * ORC_RESTRICT d1,
3051 const gint32 * ORC_RESTRICT s1, int n)
3053 OrcExecutor _ex, *ex = &_ex;
3054 static volatile int p_inited = 0;
3055 static OrcCode *c = 0;
3056 void (*func) (OrcExecutor *);
3059 orc_once_mutex_lock ();
3064 static const orc_uint8 bc[] = {
3065 1, 9, 23, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 112, 97, 99,
3066 107, 95, 117, 49, 54, 95, 115, 119, 97, 112, 11, 2, 2, 12, 4, 4,
3067 14, 4, 0, 0, 0, 128, 14, 4, 16, 0, 0, 0, 20, 4, 20, 2,
3068 132, 32, 4, 16, 126, 32, 32, 17, 163, 33, 32, 183, 0, 33, 2, 0,
3071 p = orc_program_new_from_static_bytecode (bc);
3072 orc_program_set_backup_function (p, _backup_audio_orc_pack_u16_swap);
3074 p = orc_program_new ();
3075 orc_program_set_name (p, "audio_orc_pack_u16_swap");
3076 orc_program_set_backup_function (p, _backup_audio_orc_pack_u16_swap);
3077 orc_program_add_destination (p, 2, "d1");
3078 orc_program_add_source (p, 4, "s1");
3079 orc_program_add_constant (p, 4, 0x80000000, "c1");
3080 orc_program_add_constant (p, 4, 0x00000010, "c2");
3081 orc_program_add_temporary (p, 4, "t1");
3082 orc_program_add_temporary (p, 2, "t2");
3084 orc_program_append_2 (p, "xorl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_C1,
3086 orc_program_append_2 (p, "shrul", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_C2,
3088 orc_program_append_2 (p, "convlw", 0, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1,
3090 orc_program_append_2 (p, "swapw", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1,
3094 orc_program_compile (p);
3095 c = orc_program_take_code (p);
3096 orc_program_free (p);
3099 orc_once_mutex_unlock ();
3101 ex->arrays[ORC_VAR_A2] = c;
3105 ex->arrays[ORC_VAR_D1] = d1;
3106 ex->arrays[ORC_VAR_S1] = (void *) s1;
3114 /* audio_orc_pack_s16_swap */
3117 audio_orc_pack_s16_swap (guint8 * ORC_RESTRICT d1,
3118 const gint32 * ORC_RESTRICT s1, int n)
3121 orc_union16 *ORC_RESTRICT ptr0;
3122 const orc_union32 *ORC_RESTRICT ptr4;
3128 ptr0 = (orc_union16 *) d1;
3129 ptr4 = (orc_union32 *) s1;
3132 for (i = 0; i < n; i++) {
3136 var36.i = var34.i >> 16;
3140 var35.i = ORC_SWAP_W (var37.i);
3149 _backup_audio_orc_pack_s16_swap (OrcExecutor * ORC_RESTRICT ex)
3153 orc_union16 *ORC_RESTRICT ptr0;
3154 const orc_union32 *ORC_RESTRICT ptr4;
3160 ptr0 = (orc_union16 *) ex->arrays[0];
3161 ptr4 = (orc_union32 *) ex->arrays[4];
3164 for (i = 0; i < n; i++) {
3168 var36.i = var34.i >> 16;
3172 var35.i = ORC_SWAP_W (var37.i);
3180 audio_orc_pack_s16_swap (guint8 * ORC_RESTRICT d1,
3181 const gint32 * ORC_RESTRICT s1, int n)
3183 OrcExecutor _ex, *ex = &_ex;
3184 static volatile int p_inited = 0;
3185 static OrcCode *c = 0;
3186 void (*func) (OrcExecutor *);
3189 orc_once_mutex_lock ();
3194 static const orc_uint8 bc[] = {
3195 1, 9, 23, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 112, 97, 99,
3196 107, 95, 115, 49, 54, 95, 115, 119, 97, 112, 11, 2, 2, 12, 4, 4,
3197 14, 4, 16, 0, 0, 0, 20, 4, 20, 2, 125, 32, 4, 16, 163, 33,
3198 32, 183, 0, 33, 2, 0,
3200 p = orc_program_new_from_static_bytecode (bc);
3201 orc_program_set_backup_function (p, _backup_audio_orc_pack_s16_swap);
3203 p = orc_program_new ();
3204 orc_program_set_name (p, "audio_orc_pack_s16_swap");
3205 orc_program_set_backup_function (p, _backup_audio_orc_pack_s16_swap);
3206 orc_program_add_destination (p, 2, "d1");
3207 orc_program_add_source (p, 4, "s1");
3208 orc_program_add_constant (p, 4, 0x00000010, "c1");
3209 orc_program_add_temporary (p, 4, "t1");
3210 orc_program_add_temporary (p, 2, "t2");
3212 orc_program_append_2 (p, "shrsl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_C1,
3214 orc_program_append_2 (p, "convlw", 0, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1,
3216 orc_program_append_2 (p, "swapw", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1,
3220 orc_program_compile (p);
3221 c = orc_program_take_code (p);
3222 orc_program_free (p);
3225 orc_once_mutex_unlock ();
3227 ex->arrays[ORC_VAR_A2] = c;
3231 ex->arrays[ORC_VAR_D1] = d1;
3232 ex->arrays[ORC_VAR_S1] = (void *) s1;
3240 /* audio_orc_pack_u24_32 */
3243 audio_orc_pack_u24_32 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1,
3247 orc_union32 *ORC_RESTRICT ptr0;
3248 const orc_union32 *ORC_RESTRICT ptr4;
3250 #if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
3251 volatile orc_union32 var34;
3258 ptr0 = (orc_union32 *) d1;
3259 ptr4 = (orc_union32 *) s1;
3262 var34.i = (int) 0x80000000; /* -2147483648 or 1.061e-314f */
3264 for (i = 0; i < n; i++) {
3268 var36.i = var33.i ^ var34.i;
3270 var35.i = ((orc_uint32) var36.i) >> 8;
3279 _backup_audio_orc_pack_u24_32 (OrcExecutor * ORC_RESTRICT ex)
3283 orc_union32 *ORC_RESTRICT ptr0;
3284 const orc_union32 *ORC_RESTRICT ptr4;
3286 #if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
3287 volatile orc_union32 var34;
3294 ptr0 = (orc_union32 *) ex->arrays[0];
3295 ptr4 = (orc_union32 *) ex->arrays[4];
3298 var34.i = (int) 0x80000000; /* -2147483648 or 1.061e-314f */
3300 for (i = 0; i < n; i++) {
3304 var36.i = var33.i ^ var34.i;
3306 var35.i = ((orc_uint32) var36.i) >> 8;
3314 audio_orc_pack_u24_32 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1,
3317 OrcExecutor _ex, *ex = &_ex;
3318 static volatile int p_inited = 0;
3319 static OrcCode *c = 0;
3320 void (*func) (OrcExecutor *);
3323 orc_once_mutex_lock ();
3328 static const orc_uint8 bc[] = {
3329 1, 9, 21, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 112, 97, 99,
3330 107, 95, 117, 50, 52, 95, 51, 50, 11, 4, 4, 12, 4, 4, 14, 4,
3331 0, 0, 0, 128, 14, 4, 8, 0, 0, 0, 20, 4, 132, 32, 4, 16,
3332 126, 0, 32, 17, 2, 0,
3334 p = orc_program_new_from_static_bytecode (bc);
3335 orc_program_set_backup_function (p, _backup_audio_orc_pack_u24_32);
3337 p = orc_program_new ();
3338 orc_program_set_name (p, "audio_orc_pack_u24_32");
3339 orc_program_set_backup_function (p, _backup_audio_orc_pack_u24_32);
3340 orc_program_add_destination (p, 4, "d1");
3341 orc_program_add_source (p, 4, "s1");
3342 orc_program_add_constant (p, 4, 0x80000000, "c1");
3343 orc_program_add_constant (p, 4, 0x00000008, "c2");
3344 orc_program_add_temporary (p, 4, "t1");
3346 orc_program_append_2 (p, "xorl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_C1,
3348 orc_program_append_2 (p, "shrul", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_C2,
3352 orc_program_compile (p);
3353 c = orc_program_take_code (p);
3354 orc_program_free (p);
3357 orc_once_mutex_unlock ();
3359 ex->arrays[ORC_VAR_A2] = c;
3363 ex->arrays[ORC_VAR_D1] = d1;
3364 ex->arrays[ORC_VAR_S1] = (void *) s1;
3372 /* audio_orc_pack_s24_32 */
3375 audio_orc_pack_s24_32 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1,
3379 orc_union32 *ORC_RESTRICT ptr0;
3380 const orc_union32 *ORC_RESTRICT ptr4;
3384 ptr0 = (orc_union32 *) d1;
3385 ptr4 = (orc_union32 *) s1;
3388 for (i = 0; i < n; i++) {
3392 var33.i = var32.i >> 8;
3401 _backup_audio_orc_pack_s24_32 (OrcExecutor * ORC_RESTRICT ex)
3405 orc_union32 *ORC_RESTRICT ptr0;
3406 const orc_union32 *ORC_RESTRICT ptr4;
3410 ptr0 = (orc_union32 *) ex->arrays[0];
3411 ptr4 = (orc_union32 *) ex->arrays[4];
3414 for (i = 0; i < n; i++) {
3418 var33.i = var32.i >> 8;
3426 audio_orc_pack_s24_32 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1,
3429 OrcExecutor _ex, *ex = &_ex;
3430 static volatile int p_inited = 0;
3431 static OrcCode *c = 0;
3432 void (*func) (OrcExecutor *);
3435 orc_once_mutex_lock ();
3440 static const orc_uint8 bc[] = {
3441 1, 9, 21, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 112, 97, 99,
3442 107, 95, 115, 50, 52, 95, 51, 50, 11, 4, 4, 12, 4, 4, 14, 4,
3443 8, 0, 0, 0, 125, 0, 4, 16, 2, 0,
3445 p = orc_program_new_from_static_bytecode (bc);
3446 orc_program_set_backup_function (p, _backup_audio_orc_pack_s24_32);
3448 p = orc_program_new ();
3449 orc_program_set_name (p, "audio_orc_pack_s24_32");
3450 orc_program_set_backup_function (p, _backup_audio_orc_pack_s24_32);
3451 orc_program_add_destination (p, 4, "d1");
3452 orc_program_add_source (p, 4, "s1");
3453 orc_program_add_constant (p, 4, 0x00000008, "c1");
3455 orc_program_append_2 (p, "shrsl", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_C1,
3459 orc_program_compile (p);
3460 c = orc_program_take_code (p);
3461 orc_program_free (p);
3464 orc_once_mutex_unlock ();
3466 ex->arrays[ORC_VAR_A2] = c;
3470 ex->arrays[ORC_VAR_D1] = d1;
3471 ex->arrays[ORC_VAR_S1] = (void *) s1;
3479 /* audio_orc_pack_u24_32_swap */
3482 audio_orc_pack_u24_32_swap (guint8 * ORC_RESTRICT d1,
3483 const gint32 * ORC_RESTRICT s1, int n)
3486 orc_union32 *ORC_RESTRICT ptr0;
3487 const orc_union32 *ORC_RESTRICT ptr4;
3489 #if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
3490 volatile orc_union32 var34;
3498 ptr0 = (orc_union32 *) d1;
3499 ptr4 = (orc_union32 *) s1;
3502 var34.i = (int) 0x80000000; /* -2147483648 or 1.061e-314f */
3504 for (i = 0; i < n; i++) {
3508 var36.i = var33.i ^ var34.i;
3510 var37.i = ((orc_uint32) var36.i) >> 8;
3512 var35.i = ORC_SWAP_L (var37.i);
3521 _backup_audio_orc_pack_u24_32_swap (OrcExecutor * ORC_RESTRICT ex)
3525 orc_union32 *ORC_RESTRICT ptr0;
3526 const orc_union32 *ORC_RESTRICT ptr4;
3528 #if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
3529 volatile orc_union32 var34;
3537 ptr0 = (orc_union32 *) ex->arrays[0];
3538 ptr4 = (orc_union32 *) ex->arrays[4];
3541 var34.i = (int) 0x80000000; /* -2147483648 or 1.061e-314f */
3543 for (i = 0; i < n; i++) {
3547 var36.i = var33.i ^ var34.i;
3549 var37.i = ((orc_uint32) var36.i) >> 8;
3551 var35.i = ORC_SWAP_L (var37.i);
3559 audio_orc_pack_u24_32_swap (guint8 * ORC_RESTRICT d1,
3560 const gint32 * ORC_RESTRICT s1, int n)
3562 OrcExecutor _ex, *ex = &_ex;
3563 static volatile int p_inited = 0;
3564 static OrcCode *c = 0;
3565 void (*func) (OrcExecutor *);
3568 orc_once_mutex_lock ();
3573 static const orc_uint8 bc[] = {
3574 1, 9, 26, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 112, 97, 99,
3575 107, 95, 117, 50, 52, 95, 51, 50, 95, 115, 119, 97, 112, 11, 4, 4,
3576 12, 4, 4, 14, 4, 0, 0, 0, 128, 14, 4, 8, 0, 0, 0, 20,
3577 4, 132, 32, 4, 16, 126, 32, 32, 17, 184, 0, 32, 2, 0,
3579 p = orc_program_new_from_static_bytecode (bc);
3580 orc_program_set_backup_function (p, _backup_audio_orc_pack_u24_32_swap);
3582 p = orc_program_new ();
3583 orc_program_set_name (p, "audio_orc_pack_u24_32_swap");
3584 orc_program_set_backup_function (p, _backup_audio_orc_pack_u24_32_swap);
3585 orc_program_add_destination (p, 4, "d1");
3586 orc_program_add_source (p, 4, "s1");
3587 orc_program_add_constant (p, 4, 0x80000000, "c1");
3588 orc_program_add_constant (p, 4, 0x00000008, "c2");
3589 orc_program_add_temporary (p, 4, "t1");
3591 orc_program_append_2 (p, "xorl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_C1,
3593 orc_program_append_2 (p, "shrul", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_C2,
3595 orc_program_append_2 (p, "swapl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
3599 orc_program_compile (p);
3600 c = orc_program_take_code (p);
3601 orc_program_free (p);
3604 orc_once_mutex_unlock ();
3606 ex->arrays[ORC_VAR_A2] = c;
3610 ex->arrays[ORC_VAR_D1] = d1;
3611 ex->arrays[ORC_VAR_S1] = (void *) s1;
3619 /* audio_orc_pack_s24_32_swap */
3622 audio_orc_pack_s24_32_swap (guint8 * ORC_RESTRICT d1,
3623 const gint32 * ORC_RESTRICT s1, int n)
3626 orc_union32 *ORC_RESTRICT ptr0;
3627 const orc_union32 *ORC_RESTRICT ptr4;
3632 ptr0 = (orc_union32 *) d1;
3633 ptr4 = (orc_union32 *) s1;
3636 for (i = 0; i < n; i++) {
3640 var35.i = var33.i >> 8;
3642 var34.i = ORC_SWAP_L (var35.i);
3651 _backup_audio_orc_pack_s24_32_swap (OrcExecutor * ORC_RESTRICT ex)
3655 orc_union32 *ORC_RESTRICT ptr0;
3656 const orc_union32 *ORC_RESTRICT ptr4;
3661 ptr0 = (orc_union32 *) ex->arrays[0];
3662 ptr4 = (orc_union32 *) ex->arrays[4];
3665 for (i = 0; i < n; i++) {
3669 var35.i = var33.i >> 8;
3671 var34.i = ORC_SWAP_L (var35.i);
3679 audio_orc_pack_s24_32_swap (guint8 * ORC_RESTRICT d1,
3680 const gint32 * ORC_RESTRICT s1, int n)
3682 OrcExecutor _ex, *ex = &_ex;
3683 static volatile int p_inited = 0;
3684 static OrcCode *c = 0;
3685 void (*func) (OrcExecutor *);
3688 orc_once_mutex_lock ();
3693 static const orc_uint8 bc[] = {
3694 1, 9, 26, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 112, 97, 99,
3695 107, 95, 115, 50, 52, 95, 51, 50, 95, 115, 119, 97, 112, 11, 4, 4,
3696 12, 4, 4, 14, 4, 8, 0, 0, 0, 20, 4, 125, 32, 4, 16, 184,
3699 p = orc_program_new_from_static_bytecode (bc);
3700 orc_program_set_backup_function (p, _backup_audio_orc_pack_s24_32_swap);
3702 p = orc_program_new ();
3703 orc_program_set_name (p, "audio_orc_pack_s24_32_swap");
3704 orc_program_set_backup_function (p, _backup_audio_orc_pack_s24_32_swap);
3705 orc_program_add_destination (p, 4, "d1");
3706 orc_program_add_source (p, 4, "s1");
3707 orc_program_add_constant (p, 4, 0x00000008, "c1");
3708 orc_program_add_temporary (p, 4, "t1");
3710 orc_program_append_2 (p, "shrsl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_C1,
3712 orc_program_append_2 (p, "swapl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
3716 orc_program_compile (p);
3717 c = orc_program_take_code (p);
3718 orc_program_free (p);
3721 orc_once_mutex_unlock ();
3723 ex->arrays[ORC_VAR_A2] = c;
3727 ex->arrays[ORC_VAR_D1] = d1;
3728 ex->arrays[ORC_VAR_S1] = (void *) s1;
3736 /* audio_orc_pack_u32 */
3739 audio_orc_pack_u32 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1,
3743 orc_union32 *ORC_RESTRICT ptr0;
3744 const orc_union32 *ORC_RESTRICT ptr4;
3746 #if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
3747 volatile orc_union32 var33;
3753 ptr0 = (orc_union32 *) d1;
3754 ptr4 = (orc_union32 *) s1;
3757 var33.i = (int) 0x80000000; /* -2147483648 or 1.061e-314f */
3759 for (i = 0; i < n; i++) {
3763 var34.i = var32.i ^ var33.i;
3772 _backup_audio_orc_pack_u32 (OrcExecutor * ORC_RESTRICT ex)
3776 orc_union32 *ORC_RESTRICT ptr0;
3777 const orc_union32 *ORC_RESTRICT ptr4;
3779 #if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
3780 volatile orc_union32 var33;
3786 ptr0 = (orc_union32 *) ex->arrays[0];
3787 ptr4 = (orc_union32 *) ex->arrays[4];
3790 var33.i = (int) 0x80000000; /* -2147483648 or 1.061e-314f */
3792 for (i = 0; i < n; i++) {
3796 var34.i = var32.i ^ var33.i;
3804 audio_orc_pack_u32 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1,
3807 OrcExecutor _ex, *ex = &_ex;
3808 static volatile int p_inited = 0;
3809 static OrcCode *c = 0;
3810 void (*func) (OrcExecutor *);
3813 orc_once_mutex_lock ();
3818 static const orc_uint8 bc[] = {
3819 1, 9, 18, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 112, 97, 99,
3820 107, 95, 117, 51, 50, 11, 4, 4, 12, 4, 4, 14, 4, 0, 0, 0,
3821 128, 132, 0, 4, 16, 2, 0,
3823 p = orc_program_new_from_static_bytecode (bc);
3824 orc_program_set_backup_function (p, _backup_audio_orc_pack_u32);
3826 p = orc_program_new ();
3827 orc_program_set_name (p, "audio_orc_pack_u32");
3828 orc_program_set_backup_function (p, _backup_audio_orc_pack_u32);
3829 orc_program_add_destination (p, 4, "d1");
3830 orc_program_add_source (p, 4, "s1");
3831 orc_program_add_constant (p, 4, 0x80000000, "c1");
3833 orc_program_append_2 (p, "xorl", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_C1,
3837 orc_program_compile (p);
3838 c = orc_program_take_code (p);
3839 orc_program_free (p);
3842 orc_once_mutex_unlock ();
3844 ex->arrays[ORC_VAR_A2] = c;
3848 ex->arrays[ORC_VAR_D1] = d1;
3849 ex->arrays[ORC_VAR_S1] = (void *) s1;
3857 /* audio_orc_pack_s32 */
3860 audio_orc_pack_s32 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1,
3864 orc_union32 *ORC_RESTRICT ptr0;
3865 const orc_union32 *ORC_RESTRICT ptr4;
3869 ptr0 = (orc_union32 *) d1;
3870 ptr4 = (orc_union32 *) s1;
3873 for (i = 0; i < n; i++) {
3886 _backup_audio_orc_pack_s32 (OrcExecutor * ORC_RESTRICT ex)
3890 orc_union32 *ORC_RESTRICT ptr0;
3891 const orc_union32 *ORC_RESTRICT ptr4;
3895 ptr0 = (orc_union32 *) ex->arrays[0];
3896 ptr4 = (orc_union32 *) ex->arrays[4];
3899 for (i = 0; i < n; i++) {
3911 audio_orc_pack_s32 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1,
3914 OrcExecutor _ex, *ex = &_ex;
3915 static volatile int p_inited = 0;
3916 static OrcCode *c = 0;
3917 void (*func) (OrcExecutor *);
3920 orc_once_mutex_lock ();
3925 static const orc_uint8 bc[] = {
3926 1, 9, 18, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 112, 97, 99,
3927 107, 95, 115, 51, 50, 11, 4, 4, 12, 4, 4, 112, 0, 4, 2, 0,
3930 p = orc_program_new_from_static_bytecode (bc);
3931 orc_program_set_backup_function (p, _backup_audio_orc_pack_s32);
3933 p = orc_program_new ();
3934 orc_program_set_name (p, "audio_orc_pack_s32");
3935 orc_program_set_backup_function (p, _backup_audio_orc_pack_s32);
3936 orc_program_add_destination (p, 4, "d1");
3937 orc_program_add_source (p, 4, "s1");
3939 orc_program_append_2 (p, "copyl", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1,
3943 orc_program_compile (p);
3944 c = orc_program_take_code (p);
3945 orc_program_free (p);
3948 orc_once_mutex_unlock ();
3950 ex->arrays[ORC_VAR_A2] = c;
3954 ex->arrays[ORC_VAR_D1] = d1;
3955 ex->arrays[ORC_VAR_S1] = (void *) s1;
3963 /* audio_orc_pack_u32_swap */
3966 audio_orc_pack_u32_swap (guint8 * ORC_RESTRICT d1,
3967 const gint32 * ORC_RESTRICT s1, int n)
3970 orc_union32 *ORC_RESTRICT ptr0;
3971 const orc_union32 *ORC_RESTRICT ptr4;
3973 #if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
3974 volatile orc_union32 var33;
3980 ptr0 = (orc_union32 *) d1;
3981 ptr4 = (orc_union32 *) s1;
3984 var33.i = (int) 0x80000000; /* -2147483648 or 1.061e-314f */
3986 for (i = 0; i < n; i++) {
3990 var34.i = var32.i ^ var33.i;
3999 _backup_audio_orc_pack_u32_swap (OrcExecutor * ORC_RESTRICT ex)
4003 orc_union32 *ORC_RESTRICT ptr0;
4004 const orc_union32 *ORC_RESTRICT ptr4;
4006 #if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
4007 volatile orc_union32 var33;
4013 ptr0 = (orc_union32 *) ex->arrays[0];
4014 ptr4 = (orc_union32 *) ex->arrays[4];
4017 var33.i = (int) 0x80000000; /* -2147483648 or 1.061e-314f */
4019 for (i = 0; i < n; i++) {
4023 var34.i = var32.i ^ var33.i;
4031 audio_orc_pack_u32_swap (guint8 * ORC_RESTRICT d1,
4032 const gint32 * ORC_RESTRICT s1, int n)
4034 OrcExecutor _ex, *ex = &_ex;
4035 static volatile int p_inited = 0;
4036 static OrcCode *c = 0;
4037 void (*func) (OrcExecutor *);
4040 orc_once_mutex_lock ();
4045 static const orc_uint8 bc[] = {
4046 1, 9, 23, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 112, 97, 99,
4047 107, 95, 117, 51, 50, 95, 115, 119, 97, 112, 11, 4, 4, 12, 4, 4,
4048 14, 4, 0, 0, 0, 128, 132, 0, 4, 16, 2, 0,
4050 p = orc_program_new_from_static_bytecode (bc);
4051 orc_program_set_backup_function (p, _backup_audio_orc_pack_u32_swap);
4053 p = orc_program_new ();
4054 orc_program_set_name (p, "audio_orc_pack_u32_swap");
4055 orc_program_set_backup_function (p, _backup_audio_orc_pack_u32_swap);
4056 orc_program_add_destination (p, 4, "d1");
4057 orc_program_add_source (p, 4, "s1");
4058 orc_program_add_constant (p, 4, 0x80000000, "c1");
4060 orc_program_append_2 (p, "xorl", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_C1,
4064 orc_program_compile (p);
4065 c = orc_program_take_code (p);
4066 orc_program_free (p);
4069 orc_once_mutex_unlock ();
4071 ex->arrays[ORC_VAR_A2] = c;
4075 ex->arrays[ORC_VAR_D1] = d1;
4076 ex->arrays[ORC_VAR_S1] = (void *) s1;
4084 /* audio_orc_pack_s32_swap */
4087 audio_orc_pack_s32_swap (guint8 * ORC_RESTRICT d1,
4088 const gint32 * ORC_RESTRICT s1, int n)
4091 orc_union32 *ORC_RESTRICT ptr0;
4092 const orc_union32 *ORC_RESTRICT ptr4;
4096 ptr0 = (orc_union32 *) d1;
4097 ptr4 = (orc_union32 *) s1;
4100 for (i = 0; i < n; i++) {
4104 var33.i = ORC_SWAP_L (var32.i);
4113 _backup_audio_orc_pack_s32_swap (OrcExecutor * ORC_RESTRICT ex)
4117 orc_union32 *ORC_RESTRICT ptr0;
4118 const orc_union32 *ORC_RESTRICT ptr4;
4122 ptr0 = (orc_union32 *) ex->arrays[0];
4123 ptr4 = (orc_union32 *) ex->arrays[4];
4126 for (i = 0; i < n; i++) {
4130 var33.i = ORC_SWAP_L (var32.i);
4138 audio_orc_pack_s32_swap (guint8 * ORC_RESTRICT d1,
4139 const gint32 * ORC_RESTRICT s1, int n)
4141 OrcExecutor _ex, *ex = &_ex;
4142 static volatile int p_inited = 0;
4143 static OrcCode *c = 0;
4144 void (*func) (OrcExecutor *);
4147 orc_once_mutex_lock ();
4152 static const orc_uint8 bc[] = {
4153 1, 9, 23, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 112, 97, 99,
4154 107, 95, 115, 51, 50, 95, 115, 119, 97, 112, 11, 4, 4, 12, 4, 4,
4157 p = orc_program_new_from_static_bytecode (bc);
4158 orc_program_set_backup_function (p, _backup_audio_orc_pack_s32_swap);
4160 p = orc_program_new ();
4161 orc_program_set_name (p, "audio_orc_pack_s32_swap");
4162 orc_program_set_backup_function (p, _backup_audio_orc_pack_s32_swap);
4163 orc_program_add_destination (p, 4, "d1");
4164 orc_program_add_source (p, 4, "s1");
4166 orc_program_append_2 (p, "swapl", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1,
4170 orc_program_compile (p);
4171 c = orc_program_take_code (p);
4172 orc_program_free (p);
4175 orc_once_mutex_unlock ();
4177 ex->arrays[ORC_VAR_A2] = c;
4181 ex->arrays[ORC_VAR_D1] = d1;
4182 ex->arrays[ORC_VAR_S1] = (void *) s1;
4190 /* audio_orc_pack_f32 */
4193 audio_orc_pack_f32 (gfloat * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1,
4197 orc_union32 *ORC_RESTRICT ptr0;
4198 const orc_union64 *ORC_RESTRICT ptr4;
4202 ptr0 = (orc_union32 *) d1;
4203 ptr4 = (orc_union64 *) s1;
4206 for (i = 0; i < n; i++) {
4213 _src1.i = ORC_DENORMAL_DOUBLE (var32.i);
4215 var33.i = ORC_DENORMAL (_dest.i);
4225 _backup_audio_orc_pack_f32 (OrcExecutor * ORC_RESTRICT ex)
4229 orc_union32 *ORC_RESTRICT ptr0;
4230 const orc_union64 *ORC_RESTRICT ptr4;
4234 ptr0 = (orc_union32 *) ex->arrays[0];
4235 ptr4 = (orc_union64 *) ex->arrays[4];
4238 for (i = 0; i < n; i++) {
4245 _src1.i = ORC_DENORMAL_DOUBLE (var32.i);
4247 var33.i = ORC_DENORMAL (_dest.i);
4256 audio_orc_pack_f32 (gfloat * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1,
4259 OrcExecutor _ex, *ex = &_ex;
4260 static volatile int p_inited = 0;
4261 static OrcCode *c = 0;
4262 void (*func) (OrcExecutor *);
4265 orc_once_mutex_lock ();
4270 static const orc_uint8 bc[] = {
4271 1, 9, 18, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 112, 97, 99,
4272 107, 95, 102, 51, 50, 11, 4, 4, 12, 8, 8, 225, 0, 4, 2, 0,
4275 p = orc_program_new_from_static_bytecode (bc);
4276 orc_program_set_backup_function (p, _backup_audio_orc_pack_f32);
4278 p = orc_program_new ();
4279 orc_program_set_name (p, "audio_orc_pack_f32");
4280 orc_program_set_backup_function (p, _backup_audio_orc_pack_f32);
4281 orc_program_add_destination (p, 4, "d1");
4282 orc_program_add_source (p, 8, "s1");
4284 orc_program_append_2 (p, "convdf", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1,
4288 orc_program_compile (p);
4289 c = orc_program_take_code (p);
4290 orc_program_free (p);
4293 orc_once_mutex_unlock ();
4295 ex->arrays[ORC_VAR_A2] = c;
4299 ex->arrays[ORC_VAR_D1] = d1;
4300 ex->arrays[ORC_VAR_S1] = (void *) s1;
4308 /* audio_orc_pack_f32_swap */
4311 audio_orc_pack_f32_swap (gfloat * ORC_RESTRICT d1,
4312 const gdouble * ORC_RESTRICT s1, int n)
4315 orc_union32 *ORC_RESTRICT ptr0;
4316 const orc_union64 *ORC_RESTRICT ptr4;
4321 ptr0 = (orc_union32 *) d1;
4322 ptr4 = (orc_union64 *) s1;
4325 for (i = 0; i < n; i++) {
4332 _src1.i = ORC_DENORMAL_DOUBLE (var33.i);
4334 var35.i = ORC_DENORMAL (_dest.i);
4337 var34.i = ORC_SWAP_L (var35.i);
4346 _backup_audio_orc_pack_f32_swap (OrcExecutor * ORC_RESTRICT ex)
4350 orc_union32 *ORC_RESTRICT ptr0;
4351 const orc_union64 *ORC_RESTRICT ptr4;
4356 ptr0 = (orc_union32 *) ex->arrays[0];
4357 ptr4 = (orc_union64 *) ex->arrays[4];
4360 for (i = 0; i < n; i++) {
4367 _src1.i = ORC_DENORMAL_DOUBLE (var33.i);
4369 var35.i = ORC_DENORMAL (_dest.i);
4372 var34.i = ORC_SWAP_L (var35.i);
4380 audio_orc_pack_f32_swap (gfloat * ORC_RESTRICT d1,
4381 const gdouble * ORC_RESTRICT s1, int n)
4383 OrcExecutor _ex, *ex = &_ex;
4384 static volatile int p_inited = 0;
4385 static OrcCode *c = 0;
4386 void (*func) (OrcExecutor *);
4389 orc_once_mutex_lock ();
4394 static const orc_uint8 bc[] = {
4395 1, 9, 23, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 112, 97, 99,
4396 107, 95, 102, 51, 50, 95, 115, 119, 97, 112, 11, 4, 4, 12, 8, 8,
4397 20, 4, 225, 32, 4, 184, 0, 32, 2, 0,
4399 p = orc_program_new_from_static_bytecode (bc);
4400 orc_program_set_backup_function (p, _backup_audio_orc_pack_f32_swap);
4402 p = orc_program_new ();
4403 orc_program_set_name (p, "audio_orc_pack_f32_swap");
4404 orc_program_set_backup_function (p, _backup_audio_orc_pack_f32_swap);
4405 orc_program_add_destination (p, 4, "d1");
4406 orc_program_add_source (p, 8, "s1");
4407 orc_program_add_temporary (p, 4, "t1");
4409 orc_program_append_2 (p, "convdf", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
4411 orc_program_append_2 (p, "swapl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
4415 orc_program_compile (p);
4416 c = orc_program_take_code (p);
4417 orc_program_free (p);
4420 orc_once_mutex_unlock ();
4422 ex->arrays[ORC_VAR_A2] = c;
4426 ex->arrays[ORC_VAR_D1] = d1;
4427 ex->arrays[ORC_VAR_S1] = (void *) s1;
4435 /* audio_orc_pack_f64 */
4438 audio_orc_pack_f64 (gdouble * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1,
4442 orc_union64 *ORC_RESTRICT ptr0;
4443 const orc_union64 *ORC_RESTRICT ptr4;
4447 ptr0 = (orc_union64 *) d1;
4448 ptr4 = (orc_union64 *) s1;
4451 for (i = 0; i < n; i++) {
4464 _backup_audio_orc_pack_f64 (OrcExecutor * ORC_RESTRICT ex)
4468 orc_union64 *ORC_RESTRICT ptr0;
4469 const orc_union64 *ORC_RESTRICT ptr4;
4473 ptr0 = (orc_union64 *) ex->arrays[0];
4474 ptr4 = (orc_union64 *) ex->arrays[4];
4477 for (i = 0; i < n; i++) {
4489 audio_orc_pack_f64 (gdouble * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1,
4492 OrcExecutor _ex, *ex = &_ex;
4493 static volatile int p_inited = 0;
4494 static OrcCode *c = 0;
4495 void (*func) (OrcExecutor *);
4498 orc_once_mutex_lock ();
4503 static const orc_uint8 bc[] = {
4504 1, 9, 18, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 112, 97, 99,
4505 107, 95, 102, 54, 52, 11, 8, 8, 12, 8, 8, 137, 0, 4, 2, 0,
4508 p = orc_program_new_from_static_bytecode (bc);
4509 orc_program_set_backup_function (p, _backup_audio_orc_pack_f64);
4511 p = orc_program_new ();
4512 orc_program_set_name (p, "audio_orc_pack_f64");
4513 orc_program_set_backup_function (p, _backup_audio_orc_pack_f64);
4514 orc_program_add_destination (p, 8, "d1");
4515 orc_program_add_source (p, 8, "s1");
4517 orc_program_append_2 (p, "copyq", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1,
4521 orc_program_compile (p);
4522 c = orc_program_take_code (p);
4523 orc_program_free (p);
4526 orc_once_mutex_unlock ();
4528 ex->arrays[ORC_VAR_A2] = c;
4532 ex->arrays[ORC_VAR_D1] = d1;
4533 ex->arrays[ORC_VAR_S1] = (void *) s1;
4541 /* audio_orc_pack_f64_swap */
4544 audio_orc_pack_f64_swap (gdouble * ORC_RESTRICT d1,
4545 const gdouble * ORC_RESTRICT s1, int n)
4548 orc_union64 *ORC_RESTRICT ptr0;
4549 const orc_union64 *ORC_RESTRICT ptr4;
4553 ptr0 = (orc_union64 *) d1;
4554 ptr4 = (orc_union64 *) s1;
4557 for (i = 0; i < n; i++) {
4561 var33.i = ORC_SWAP_Q (var32.i);
4570 _backup_audio_orc_pack_f64_swap (OrcExecutor * ORC_RESTRICT ex)
4574 orc_union64 *ORC_RESTRICT ptr0;
4575 const orc_union64 *ORC_RESTRICT ptr4;
4579 ptr0 = (orc_union64 *) ex->arrays[0];
4580 ptr4 = (orc_union64 *) ex->arrays[4];
4583 for (i = 0; i < n; i++) {
4587 var33.i = ORC_SWAP_Q (var32.i);
4595 audio_orc_pack_f64_swap (gdouble * ORC_RESTRICT d1,
4596 const gdouble * ORC_RESTRICT s1, int n)
4598 OrcExecutor _ex, *ex = &_ex;
4599 static volatile int p_inited = 0;
4600 static OrcCode *c = 0;
4601 void (*func) (OrcExecutor *);
4604 orc_once_mutex_lock ();
4609 static const orc_uint8 bc[] = {
4610 1, 9, 23, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 112, 97, 99,
4611 107, 95, 102, 54, 52, 95, 115, 119, 97, 112, 11, 8, 8, 12, 8, 8,
4614 p = orc_program_new_from_static_bytecode (bc);
4615 orc_program_set_backup_function (p, _backup_audio_orc_pack_f64_swap);
4617 p = orc_program_new ();
4618 orc_program_set_name (p, "audio_orc_pack_f64_swap");
4619 orc_program_set_backup_function (p, _backup_audio_orc_pack_f64_swap);
4620 orc_program_add_destination (p, 8, "d1");
4621 orc_program_add_source (p, 8, "s1");
4623 orc_program_append_2 (p, "swapq", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1,
4627 orc_program_compile (p);
4628 c = orc_program_take_code (p);
4629 orc_program_free (p);
4632 orc_once_mutex_unlock ();
4634 ex->arrays[ORC_VAR_A2] = c;
4638 ex->arrays[ORC_VAR_D1] = d1;
4639 ex->arrays[ORC_VAR_S1] = (void *) s1;