void orc_audio_convert_pack_double_s32_swap (guint8 * ORC_RESTRICT d1,
const gdouble * ORC_RESTRICT s1, int p1, int n);
-void gst_audio_convert_orc_init (void);
-
/* begin Orc C target preamble */
#define ORC_CLAMP(x,a,b) ((x)<(a) ? (a) : ((x)>(b) ? (b) : (x)))
}
-static OrcProgram *_orc_program_orc_audio_convert_unpack_u8;
void
orc_audio_convert_unpack_u8 (gint32 * ORC_RESTRICT d1,
const guint8 * ORC_RESTRICT s1, int p1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_unpack_u8;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_unpack_u8");
+ orc_program_set_backup_function (p, _backup_orc_audio_convert_unpack_u8);
+ orc_program_add_destination (p, 4, "d1");
+ orc_program_add_source (p, 1, "s1");
+ orc_program_add_constant (p, 4, 0x80000000, "c1");
+ orc_program_add_parameter (p, 4, "p1");
+ orc_program_add_temporary (p, 2, "t1");
+ orc_program_add_temporary (p, 4, "t2");
+
+ orc_program_append_2 (p, "convubw", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "convuwl", 0, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "shll", 0, ORC_VAR_T2, ORC_VAR_T2, ORC_VAR_P1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "xorl", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_C1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_unpack_s8;
void
orc_audio_convert_unpack_s8 (gint32 * ORC_RESTRICT d1,
const guint8 * ORC_RESTRICT s1, int p1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_unpack_s8;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_unpack_s8");
+ orc_program_set_backup_function (p, _backup_orc_audio_convert_unpack_s8);
+ orc_program_add_destination (p, 4, "d1");
+ orc_program_add_source (p, 1, "s1");
+ orc_program_add_parameter (p, 4, "p1");
+ orc_program_add_temporary (p, 2, "t1");
+ orc_program_add_temporary (p, 4, "t2");
+
+ orc_program_append_2 (p, "convubw", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "convuwl", 0, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "shll", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_P1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_unpack_u16;
void
orc_audio_convert_unpack_u16 (gint32 * ORC_RESTRICT d1,
const guint8 * ORC_RESTRICT s1, int p1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_unpack_u16;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_unpack_u16");
+ orc_program_set_backup_function (p, _backup_orc_audio_convert_unpack_u16);
+ orc_program_add_destination (p, 4, "d1");
+ orc_program_add_source (p, 2, "s1");
+ orc_program_add_constant (p, 4, 0x80000000, "c1");
+ orc_program_add_parameter (p, 4, "p1");
+ orc_program_add_temporary (p, 4, "t1");
+
+ orc_program_append_2 (p, "convuwl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "shll", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_P1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "xorl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_C1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_unpack_s16;
void
orc_audio_convert_unpack_s16 (gint32 * ORC_RESTRICT d1,
const guint8 * ORC_RESTRICT s1, int p1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_unpack_s16;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_unpack_s16");
+ orc_program_set_backup_function (p, _backup_orc_audio_convert_unpack_s16);
+ orc_program_add_destination (p, 4, "d1");
+ orc_program_add_source (p, 2, "s1");
+ orc_program_add_parameter (p, 4, "p1");
+ orc_program_add_temporary (p, 4, "t1");
+
+ orc_program_append_2 (p, "convuwl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "shll", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_P1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_unpack_u16_swap;
void
orc_audio_convert_unpack_u16_swap (gint32 * ORC_RESTRICT d1,
const guint8 * ORC_RESTRICT s1, int p1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_unpack_u16_swap;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_unpack_u16_swap");
+ orc_program_set_backup_function (p,
+ _backup_orc_audio_convert_unpack_u16_swap);
+ orc_program_add_destination (p, 4, "d1");
+ orc_program_add_source (p, 2, "s1");
+ orc_program_add_constant (p, 4, 0x80000000, "c1");
+ orc_program_add_parameter (p, 4, "p1");
+ orc_program_add_temporary (p, 2, "t1");
+ orc_program_add_temporary (p, 4, "t2");
+
+ orc_program_append_2 (p, "swapw", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "convuwl", 0, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "shll", 0, ORC_VAR_T2, ORC_VAR_T2, ORC_VAR_P1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "xorl", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_C1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_unpack_s16_swap;
void
orc_audio_convert_unpack_s16_swap (gint32 * ORC_RESTRICT d1,
const guint8 * ORC_RESTRICT s1, int p1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_unpack_s16_swap;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_unpack_s16_swap");
+ orc_program_set_backup_function (p,
+ _backup_orc_audio_convert_unpack_s16_swap);
+ orc_program_add_destination (p, 4, "d1");
+ orc_program_add_source (p, 2, "s1");
+ orc_program_add_parameter (p, 4, "p1");
+ orc_program_add_temporary (p, 2, "t1");
+ orc_program_add_temporary (p, 4, "t2");
+
+ orc_program_append_2 (p, "swapw", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "convuwl", 0, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "shll", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_P1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_unpack_u32;
void
orc_audio_convert_unpack_u32 (gint32 * ORC_RESTRICT d1,
const guint8 * ORC_RESTRICT s1, int p1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_unpack_u32;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_unpack_u32");
+ orc_program_set_backup_function (p, _backup_orc_audio_convert_unpack_u32);
+ orc_program_add_destination (p, 4, "d1");
+ orc_program_add_source (p, 4, "s1");
+ orc_program_add_constant (p, 4, 0x80000000, "c1");
+ orc_program_add_parameter (p, 4, "p1");
+ orc_program_add_temporary (p, 4, "t1");
+
+ orc_program_append_2 (p, "shll", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_P1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "xorl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_C1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_unpack_s32;
void
orc_audio_convert_unpack_s32 (gint32 * ORC_RESTRICT d1,
const guint8 * ORC_RESTRICT s1, int p1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_unpack_s32;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_unpack_s32");
+ orc_program_set_backup_function (p, _backup_orc_audio_convert_unpack_s32);
+ orc_program_add_destination (p, 4, "d1");
+ orc_program_add_source (p, 4, "s1");
+ orc_program_add_parameter (p, 4, "p1");
+
+ orc_program_append_2 (p, "shll", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_P1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_unpack_u32_swap;
void
orc_audio_convert_unpack_u32_swap (gint32 * ORC_RESTRICT d1,
const guint8 * ORC_RESTRICT s1, int p1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_unpack_u32_swap;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_unpack_u32_swap");
+ orc_program_set_backup_function (p,
+ _backup_orc_audio_convert_unpack_u32_swap);
+ orc_program_add_destination (p, 4, "d1");
+ orc_program_add_source (p, 4, "s1");
+ orc_program_add_constant (p, 4, 0x80000000, "c1");
+ orc_program_add_parameter (p, 4, "p1");
+ orc_program_add_temporary (p, 4, "t1");
+
+ orc_program_append_2 (p, "swapl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "shll", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_P1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "xorl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_C1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_unpack_s32_swap;
void
orc_audio_convert_unpack_s32_swap (gint32 * ORC_RESTRICT d1,
const guint8 * ORC_RESTRICT s1, int p1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_unpack_s32_swap;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_unpack_s32_swap");
+ orc_program_set_backup_function (p,
+ _backup_orc_audio_convert_unpack_s32_swap);
+ orc_program_add_destination (p, 4, "d1");
+ orc_program_add_source (p, 4, "s1");
+ orc_program_add_parameter (p, 4, "p1");
+ orc_program_add_temporary (p, 4, "t1");
+
+ orc_program_append_2 (p, "swapl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "shll", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_P1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_unpack_float_s32;
void
orc_audio_convert_unpack_float_s32 (guint32 * ORC_RESTRICT d1,
const gfloat * ORC_RESTRICT s1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_unpack_float_s32;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_unpack_float_s32");
+ orc_program_set_backup_function (p,
+ _backup_orc_audio_convert_unpack_float_s32);
+ orc_program_add_destination (p, 4, "d1");
+ orc_program_add_source (p, 4, "s1");
+ orc_program_add_constant (p, 4, 0x4f000000, "c1");
+ orc_program_add_constant (p, 4, 0x3f000000, "c2");
+ orc_program_add_temporary (p, 4, "t1");
+
+ orc_program_append_2 (p, "loadl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "mulf", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_C1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "addf", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_C2,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "convfl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_unpack_float_s32_swap;
void
orc_audio_convert_unpack_float_s32_swap (guint32 * ORC_RESTRICT d1,
const gfloat * ORC_RESTRICT s1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_unpack_float_s32_swap;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_unpack_float_s32_swap");
+ orc_program_set_backup_function (p,
+ _backup_orc_audio_convert_unpack_float_s32_swap);
+ orc_program_add_destination (p, 4, "d1");
+ orc_program_add_source (p, 4, "s1");
+ orc_program_add_constant (p, 4, 0x4f000000, "c1");
+ orc_program_add_constant (p, 4, 0x3f000000, "c2");
+ orc_program_add_temporary (p, 4, "t1");
+
+ orc_program_append_2 (p, "swapl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "mulf", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_C1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "addf", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_C2,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "convfl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_unpack_double_s32;
void
orc_audio_convert_unpack_double_s32 (guint32 * ORC_RESTRICT d1,
const gdouble * ORC_RESTRICT s1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_unpack_double_s32;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_unpack_double_s32");
+ orc_program_set_backup_function (p,
+ _backup_orc_audio_convert_unpack_double_s32);
+ orc_program_add_destination (p, 4, "d1");
+ orc_program_add_source (p, 8, "s1");
+ orc_program_add_constant_int64 (p, 8, 0x41dfffffffc00000ULL, "c1");
+ orc_program_add_constant_int64 (p, 8, 0x3fe0000000000000ULL, "c2");
+ orc_program_add_temporary (p, 8, "t1");
+
+ orc_program_append_2 (p, "loadq", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "muld", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_C1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "addd", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_C2,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "convdl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_unpack_double_s32_swap;
void
orc_audio_convert_unpack_double_s32_swap (guint32 * ORC_RESTRICT d1,
const gdouble * ORC_RESTRICT s1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_unpack_double_s32_swap;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_unpack_double_s32_swap");
+ orc_program_set_backup_function (p,
+ _backup_orc_audio_convert_unpack_double_s32_swap);
+ orc_program_add_destination (p, 4, "d1");
+ orc_program_add_source (p, 8, "s1");
+ orc_program_add_constant_int64 (p, 8, 0x41dfffffffc00000ULL, "c1");
+ orc_program_add_constant_int64 (p, 8, 0x3fe0000000000000ULL, "c2");
+ orc_program_add_temporary (p, 8, "t1");
+
+ orc_program_append_2 (p, "swapq", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "muld", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_C1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "addd", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_C2,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "convdl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_unpack_float_double;
void
orc_audio_convert_unpack_float_double (gdouble * ORC_RESTRICT d1,
const gfloat * ORC_RESTRICT s1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_unpack_float_double;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_unpack_float_double");
+ orc_program_set_backup_function (p,
+ _backup_orc_audio_convert_unpack_float_double);
+ orc_program_add_destination (p, 8, "d1");
+ orc_program_add_source (p, 4, "s1");
+
+ orc_program_append_2 (p, "convfd", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_unpack_float_double_swap;
void
orc_audio_convert_unpack_float_double_swap (gdouble * ORC_RESTRICT d1,
const gfloat * ORC_RESTRICT s1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_unpack_float_double_swap;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_unpack_float_double_swap");
+ orc_program_set_backup_function (p,
+ _backup_orc_audio_convert_unpack_float_double_swap);
+ orc_program_add_destination (p, 8, "d1");
+ orc_program_add_source (p, 4, "s1");
+ orc_program_add_temporary (p, 4, "t1");
+
+ orc_program_append_2 (p, "swapl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "convfd", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_unpack_double_double;
void
orc_audio_convert_unpack_double_double (gdouble * ORC_RESTRICT d1,
const gdouble * ORC_RESTRICT s1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_unpack_double_double;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_unpack_double_double");
+ orc_program_set_backup_function (p,
+ _backup_orc_audio_convert_unpack_double_double);
+ orc_program_add_destination (p, 8, "d1");
+ orc_program_add_source (p, 8, "s1");
+
+ orc_program_append_2 (p, "copyq", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_unpack_double_double_swap;
void
orc_audio_convert_unpack_double_double_swap (gdouble * ORC_RESTRICT d1,
const gdouble * ORC_RESTRICT s1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_unpack_double_double_swap;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_unpack_double_double_swap");
+ orc_program_set_backup_function (p,
+ _backup_orc_audio_convert_unpack_double_double_swap);
+ orc_program_add_destination (p, 8, "d1");
+ orc_program_add_source (p, 8, "s1");
+
+ orc_program_append_2 (p, "swapq", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_unpack_u8_double;
void
orc_audio_convert_unpack_u8_double (gdouble * ORC_RESTRICT d1,
const guint8 * ORC_RESTRICT s1, int p1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_unpack_u8_double;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_unpack_u8_double");
+ orc_program_set_backup_function (p,
+ _backup_orc_audio_convert_unpack_u8_double);
+ orc_program_add_destination (p, 8, "d1");
+ orc_program_add_source (p, 1, "s1");
+ orc_program_add_constant (p, 4, 0x80000000, "c1");
+ orc_program_add_parameter (p, 4, "p1");
+ orc_program_add_temporary (p, 2, "t1");
+ orc_program_add_temporary (p, 4, "t2");
+
+ orc_program_append_2 (p, "convubw", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "convuwl", 0, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "shll", 0, ORC_VAR_T2, ORC_VAR_T2, ORC_VAR_P1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "xorl", 0, ORC_VAR_T2, ORC_VAR_T2, ORC_VAR_C1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "convld", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_unpack_s8_double;
void
orc_audio_convert_unpack_s8_double (gdouble * ORC_RESTRICT d1,
const guint8 * ORC_RESTRICT s1, int p1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_unpack_s8_double;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_unpack_s8_double");
+ orc_program_set_backup_function (p,
+ _backup_orc_audio_convert_unpack_s8_double);
+ orc_program_add_destination (p, 8, "d1");
+ orc_program_add_source (p, 1, "s1");
+ orc_program_add_parameter (p, 4, "p1");
+ orc_program_add_temporary (p, 2, "t1");
+ orc_program_add_temporary (p, 4, "t2");
+
+ orc_program_append_2 (p, "convubw", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "convuwl", 0, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "shll", 0, ORC_VAR_T2, ORC_VAR_T2, ORC_VAR_P1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "convld", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_unpack_u16_double;
void
orc_audio_convert_unpack_u16_double (gdouble * ORC_RESTRICT d1,
const guint8 * ORC_RESTRICT s1, int p1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_unpack_u16_double;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_unpack_u16_double");
+ orc_program_set_backup_function (p,
+ _backup_orc_audio_convert_unpack_u16_double);
+ orc_program_add_destination (p, 8, "d1");
+ orc_program_add_source (p, 2, "s1");
+ orc_program_add_constant (p, 4, 0x80000000, "c1");
+ orc_program_add_parameter (p, 4, "p1");
+ orc_program_add_temporary (p, 4, "t1");
+
+ orc_program_append_2 (p, "convuwl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "shll", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_P1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "xorl", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_C1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "convld", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_unpack_s16_double;
void
orc_audio_convert_unpack_s16_double (gdouble * ORC_RESTRICT d1,
const guint8 * ORC_RESTRICT s1, int p1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_unpack_s16_double;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_unpack_s16_double");
+ orc_program_set_backup_function (p,
+ _backup_orc_audio_convert_unpack_s16_double);
+ orc_program_add_destination (p, 8, "d1");
+ orc_program_add_source (p, 2, "s1");
+ orc_program_add_parameter (p, 4, "p1");
+ orc_program_add_temporary (p, 4, "t1");
+
+ orc_program_append_2 (p, "convuwl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "shll", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_P1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "convld", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_unpack_u16_double_swap;
void
orc_audio_convert_unpack_u16_double_swap (gdouble * ORC_RESTRICT d1,
const guint8 * ORC_RESTRICT s1, int p1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_unpack_u16_double_swap;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_unpack_u16_double_swap");
+ orc_program_set_backup_function (p,
+ _backup_orc_audio_convert_unpack_u16_double_swap);
+ orc_program_add_destination (p, 8, "d1");
+ orc_program_add_source (p, 2, "s1");
+ orc_program_add_constant (p, 4, 0x80000000, "c1");
+ orc_program_add_parameter (p, 4, "p1");
+ orc_program_add_temporary (p, 2, "t1");
+ orc_program_add_temporary (p, 4, "t2");
+
+ orc_program_append_2 (p, "swapw", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "convuwl", 0, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "shll", 0, ORC_VAR_T2, ORC_VAR_T2, ORC_VAR_P1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "xorl", 0, ORC_VAR_T2, ORC_VAR_T2, ORC_VAR_C1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "convld", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_unpack_s16_double_swap;
void
orc_audio_convert_unpack_s16_double_swap (gdouble * ORC_RESTRICT d1,
const guint8 * ORC_RESTRICT s1, int p1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_unpack_s16_double_swap;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_unpack_s16_double_swap");
+ orc_program_set_backup_function (p,
+ _backup_orc_audio_convert_unpack_s16_double_swap);
+ orc_program_add_destination (p, 8, "d1");
+ orc_program_add_source (p, 2, "s1");
+ orc_program_add_parameter (p, 4, "p1");
+ orc_program_add_temporary (p, 2, "t1");
+ orc_program_add_temporary (p, 4, "t2");
+
+ orc_program_append_2 (p, "swapw", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "convuwl", 0, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "shll", 0, ORC_VAR_T2, ORC_VAR_T2, ORC_VAR_P1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "convld", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_unpack_u32_double;
void
orc_audio_convert_unpack_u32_double (gdouble * ORC_RESTRICT d1,
const guint8 * ORC_RESTRICT s1, int p1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_unpack_u32_double;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_unpack_u32_double");
+ orc_program_set_backup_function (p,
+ _backup_orc_audio_convert_unpack_u32_double);
+ orc_program_add_destination (p, 8, "d1");
+ orc_program_add_source (p, 4, "s1");
+ orc_program_add_constant (p, 4, 0x80000000, "c1");
+ orc_program_add_parameter (p, 4, "p1");
+ orc_program_add_temporary (p, 4, "t1");
+
+ orc_program_append_2 (p, "shll", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_P1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "xorl", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_C1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "convld", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_unpack_s32_double;
void
orc_audio_convert_unpack_s32_double (gdouble * ORC_RESTRICT d1,
const guint8 * ORC_RESTRICT s1, int p1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_unpack_s32_double;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_unpack_s32_double");
+ orc_program_set_backup_function (p,
+ _backup_orc_audio_convert_unpack_s32_double);
+ orc_program_add_destination (p, 8, "d1");
+ orc_program_add_source (p, 4, "s1");
+ orc_program_add_parameter (p, 4, "p1");
+ orc_program_add_temporary (p, 4, "t1");
+
+ orc_program_append_2 (p, "shll", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_P1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "convld", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_unpack_u32_double_swap;
void
orc_audio_convert_unpack_u32_double_swap (gdouble * ORC_RESTRICT d1,
const guint8 * ORC_RESTRICT s1, int p1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_unpack_u32_double_swap;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_unpack_u32_double_swap");
+ orc_program_set_backup_function (p,
+ _backup_orc_audio_convert_unpack_u32_double_swap);
+ orc_program_add_destination (p, 8, "d1");
+ orc_program_add_source (p, 4, "s1");
+ orc_program_add_constant (p, 4, 0x80000000, "c1");
+ orc_program_add_parameter (p, 4, "p1");
+ orc_program_add_temporary (p, 4, "t1");
+
+ orc_program_append_2 (p, "swapl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "shll", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_P1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "xorl", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_C1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "convld", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_unpack_s32_double_swap;
void
orc_audio_convert_unpack_s32_double_swap (gdouble * ORC_RESTRICT d1,
const guint8 * ORC_RESTRICT s1, int p1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_unpack_s32_double_swap;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_unpack_s32_double_swap");
+ orc_program_set_backup_function (p,
+ _backup_orc_audio_convert_unpack_s32_double_swap);
+ orc_program_add_destination (p, 8, "d1");
+ orc_program_add_source (p, 4, "s1");
+ orc_program_add_parameter (p, 4, "p1");
+ orc_program_add_temporary (p, 4, "t1");
+
+ orc_program_append_2 (p, "swapl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "shll", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_P1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "convld", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_pack_u8;
void
orc_audio_convert_pack_u8 (guint8 * ORC_RESTRICT d1,
const gint32 * ORC_RESTRICT s1, int p1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_pack_u8;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_pack_u8");
+ orc_program_set_backup_function (p, _backup_orc_audio_convert_pack_u8);
+ orc_program_add_destination (p, 1, "d1");
+ orc_program_add_source (p, 4, "s1");
+ orc_program_add_constant (p, 4, 0x80000000, "c1");
+ orc_program_add_parameter (p, 4, "p1");
+ orc_program_add_temporary (p, 4, "t1");
+ orc_program_add_temporary (p, 2, "t2");
+
+ orc_program_append_2 (p, "xorl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_C1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "shrul", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_P1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "convlw", 0, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "convwb", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_pack_s8;
void
orc_audio_convert_pack_s8 (guint8 * ORC_RESTRICT d1,
const gint32 * ORC_RESTRICT s1, int p1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_pack_s8;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_pack_s8");
+ orc_program_set_backup_function (p, _backup_orc_audio_convert_pack_s8);
+ orc_program_add_destination (p, 1, "d1");
+ orc_program_add_source (p, 4, "s1");
+ orc_program_add_parameter (p, 4, "p1");
+ orc_program_add_temporary (p, 4, "t1");
+ orc_program_add_temporary (p, 2, "t2");
+
+ orc_program_append_2 (p, "shrsl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_P1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "convlw", 0, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "convwb", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_pack_u16;
void
orc_audio_convert_pack_u16 (guint8 * ORC_RESTRICT d1,
const gint32 * ORC_RESTRICT s1, int p1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_pack_u16;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_pack_u16");
+ orc_program_set_backup_function (p, _backup_orc_audio_convert_pack_u16);
+ orc_program_add_destination (p, 2, "d1");
+ orc_program_add_source (p, 4, "s1");
+ orc_program_add_constant (p, 4, 0x80000000, "c1");
+ orc_program_add_parameter (p, 4, "p1");
+ orc_program_add_temporary (p, 4, "t1");
+
+ orc_program_append_2 (p, "xorl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_C1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "shrul", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_P1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "convlw", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_pack_s16;
void
orc_audio_convert_pack_s16 (guint8 * ORC_RESTRICT d1,
const gint32 * ORC_RESTRICT s1, int p1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_pack_s16;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_pack_s16");
+ orc_program_set_backup_function (p, _backup_orc_audio_convert_pack_s16);
+ orc_program_add_destination (p, 2, "d1");
+ orc_program_add_source (p, 4, "s1");
+ orc_program_add_parameter (p, 4, "p1");
+ orc_program_add_temporary (p, 4, "t1");
+
+ orc_program_append_2 (p, "shrsl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_P1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "convlw", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_pack_u16_swap;
void
orc_audio_convert_pack_u16_swap (guint8 * ORC_RESTRICT d1,
const gint32 * ORC_RESTRICT s1, int p1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_pack_u16_swap;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_pack_u16_swap");
+ orc_program_set_backup_function (p,
+ _backup_orc_audio_convert_pack_u16_swap);
+ orc_program_add_destination (p, 2, "d1");
+ orc_program_add_source (p, 4, "s1");
+ orc_program_add_constant (p, 4, 0x80000000, "c1");
+ orc_program_add_parameter (p, 4, "p1");
+ orc_program_add_temporary (p, 4, "t1");
+ orc_program_add_temporary (p, 2, "t2");
+
+ orc_program_append_2 (p, "xorl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_C1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "shrul", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_P1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "convlw", 0, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "swapw", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_pack_s16_swap;
void
orc_audio_convert_pack_s16_swap (guint8 * ORC_RESTRICT d1,
const gint32 * ORC_RESTRICT s1, int p1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_pack_s16_swap;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_pack_s16_swap");
+ orc_program_set_backup_function (p,
+ _backup_orc_audio_convert_pack_s16_swap);
+ orc_program_add_destination (p, 2, "d1");
+ orc_program_add_source (p, 4, "s1");
+ orc_program_add_parameter (p, 4, "p1");
+ orc_program_add_temporary (p, 4, "t1");
+ orc_program_add_temporary (p, 2, "t2");
+
+ orc_program_append_2 (p, "shrsl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_P1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "convlw", 0, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "swapw", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_pack_u32;
void
orc_audio_convert_pack_u32 (guint8 * ORC_RESTRICT d1,
const gint32 * ORC_RESTRICT s1, int p1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_pack_u32;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_pack_u32");
+ orc_program_set_backup_function (p, _backup_orc_audio_convert_pack_u32);
+ orc_program_add_destination (p, 4, "d1");
+ orc_program_add_source (p, 4, "s1");
+ orc_program_add_constant (p, 4, 0x80000000, "c1");
+ orc_program_add_parameter (p, 4, "p1");
+ orc_program_add_temporary (p, 4, "t1");
+
+ orc_program_append_2 (p, "xorl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_C1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "shrul", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_P1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_pack_s32;
void
orc_audio_convert_pack_s32 (guint8 * ORC_RESTRICT d1,
const gint32 * ORC_RESTRICT s1, int p1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_pack_s32;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_pack_s32");
+ orc_program_set_backup_function (p, _backup_orc_audio_convert_pack_s32);
+ orc_program_add_destination (p, 4, "d1");
+ orc_program_add_source (p, 4, "s1");
+ orc_program_add_parameter (p, 4, "p1");
+
+ orc_program_append_2 (p, "shrsl", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_P1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_pack_u32_swap;
void
orc_audio_convert_pack_u32_swap (guint8 * ORC_RESTRICT d1,
const gint32 * ORC_RESTRICT s1, int p1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_pack_u32_swap;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_pack_u32_swap");
+ orc_program_set_backup_function (p,
+ _backup_orc_audio_convert_pack_u32_swap);
+ orc_program_add_destination (p, 4, "d1");
+ orc_program_add_source (p, 4, "s1");
+ orc_program_add_constant (p, 4, 0x80000000, "c1");
+ orc_program_add_parameter (p, 4, "p1");
+ orc_program_add_temporary (p, 4, "t1");
+
+ orc_program_append_2 (p, "xorl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_C1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "shrul", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_P1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "swapl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_pack_s32_swap;
void
orc_audio_convert_pack_s32_swap (guint8 * ORC_RESTRICT d1,
const gint32 * ORC_RESTRICT s1, int p1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_pack_s32_swap;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_pack_s32_swap");
+ orc_program_set_backup_function (p,
+ _backup_orc_audio_convert_pack_s32_swap);
+ orc_program_add_destination (p, 4, "d1");
+ orc_program_add_source (p, 4, "s1");
+ orc_program_add_parameter (p, 4, "p1");
+ orc_program_add_temporary (p, 4, "t1");
+
+ orc_program_append_2 (p, "shrsl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_P1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "swapl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_pack_s32_float;
void
orc_audio_convert_pack_s32_float (gfloat * ORC_RESTRICT d1,
const gint32 * ORC_RESTRICT s1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_pack_s32_float;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_pack_s32_float");
+ orc_program_set_backup_function (p,
+ _backup_orc_audio_convert_pack_s32_float);
+ orc_program_add_destination (p, 4, "d1");
+ orc_program_add_source (p, 4, "s1");
+ orc_program_add_constant (p, 4, 0x4f000000, "c1");
+ orc_program_add_temporary (p, 4, "t1");
+
+ orc_program_append_2 (p, "convlf", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "divf", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_C1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "storel", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_pack_s32_float_swap;
void
orc_audio_convert_pack_s32_float_swap (gfloat * ORC_RESTRICT d1,
const gint32 * ORC_RESTRICT s1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_pack_s32_float_swap;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_pack_s32_float_swap");
+ orc_program_set_backup_function (p,
+ _backup_orc_audio_convert_pack_s32_float_swap);
+ orc_program_add_destination (p, 4, "d1");
+ orc_program_add_source (p, 4, "s1");
+ orc_program_add_constant (p, 4, 0x4f000000, "c1");
+ orc_program_add_temporary (p, 4, "t1");
+
+ orc_program_append_2 (p, "convlf", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "divf", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_C1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "swapl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_pack_s32_double;
void
orc_audio_convert_pack_s32_double (gdouble * ORC_RESTRICT d1,
const gint32 * ORC_RESTRICT s1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_pack_s32_double;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_pack_s32_double");
+ orc_program_set_backup_function (p,
+ _backup_orc_audio_convert_pack_s32_double);
+ orc_program_add_destination (p, 8, "d1");
+ orc_program_add_source (p, 4, "s1");
+ orc_program_add_constant_int64 (p, 8, 0x41dfffffffc00000ULL, "c1");
+ orc_program_add_temporary (p, 8, "t1");
+
+ orc_program_append_2 (p, "convld", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "divd", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_C1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "storeq", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_pack_s32_double_swap;
void
orc_audio_convert_pack_s32_double_swap (gdouble * ORC_RESTRICT d1,
const gint32 * ORC_RESTRICT s1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_pack_s32_double_swap;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_pack_s32_double_swap");
+ orc_program_set_backup_function (p,
+ _backup_orc_audio_convert_pack_s32_double_swap);
+ orc_program_add_destination (p, 8, "d1");
+ orc_program_add_source (p, 4, "s1");
+ orc_program_add_constant_int64 (p, 8, 0x41dfffffffc00000ULL, "c1");
+ orc_program_add_temporary (p, 8, "t1");
+
+ orc_program_append_2 (p, "convld", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "divd", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_C1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "swapq", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_pack_double_float;
void
orc_audio_convert_pack_double_float (gfloat * ORC_RESTRICT d1,
const gdouble * ORC_RESTRICT s1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_pack_double_float;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_pack_double_float");
+ orc_program_set_backup_function (p,
+ _backup_orc_audio_convert_pack_double_float);
+ orc_program_add_destination (p, 4, "d1");
+ orc_program_add_source (p, 8, "s1");
+
+ orc_program_append_2 (p, "convdf", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_pack_double_float_swap;
void
orc_audio_convert_pack_double_float_swap (gfloat * ORC_RESTRICT d1,
const gdouble * ORC_RESTRICT s1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_pack_double_float_swap;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_pack_double_float_swap");
+ orc_program_set_backup_function (p,
+ _backup_orc_audio_convert_pack_double_float_swap);
+ orc_program_add_destination (p, 4, "d1");
+ orc_program_add_source (p, 8, "s1");
+ orc_program_add_temporary (p, 4, "t1");
+
+ orc_program_append_2 (p, "convdf", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "swapl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_pack_double_u8;
void
orc_audio_convert_pack_double_u8 (guint8 * ORC_RESTRICT d1,
const gdouble * ORC_RESTRICT s1, int p1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_pack_double_u8;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_pack_double_u8");
+ orc_program_set_backup_function (p,
+ _backup_orc_audio_convert_pack_double_u8);
+ orc_program_add_destination (p, 1, "d1");
+ orc_program_add_source (p, 8, "s1");
+ orc_program_add_constant (p, 4, 0x80000000, "c1");
+ orc_program_add_parameter (p, 4, "p1");
+ orc_program_add_temporary (p, 4, "t1");
+ orc_program_add_temporary (p, 2, "t2");
+
+ orc_program_append_2 (p, "convdl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "xorl", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_C1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "shrul", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_P1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "convlw", 0, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "convwb", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_pack_double_s8;
void
orc_audio_convert_pack_double_s8 (guint8 * ORC_RESTRICT d1,
const gdouble * ORC_RESTRICT s1, int p1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_pack_double_s8;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_pack_double_s8");
+ orc_program_set_backup_function (p,
+ _backup_orc_audio_convert_pack_double_s8);
+ orc_program_add_destination (p, 1, "d1");
+ orc_program_add_source (p, 8, "s1");
+ orc_program_add_parameter (p, 4, "p1");
+ orc_program_add_temporary (p, 4, "t1");
+ orc_program_add_temporary (p, 2, "t2");
+
+ orc_program_append_2 (p, "convdl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "shrsl", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_P1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "convlw", 0, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "convwb", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_pack_double_u16;
void
orc_audio_convert_pack_double_u16 (guint8 * ORC_RESTRICT d1,
const gdouble * ORC_RESTRICT s1, int p1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_pack_double_u16;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_pack_double_u16");
+ orc_program_set_backup_function (p,
+ _backup_orc_audio_convert_pack_double_u16);
+ orc_program_add_destination (p, 2, "d1");
+ orc_program_add_source (p, 8, "s1");
+ orc_program_add_constant (p, 4, 0x80000000, "c1");
+ orc_program_add_parameter (p, 4, "p1");
+ orc_program_add_temporary (p, 4, "t1");
+
+ orc_program_append_2 (p, "convdl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "xorl", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_C1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "shrul", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_P1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "convlw", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_pack_double_s16;
void
orc_audio_convert_pack_double_s16 (guint8 * ORC_RESTRICT d1,
const gdouble * ORC_RESTRICT s1, int p1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_pack_double_s16;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_pack_double_s16");
+ orc_program_set_backup_function (p,
+ _backup_orc_audio_convert_pack_double_s16);
+ orc_program_add_destination (p, 2, "d1");
+ orc_program_add_source (p, 8, "s1");
+ orc_program_add_parameter (p, 4, "p1");
+ orc_program_add_temporary (p, 4, "t1");
+
+ orc_program_append_2 (p, "convdl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "shrsl", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_P1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "convlw", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_pack_double_u16_swap;
void
orc_audio_convert_pack_double_u16_swap (guint8 * ORC_RESTRICT d1,
const gdouble * ORC_RESTRICT s1, int p1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_pack_double_u16_swap;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_pack_double_u16_swap");
+ orc_program_set_backup_function (p,
+ _backup_orc_audio_convert_pack_double_u16_swap);
+ orc_program_add_destination (p, 2, "d1");
+ orc_program_add_source (p, 8, "s1");
+ orc_program_add_constant (p, 4, 0x80000000, "c1");
+ orc_program_add_parameter (p, 4, "p1");
+ orc_program_add_temporary (p, 4, "t1");
+ orc_program_add_temporary (p, 2, "t2");
+
+ orc_program_append_2 (p, "convdl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "xorl", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_C1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "shrul", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_P1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "convlw", 0, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "swapw", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_pack_double_s16_swap;
void
orc_audio_convert_pack_double_s16_swap (guint8 * ORC_RESTRICT d1,
const gdouble * ORC_RESTRICT s1, int p1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_pack_double_s16_swap;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_pack_double_s16_swap");
+ orc_program_set_backup_function (p,
+ _backup_orc_audio_convert_pack_double_s16_swap);
+ orc_program_add_destination (p, 2, "d1");
+ orc_program_add_source (p, 8, "s1");
+ orc_program_add_parameter (p, 4, "p1");
+ orc_program_add_temporary (p, 4, "t1");
+ orc_program_add_temporary (p, 2, "t2");
+
+ orc_program_append_2 (p, "convdl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "shrsl", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_P1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "convlw", 0, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "swapw", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_pack_double_u32;
void
orc_audio_convert_pack_double_u32 (guint8 * ORC_RESTRICT d1,
const gdouble * ORC_RESTRICT s1, int p1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_pack_double_u32;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_pack_double_u32");
+ orc_program_set_backup_function (p,
+ _backup_orc_audio_convert_pack_double_u32);
+ orc_program_add_destination (p, 4, "d1");
+ orc_program_add_source (p, 8, "s1");
+ orc_program_add_constant (p, 4, 0x80000000, "c1");
+ orc_program_add_parameter (p, 4, "p1");
+ orc_program_add_temporary (p, 4, "t1");
+
+ orc_program_append_2 (p, "convdl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "xorl", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_C1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "shrul", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_P1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_pack_double_s32;
void
orc_audio_convert_pack_double_s32 (guint8 * ORC_RESTRICT d1,
const gdouble * ORC_RESTRICT s1, int p1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_pack_double_s32;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_pack_double_s32");
+ orc_program_set_backup_function (p,
+ _backup_orc_audio_convert_pack_double_s32);
+ orc_program_add_destination (p, 4, "d1");
+ orc_program_add_source (p, 8, "s1");
+ orc_program_add_parameter (p, 4, "p1");
+ orc_program_add_temporary (p, 4, "t1");
+
+ orc_program_append_2 (p, "convdl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "shrsl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_P1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_pack_double_u32_swap;
void
orc_audio_convert_pack_double_u32_swap (guint8 * ORC_RESTRICT d1,
const gdouble * ORC_RESTRICT s1, int p1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_pack_double_u32_swap;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_pack_double_u32_swap");
+ orc_program_set_backup_function (p,
+ _backup_orc_audio_convert_pack_double_u32_swap);
+ orc_program_add_destination (p, 4, "d1");
+ orc_program_add_source (p, 8, "s1");
+ orc_program_add_constant (p, 4, 0x80000000, "c1");
+ orc_program_add_parameter (p, 4, "p1");
+ orc_program_add_temporary (p, 4, "t1");
+
+ orc_program_append_2 (p, "convdl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "xorl", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_C1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "shrul", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_P1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "swapl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
}
-static OrcProgram *_orc_program_orc_audio_convert_pack_double_s32_swap;
void
orc_audio_convert_pack_double_s32_swap (guint8 * ORC_RESTRICT d1,
const gdouble * ORC_RESTRICT s1, int p1, int n)
{
OrcExecutor _ex, *ex = &_ex;
- OrcProgram *p = _orc_program_orc_audio_convert_pack_double_s32_swap;
+ static int p_inited = 0;
+ static OrcProgram *p = 0;
void (*func) (OrcExecutor *);
+ if (!p_inited) {
+ orc_once_mutex_lock ();
+ if (!p_inited) {
+
+ p = orc_program_new ();
+ orc_program_set_name (p, "orc_audio_convert_pack_double_s32_swap");
+ orc_program_set_backup_function (p,
+ _backup_orc_audio_convert_pack_double_s32_swap);
+ orc_program_add_destination (p, 4, "d1");
+ orc_program_add_source (p, 8, "s1");
+ orc_program_add_parameter (p, 4, "p1");
+ orc_program_add_temporary (p, 4, "t1");
+
+ orc_program_append_2 (p, "convdl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "shrsl", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_P1,
+ ORC_VAR_D1);
+ orc_program_append_2 (p, "swapl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
+ ORC_VAR_D1);
+
+ orc_program_compile (p);
+ }
+ p_inited = TRUE;
+ orc_once_mutex_unlock ();
+ }
ex->program = p;
ex->n = n;
func (ex);
}
#endif
-
-
-void
-gst_audio_convert_orc_init (void)
-{
-#ifndef DISABLE_ORC
- {
- /* orc_audio_convert_unpack_u8 */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_unpack_u8");
- orc_program_set_backup_function (p, _backup_orc_audio_convert_unpack_u8);
- orc_program_add_destination (p, 4, "d1");
- orc_program_add_source (p, 1, "s1");
- orc_program_add_constant (p, 4, 0x80000000, "c1");
- orc_program_add_parameter (p, 4, "p1");
- orc_program_add_temporary (p, 2, "t1");
- orc_program_add_temporary (p, 4, "t2");
-
- orc_program_append_2 (p, "convubw", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "convuwl", 0, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "shll", 0, ORC_VAR_T2, ORC_VAR_T2, ORC_VAR_P1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "xorl", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_C1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_unpack_u8 = p;
- }
- {
- /* orc_audio_convert_unpack_s8 */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_unpack_s8");
- orc_program_set_backup_function (p, _backup_orc_audio_convert_unpack_s8);
- orc_program_add_destination (p, 4, "d1");
- orc_program_add_source (p, 1, "s1");
- orc_program_add_parameter (p, 4, "p1");
- orc_program_add_temporary (p, 2, "t1");
- orc_program_add_temporary (p, 4, "t2");
-
- orc_program_append_2 (p, "convubw", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "convuwl", 0, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "shll", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_P1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_unpack_s8 = p;
- }
- {
- /* orc_audio_convert_unpack_u16 */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_unpack_u16");
- orc_program_set_backup_function (p, _backup_orc_audio_convert_unpack_u16);
- orc_program_add_destination (p, 4, "d1");
- orc_program_add_source (p, 2, "s1");
- orc_program_add_constant (p, 4, 0x80000000, "c1");
- orc_program_add_parameter (p, 4, "p1");
- orc_program_add_temporary (p, 4, "t1");
-
- orc_program_append_2 (p, "convuwl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "shll", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_P1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "xorl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_C1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_unpack_u16 = p;
- }
- {
- /* orc_audio_convert_unpack_s16 */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_unpack_s16");
- orc_program_set_backup_function (p, _backup_orc_audio_convert_unpack_s16);
- orc_program_add_destination (p, 4, "d1");
- orc_program_add_source (p, 2, "s1");
- orc_program_add_parameter (p, 4, "p1");
- orc_program_add_temporary (p, 4, "t1");
-
- orc_program_append_2 (p, "convuwl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "shll", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_P1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_unpack_s16 = p;
- }
- {
- /* orc_audio_convert_unpack_u16_swap */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_unpack_u16_swap");
- orc_program_set_backup_function (p,
- _backup_orc_audio_convert_unpack_u16_swap);
- orc_program_add_destination (p, 4, "d1");
- orc_program_add_source (p, 2, "s1");
- orc_program_add_constant (p, 4, 0x80000000, "c1");
- orc_program_add_parameter (p, 4, "p1");
- orc_program_add_temporary (p, 2, "t1");
- orc_program_add_temporary (p, 4, "t2");
-
- orc_program_append_2 (p, "swapw", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "convuwl", 0, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "shll", 0, ORC_VAR_T2, ORC_VAR_T2, ORC_VAR_P1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "xorl", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_C1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_unpack_u16_swap = p;
- }
- {
- /* orc_audio_convert_unpack_s16_swap */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_unpack_s16_swap");
- orc_program_set_backup_function (p,
- _backup_orc_audio_convert_unpack_s16_swap);
- orc_program_add_destination (p, 4, "d1");
- orc_program_add_source (p, 2, "s1");
- orc_program_add_parameter (p, 4, "p1");
- orc_program_add_temporary (p, 2, "t1");
- orc_program_add_temporary (p, 4, "t2");
-
- orc_program_append_2 (p, "swapw", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "convuwl", 0, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "shll", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_P1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_unpack_s16_swap = p;
- }
- {
- /* orc_audio_convert_unpack_u32 */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_unpack_u32");
- orc_program_set_backup_function (p, _backup_orc_audio_convert_unpack_u32);
- orc_program_add_destination (p, 4, "d1");
- orc_program_add_source (p, 4, "s1");
- orc_program_add_constant (p, 4, 0x80000000, "c1");
- orc_program_add_parameter (p, 4, "p1");
- orc_program_add_temporary (p, 4, "t1");
-
- orc_program_append_2 (p, "shll", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_P1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "xorl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_C1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_unpack_u32 = p;
- }
- {
- /* orc_audio_convert_unpack_s32 */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_unpack_s32");
- orc_program_set_backup_function (p, _backup_orc_audio_convert_unpack_s32);
- orc_program_add_destination (p, 4, "d1");
- orc_program_add_source (p, 4, "s1");
- orc_program_add_parameter (p, 4, "p1");
-
- orc_program_append_2 (p, "shll", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_P1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_unpack_s32 = p;
- }
- {
- /* orc_audio_convert_unpack_u32_swap */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_unpack_u32_swap");
- orc_program_set_backup_function (p,
- _backup_orc_audio_convert_unpack_u32_swap);
- orc_program_add_destination (p, 4, "d1");
- orc_program_add_source (p, 4, "s1");
- orc_program_add_constant (p, 4, 0x80000000, "c1");
- orc_program_add_parameter (p, 4, "p1");
- orc_program_add_temporary (p, 4, "t1");
-
- orc_program_append_2 (p, "swapl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "shll", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_P1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "xorl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_C1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_unpack_u32_swap = p;
- }
- {
- /* orc_audio_convert_unpack_s32_swap */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_unpack_s32_swap");
- orc_program_set_backup_function (p,
- _backup_orc_audio_convert_unpack_s32_swap);
- orc_program_add_destination (p, 4, "d1");
- orc_program_add_source (p, 4, "s1");
- orc_program_add_parameter (p, 4, "p1");
- orc_program_add_temporary (p, 4, "t1");
-
- orc_program_append_2 (p, "swapl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "shll", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_P1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_unpack_s32_swap = p;
- }
- {
- /* orc_audio_convert_unpack_float_s32 */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_unpack_float_s32");
- orc_program_set_backup_function (p,
- _backup_orc_audio_convert_unpack_float_s32);
- orc_program_add_destination (p, 4, "d1");
- orc_program_add_source (p, 4, "s1");
- orc_program_add_constant (p, 4, 0x4f000000, "c1");
- orc_program_add_constant (p, 4, 0x3f000000, "c2");
- orc_program_add_temporary (p, 4, "t1");
-
- orc_program_append_2 (p, "loadl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "mulf", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_C1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "addf", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_C2,
- ORC_VAR_D1);
- orc_program_append_2 (p, "convfl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_unpack_float_s32 = p;
- }
- {
- /* orc_audio_convert_unpack_float_s32_swap */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_unpack_float_s32_swap");
- orc_program_set_backup_function (p,
- _backup_orc_audio_convert_unpack_float_s32_swap);
- orc_program_add_destination (p, 4, "d1");
- orc_program_add_source (p, 4, "s1");
- orc_program_add_constant (p, 4, 0x4f000000, "c1");
- orc_program_add_constant (p, 4, 0x3f000000, "c2");
- orc_program_add_temporary (p, 4, "t1");
-
- orc_program_append_2 (p, "swapl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "mulf", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_C1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "addf", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_C2,
- ORC_VAR_D1);
- orc_program_append_2 (p, "convfl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_unpack_float_s32_swap = p;
- }
- {
- /* orc_audio_convert_unpack_double_s32 */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_unpack_double_s32");
- orc_program_set_backup_function (p,
- _backup_orc_audio_convert_unpack_double_s32);
- orc_program_add_destination (p, 4, "d1");
- orc_program_add_source (p, 8, "s1");
- orc_program_add_constant_int64 (p, 8, 0x41dfffffffc00000ULL, "c1");
- orc_program_add_constant_int64 (p, 8, 0x3fe0000000000000ULL, "c2");
- orc_program_add_temporary (p, 8, "t1");
-
- orc_program_append_2 (p, "loadq", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "muld", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_C1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "addd", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_C2,
- ORC_VAR_D1);
- orc_program_append_2 (p, "convdl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_unpack_double_s32 = p;
- }
- {
- /* orc_audio_convert_unpack_double_s32_swap */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_unpack_double_s32_swap");
- orc_program_set_backup_function (p,
- _backup_orc_audio_convert_unpack_double_s32_swap);
- orc_program_add_destination (p, 4, "d1");
- orc_program_add_source (p, 8, "s1");
- orc_program_add_constant_int64 (p, 8, 0x41dfffffffc00000ULL, "c1");
- orc_program_add_constant_int64 (p, 8, 0x3fe0000000000000ULL, "c2");
- orc_program_add_temporary (p, 8, "t1");
-
- orc_program_append_2 (p, "swapq", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "muld", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_C1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "addd", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_C2,
- ORC_VAR_D1);
- orc_program_append_2 (p, "convdl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_unpack_double_s32_swap = p;
- }
- {
- /* orc_audio_convert_unpack_float_double */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_unpack_float_double");
- orc_program_set_backup_function (p,
- _backup_orc_audio_convert_unpack_float_double);
- orc_program_add_destination (p, 8, "d1");
- orc_program_add_source (p, 4, "s1");
-
- orc_program_append_2 (p, "convfd", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_unpack_float_double = p;
- }
- {
- /* orc_audio_convert_unpack_float_double_swap */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_unpack_float_double_swap");
- orc_program_set_backup_function (p,
- _backup_orc_audio_convert_unpack_float_double_swap);
- orc_program_add_destination (p, 8, "d1");
- orc_program_add_source (p, 4, "s1");
- orc_program_add_temporary (p, 4, "t1");
-
- orc_program_append_2 (p, "swapl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "convfd", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_unpack_float_double_swap = p;
- }
- {
- /* orc_audio_convert_unpack_double_double */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_unpack_double_double");
- orc_program_set_backup_function (p,
- _backup_orc_audio_convert_unpack_double_double);
- orc_program_add_destination (p, 8, "d1");
- orc_program_add_source (p, 8, "s1");
-
- orc_program_append_2 (p, "copyq", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_unpack_double_double = p;
- }
- {
- /* orc_audio_convert_unpack_double_double_swap */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_unpack_double_double_swap");
- orc_program_set_backup_function (p,
- _backup_orc_audio_convert_unpack_double_double_swap);
- orc_program_add_destination (p, 8, "d1");
- orc_program_add_source (p, 8, "s1");
-
- orc_program_append_2 (p, "swapq", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_unpack_double_double_swap = p;
- }
- {
- /* orc_audio_convert_unpack_u8_double */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_unpack_u8_double");
- orc_program_set_backup_function (p,
- _backup_orc_audio_convert_unpack_u8_double);
- orc_program_add_destination (p, 8, "d1");
- orc_program_add_source (p, 1, "s1");
- orc_program_add_constant (p, 4, 0x80000000, "c1");
- orc_program_add_parameter (p, 4, "p1");
- orc_program_add_temporary (p, 2, "t1");
- orc_program_add_temporary (p, 4, "t2");
-
- orc_program_append_2 (p, "convubw", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "convuwl", 0, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "shll", 0, ORC_VAR_T2, ORC_VAR_T2, ORC_VAR_P1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "xorl", 0, ORC_VAR_T2, ORC_VAR_T2, ORC_VAR_C1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "convld", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_unpack_u8_double = p;
- }
- {
- /* orc_audio_convert_unpack_s8_double */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_unpack_s8_double");
- orc_program_set_backup_function (p,
- _backup_orc_audio_convert_unpack_s8_double);
- orc_program_add_destination (p, 8, "d1");
- orc_program_add_source (p, 1, "s1");
- orc_program_add_parameter (p, 4, "p1");
- orc_program_add_temporary (p, 2, "t1");
- orc_program_add_temporary (p, 4, "t2");
-
- orc_program_append_2 (p, "convubw", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "convuwl", 0, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "shll", 0, ORC_VAR_T2, ORC_VAR_T2, ORC_VAR_P1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "convld", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_unpack_s8_double = p;
- }
- {
- /* orc_audio_convert_unpack_u16_double */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_unpack_u16_double");
- orc_program_set_backup_function (p,
- _backup_orc_audio_convert_unpack_u16_double);
- orc_program_add_destination (p, 8, "d1");
- orc_program_add_source (p, 2, "s1");
- orc_program_add_constant (p, 4, 0x80000000, "c1");
- orc_program_add_parameter (p, 4, "p1");
- orc_program_add_temporary (p, 4, "t1");
-
- orc_program_append_2 (p, "convuwl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "shll", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_P1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "xorl", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_C1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "convld", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_unpack_u16_double = p;
- }
- {
- /* orc_audio_convert_unpack_s16_double */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_unpack_s16_double");
- orc_program_set_backup_function (p,
- _backup_orc_audio_convert_unpack_s16_double);
- orc_program_add_destination (p, 8, "d1");
- orc_program_add_source (p, 2, "s1");
- orc_program_add_parameter (p, 4, "p1");
- orc_program_add_temporary (p, 4, "t1");
-
- orc_program_append_2 (p, "convuwl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "shll", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_P1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "convld", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_unpack_s16_double = p;
- }
- {
- /* orc_audio_convert_unpack_u16_double_swap */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_unpack_u16_double_swap");
- orc_program_set_backup_function (p,
- _backup_orc_audio_convert_unpack_u16_double_swap);
- orc_program_add_destination (p, 8, "d1");
- orc_program_add_source (p, 2, "s1");
- orc_program_add_constant (p, 4, 0x80000000, "c1");
- orc_program_add_parameter (p, 4, "p1");
- orc_program_add_temporary (p, 2, "t1");
- orc_program_add_temporary (p, 4, "t2");
-
- orc_program_append_2 (p, "swapw", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "convuwl", 0, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "shll", 0, ORC_VAR_T2, ORC_VAR_T2, ORC_VAR_P1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "xorl", 0, ORC_VAR_T2, ORC_VAR_T2, ORC_VAR_C1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "convld", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_unpack_u16_double_swap = p;
- }
- {
- /* orc_audio_convert_unpack_s16_double_swap */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_unpack_s16_double_swap");
- orc_program_set_backup_function (p,
- _backup_orc_audio_convert_unpack_s16_double_swap);
- orc_program_add_destination (p, 8, "d1");
- orc_program_add_source (p, 2, "s1");
- orc_program_add_parameter (p, 4, "p1");
- orc_program_add_temporary (p, 2, "t1");
- orc_program_add_temporary (p, 4, "t2");
-
- orc_program_append_2 (p, "swapw", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "convuwl", 0, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "shll", 0, ORC_VAR_T2, ORC_VAR_T2, ORC_VAR_P1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "convld", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_unpack_s16_double_swap = p;
- }
- {
- /* orc_audio_convert_unpack_u32_double */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_unpack_u32_double");
- orc_program_set_backup_function (p,
- _backup_orc_audio_convert_unpack_u32_double);
- orc_program_add_destination (p, 8, "d1");
- orc_program_add_source (p, 4, "s1");
- orc_program_add_constant (p, 4, 0x80000000, "c1");
- orc_program_add_parameter (p, 4, "p1");
- orc_program_add_temporary (p, 4, "t1");
-
- orc_program_append_2 (p, "shll", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_P1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "xorl", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_C1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "convld", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_unpack_u32_double = p;
- }
- {
- /* orc_audio_convert_unpack_s32_double */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_unpack_s32_double");
- orc_program_set_backup_function (p,
- _backup_orc_audio_convert_unpack_s32_double);
- orc_program_add_destination (p, 8, "d1");
- orc_program_add_source (p, 4, "s1");
- orc_program_add_parameter (p, 4, "p1");
- orc_program_add_temporary (p, 4, "t1");
-
- orc_program_append_2 (p, "shll", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_P1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "convld", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_unpack_s32_double = p;
- }
- {
- /* orc_audio_convert_unpack_u32_double_swap */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_unpack_u32_double_swap");
- orc_program_set_backup_function (p,
- _backup_orc_audio_convert_unpack_u32_double_swap);
- orc_program_add_destination (p, 8, "d1");
- orc_program_add_source (p, 4, "s1");
- orc_program_add_constant (p, 4, 0x80000000, "c1");
- orc_program_add_parameter (p, 4, "p1");
- orc_program_add_temporary (p, 4, "t1");
-
- orc_program_append_2 (p, "swapl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "shll", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_P1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "xorl", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_C1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "convld", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_unpack_u32_double_swap = p;
- }
- {
- /* orc_audio_convert_unpack_s32_double_swap */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_unpack_s32_double_swap");
- orc_program_set_backup_function (p,
- _backup_orc_audio_convert_unpack_s32_double_swap);
- orc_program_add_destination (p, 8, "d1");
- orc_program_add_source (p, 4, "s1");
- orc_program_add_parameter (p, 4, "p1");
- orc_program_add_temporary (p, 4, "t1");
-
- orc_program_append_2 (p, "swapl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "shll", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_P1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "convld", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_unpack_s32_double_swap = p;
- }
- {
- /* orc_audio_convert_pack_u8 */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_pack_u8");
- orc_program_set_backup_function (p, _backup_orc_audio_convert_pack_u8);
- orc_program_add_destination (p, 1, "d1");
- orc_program_add_source (p, 4, "s1");
- orc_program_add_constant (p, 4, 0x80000000, "c1");
- orc_program_add_parameter (p, 4, "p1");
- orc_program_add_temporary (p, 4, "t1");
- orc_program_add_temporary (p, 2, "t2");
-
- orc_program_append_2 (p, "xorl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_C1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "shrul", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_P1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "convlw", 0, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "convwb", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_pack_u8 = p;
- }
- {
- /* orc_audio_convert_pack_s8 */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_pack_s8");
- orc_program_set_backup_function (p, _backup_orc_audio_convert_pack_s8);
- orc_program_add_destination (p, 1, "d1");
- orc_program_add_source (p, 4, "s1");
- orc_program_add_parameter (p, 4, "p1");
- orc_program_add_temporary (p, 4, "t1");
- orc_program_add_temporary (p, 2, "t2");
-
- orc_program_append_2 (p, "shrsl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_P1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "convlw", 0, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "convwb", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_pack_s8 = p;
- }
- {
- /* orc_audio_convert_pack_u16 */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_pack_u16");
- orc_program_set_backup_function (p, _backup_orc_audio_convert_pack_u16);
- orc_program_add_destination (p, 2, "d1");
- orc_program_add_source (p, 4, "s1");
- orc_program_add_constant (p, 4, 0x80000000, "c1");
- orc_program_add_parameter (p, 4, "p1");
- orc_program_add_temporary (p, 4, "t1");
-
- orc_program_append_2 (p, "xorl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_C1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "shrul", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_P1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "convlw", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_pack_u16 = p;
- }
- {
- /* orc_audio_convert_pack_s16 */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_pack_s16");
- orc_program_set_backup_function (p, _backup_orc_audio_convert_pack_s16);
- orc_program_add_destination (p, 2, "d1");
- orc_program_add_source (p, 4, "s1");
- orc_program_add_parameter (p, 4, "p1");
- orc_program_add_temporary (p, 4, "t1");
-
- orc_program_append_2 (p, "shrsl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_P1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "convlw", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_pack_s16 = p;
- }
- {
- /* orc_audio_convert_pack_u16_swap */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_pack_u16_swap");
- orc_program_set_backup_function (p,
- _backup_orc_audio_convert_pack_u16_swap);
- orc_program_add_destination (p, 2, "d1");
- orc_program_add_source (p, 4, "s1");
- orc_program_add_constant (p, 4, 0x80000000, "c1");
- orc_program_add_parameter (p, 4, "p1");
- orc_program_add_temporary (p, 4, "t1");
- orc_program_add_temporary (p, 2, "t2");
-
- orc_program_append_2 (p, "xorl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_C1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "shrul", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_P1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "convlw", 0, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "swapw", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_pack_u16_swap = p;
- }
- {
- /* orc_audio_convert_pack_s16_swap */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_pack_s16_swap");
- orc_program_set_backup_function (p,
- _backup_orc_audio_convert_pack_s16_swap);
- orc_program_add_destination (p, 2, "d1");
- orc_program_add_source (p, 4, "s1");
- orc_program_add_parameter (p, 4, "p1");
- orc_program_add_temporary (p, 4, "t1");
- orc_program_add_temporary (p, 2, "t2");
-
- orc_program_append_2 (p, "shrsl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_P1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "convlw", 0, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "swapw", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_pack_s16_swap = p;
- }
- {
- /* orc_audio_convert_pack_u32 */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_pack_u32");
- orc_program_set_backup_function (p, _backup_orc_audio_convert_pack_u32);
- orc_program_add_destination (p, 4, "d1");
- orc_program_add_source (p, 4, "s1");
- orc_program_add_constant (p, 4, 0x80000000, "c1");
- orc_program_add_parameter (p, 4, "p1");
- orc_program_add_temporary (p, 4, "t1");
-
- orc_program_append_2 (p, "xorl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_C1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "shrul", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_P1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_pack_u32 = p;
- }
- {
- /* orc_audio_convert_pack_s32 */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_pack_s32");
- orc_program_set_backup_function (p, _backup_orc_audio_convert_pack_s32);
- orc_program_add_destination (p, 4, "d1");
- orc_program_add_source (p, 4, "s1");
- orc_program_add_parameter (p, 4, "p1");
-
- orc_program_append_2 (p, "shrsl", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_P1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_pack_s32 = p;
- }
- {
- /* orc_audio_convert_pack_u32_swap */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_pack_u32_swap");
- orc_program_set_backup_function (p,
- _backup_orc_audio_convert_pack_u32_swap);
- orc_program_add_destination (p, 4, "d1");
- orc_program_add_source (p, 4, "s1");
- orc_program_add_constant (p, 4, 0x80000000, "c1");
- orc_program_add_parameter (p, 4, "p1");
- orc_program_add_temporary (p, 4, "t1");
-
- orc_program_append_2 (p, "xorl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_C1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "shrul", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_P1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "swapl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_pack_u32_swap = p;
- }
- {
- /* orc_audio_convert_pack_s32_swap */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_pack_s32_swap");
- orc_program_set_backup_function (p,
- _backup_orc_audio_convert_pack_s32_swap);
- orc_program_add_destination (p, 4, "d1");
- orc_program_add_source (p, 4, "s1");
- orc_program_add_parameter (p, 4, "p1");
- orc_program_add_temporary (p, 4, "t1");
-
- orc_program_append_2 (p, "shrsl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_P1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "swapl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_pack_s32_swap = p;
- }
- {
- /* orc_audio_convert_pack_s32_float */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_pack_s32_float");
- orc_program_set_backup_function (p,
- _backup_orc_audio_convert_pack_s32_float);
- orc_program_add_destination (p, 4, "d1");
- orc_program_add_source (p, 4, "s1");
- orc_program_add_constant (p, 4, 0x4f000000, "c1");
- orc_program_add_temporary (p, 4, "t1");
-
- orc_program_append_2 (p, "convlf", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "divf", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_C1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "storel", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_pack_s32_float = p;
- }
- {
- /* orc_audio_convert_pack_s32_float_swap */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_pack_s32_float_swap");
- orc_program_set_backup_function (p,
- _backup_orc_audio_convert_pack_s32_float_swap);
- orc_program_add_destination (p, 4, "d1");
- orc_program_add_source (p, 4, "s1");
- orc_program_add_constant (p, 4, 0x4f000000, "c1");
- orc_program_add_temporary (p, 4, "t1");
-
- orc_program_append_2 (p, "convlf", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "divf", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_C1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "swapl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_pack_s32_float_swap = p;
- }
- {
- /* orc_audio_convert_pack_s32_double */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_pack_s32_double");
- orc_program_set_backup_function (p,
- _backup_orc_audio_convert_pack_s32_double);
- orc_program_add_destination (p, 8, "d1");
- orc_program_add_source (p, 4, "s1");
- orc_program_add_constant_int64 (p, 8, 0x41dfffffffc00000ULL, "c1");
- orc_program_add_temporary (p, 8, "t1");
-
- orc_program_append_2 (p, "convld", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "divd", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_C1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "storeq", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_pack_s32_double = p;
- }
- {
- /* orc_audio_convert_pack_s32_double_swap */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_pack_s32_double_swap");
- orc_program_set_backup_function (p,
- _backup_orc_audio_convert_pack_s32_double_swap);
- orc_program_add_destination (p, 8, "d1");
- orc_program_add_source (p, 4, "s1");
- orc_program_add_constant_int64 (p, 8, 0x41dfffffffc00000ULL, "c1");
- orc_program_add_temporary (p, 8, "t1");
-
- orc_program_append_2 (p, "convld", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "divd", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_C1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "swapq", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_pack_s32_double_swap = p;
- }
- {
- /* orc_audio_convert_pack_double_float */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_pack_double_float");
- orc_program_set_backup_function (p,
- _backup_orc_audio_convert_pack_double_float);
- orc_program_add_destination (p, 4, "d1");
- orc_program_add_source (p, 8, "s1");
-
- orc_program_append_2 (p, "convdf", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_pack_double_float = p;
- }
- {
- /* orc_audio_convert_pack_double_float_swap */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_pack_double_float_swap");
- orc_program_set_backup_function (p,
- _backup_orc_audio_convert_pack_double_float_swap);
- orc_program_add_destination (p, 4, "d1");
- orc_program_add_source (p, 8, "s1");
- orc_program_add_temporary (p, 4, "t1");
-
- orc_program_append_2 (p, "convdf", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "swapl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_pack_double_float_swap = p;
- }
- {
- /* orc_audio_convert_pack_double_u8 */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_pack_double_u8");
- orc_program_set_backup_function (p,
- _backup_orc_audio_convert_pack_double_u8);
- orc_program_add_destination (p, 1, "d1");
- orc_program_add_source (p, 8, "s1");
- orc_program_add_constant (p, 4, 0x80000000, "c1");
- orc_program_add_parameter (p, 4, "p1");
- orc_program_add_temporary (p, 4, "t1");
- orc_program_add_temporary (p, 2, "t2");
-
- orc_program_append_2 (p, "convdl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "xorl", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_C1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "shrul", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_P1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "convlw", 0, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "convwb", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_pack_double_u8 = p;
- }
- {
- /* orc_audio_convert_pack_double_s8 */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_pack_double_s8");
- orc_program_set_backup_function (p,
- _backup_orc_audio_convert_pack_double_s8);
- orc_program_add_destination (p, 1, "d1");
- orc_program_add_source (p, 8, "s1");
- orc_program_add_parameter (p, 4, "p1");
- orc_program_add_temporary (p, 4, "t1");
- orc_program_add_temporary (p, 2, "t2");
-
- orc_program_append_2 (p, "convdl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "shrsl", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_P1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "convlw", 0, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "convwb", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_pack_double_s8 = p;
- }
- {
- /* orc_audio_convert_pack_double_u16 */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_pack_double_u16");
- orc_program_set_backup_function (p,
- _backup_orc_audio_convert_pack_double_u16);
- orc_program_add_destination (p, 2, "d1");
- orc_program_add_source (p, 8, "s1");
- orc_program_add_constant (p, 4, 0x80000000, "c1");
- orc_program_add_parameter (p, 4, "p1");
- orc_program_add_temporary (p, 4, "t1");
-
- orc_program_append_2 (p, "convdl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "xorl", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_C1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "shrul", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_P1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "convlw", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_pack_double_u16 = p;
- }
- {
- /* orc_audio_convert_pack_double_s16 */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_pack_double_s16");
- orc_program_set_backup_function (p,
- _backup_orc_audio_convert_pack_double_s16);
- orc_program_add_destination (p, 2, "d1");
- orc_program_add_source (p, 8, "s1");
- orc_program_add_parameter (p, 4, "p1");
- orc_program_add_temporary (p, 4, "t1");
-
- orc_program_append_2 (p, "convdl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "shrsl", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_P1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "convlw", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_pack_double_s16 = p;
- }
- {
- /* orc_audio_convert_pack_double_u16_swap */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_pack_double_u16_swap");
- orc_program_set_backup_function (p,
- _backup_orc_audio_convert_pack_double_u16_swap);
- orc_program_add_destination (p, 2, "d1");
- orc_program_add_source (p, 8, "s1");
- orc_program_add_constant (p, 4, 0x80000000, "c1");
- orc_program_add_parameter (p, 4, "p1");
- orc_program_add_temporary (p, 4, "t1");
- orc_program_add_temporary (p, 2, "t2");
-
- orc_program_append_2 (p, "convdl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "xorl", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_C1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "shrul", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_P1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "convlw", 0, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "swapw", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_pack_double_u16_swap = p;
- }
- {
- /* orc_audio_convert_pack_double_s16_swap */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_pack_double_s16_swap");
- orc_program_set_backup_function (p,
- _backup_orc_audio_convert_pack_double_s16_swap);
- orc_program_add_destination (p, 2, "d1");
- orc_program_add_source (p, 8, "s1");
- orc_program_add_parameter (p, 4, "p1");
- orc_program_add_temporary (p, 4, "t1");
- orc_program_add_temporary (p, 2, "t2");
-
- orc_program_append_2 (p, "convdl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "shrsl", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_P1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "convlw", 0, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "swapw", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_pack_double_s16_swap = p;
- }
- {
- /* orc_audio_convert_pack_double_u32 */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_pack_double_u32");
- orc_program_set_backup_function (p,
- _backup_orc_audio_convert_pack_double_u32);
- orc_program_add_destination (p, 4, "d1");
- orc_program_add_source (p, 8, "s1");
- orc_program_add_constant (p, 4, 0x80000000, "c1");
- orc_program_add_parameter (p, 4, "p1");
- orc_program_add_temporary (p, 4, "t1");
-
- orc_program_append_2 (p, "convdl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "xorl", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_C1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "shrul", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_P1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_pack_double_u32 = p;
- }
- {
- /* orc_audio_convert_pack_double_s32 */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_pack_double_s32");
- orc_program_set_backup_function (p,
- _backup_orc_audio_convert_pack_double_s32);
- orc_program_add_destination (p, 4, "d1");
- orc_program_add_source (p, 8, "s1");
- orc_program_add_parameter (p, 4, "p1");
- orc_program_add_temporary (p, 4, "t1");
-
- orc_program_append_2 (p, "convdl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "shrsl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_P1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_pack_double_s32 = p;
- }
- {
- /* orc_audio_convert_pack_double_u32_swap */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_pack_double_u32_swap");
- orc_program_set_backup_function (p,
- _backup_orc_audio_convert_pack_double_u32_swap);
- orc_program_add_destination (p, 4, "d1");
- orc_program_add_source (p, 8, "s1");
- orc_program_add_constant (p, 4, 0x80000000, "c1");
- orc_program_add_parameter (p, 4, "p1");
- orc_program_add_temporary (p, 4, "t1");
-
- orc_program_append_2 (p, "convdl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "xorl", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_C1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "shrul", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_P1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "swapl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_pack_double_u32_swap = p;
- }
- {
- /* orc_audio_convert_pack_double_s32_swap */
- OrcProgram *p;
-
- p = orc_program_new ();
- orc_program_set_name (p, "orc_audio_convert_pack_double_s32_swap");
- orc_program_set_backup_function (p,
- _backup_orc_audio_convert_pack_double_s32_swap);
- orc_program_add_destination (p, 4, "d1");
- orc_program_add_source (p, 8, "s1");
- orc_program_add_parameter (p, 4, "p1");
- orc_program_add_temporary (p, 4, "t1");
-
- orc_program_append_2 (p, "convdl", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "shrsl", 0, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_P1,
- ORC_VAR_D1);
- orc_program_append_2 (p, "swapl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
- ORC_VAR_D1);
-
- orc_program_compile (p);
-
- _orc_program_orc_audio_convert_pack_double_s32_swap = p;
- }
-#endif
-}