diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-07-23 17:27:46 +0200 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-07-23 17:27:46 +0200 |
commit | ebb4116412dff9018c72b43efad7c12ca49b33d9 (patch) | |
tree | ae96536608e1b62818fb8d0ea02ad97dbf22d284 /gst/adder | |
parent | 5d3b56e9c4a0e3264dd04e544ee2a3e24399e082 (diff) |
adder: prefix orc functions with adder_orc_
Diffstat (limited to 'gst/adder')
-rw-r--r-- | gst/adder/gstadder.c | 18 | ||||
-rw-r--r-- | gst/adder/gstadderorc-dist.c | 122 | ||||
-rw-r--r-- | gst/adder/gstadderorc-dist.h | 14 | ||||
-rw-r--r-- | gst/adder/gstadderorc.orc | 14 |
4 files changed, 92 insertions, 76 deletions
diff --git a/gst/adder/gstadder.c b/gst/adder/gstadder.c index 20ed243d2..8efb682f8 100644 --- a/gst/adder/gstadder.c +++ b/gst/adder/gstadder.c @@ -141,7 +141,7 @@ static void name (type *out, type *in, gint samples) { \ } /* *INDENT-OFF* */ -MAKE_FUNC_NC (add_float64, gdouble) +MAKE_FUNC_NC (adder_orc_add_float64, gdouble) /* *INDENT-ON* */ /* we can only accept caps that we and downstream can handle. @@ -308,28 +308,28 @@ gst_adder_setcaps (GstAdder * adder, GstPad * pad, GstCaps * caps) switch (GST_AUDIO_INFO_FORMAT (&adder->info)) { case GST_AUDIO_FORMAT_S8: - adder->func = (GstAdderFunction) add_int8; + adder->func = (GstAdderFunction) adder_orc_add_int8; break; case GST_AUDIO_FORMAT_U8: - adder->func = (GstAdderFunction) add_uint8; + adder->func = (GstAdderFunction) adder_orc_add_uint8; break; case GST_AUDIO_FORMAT_S16: - adder->func = (GstAdderFunction) add_int16; + adder->func = (GstAdderFunction) adder_orc_add_int16; break; case GST_AUDIO_FORMAT_U16: - adder->func = (GstAdderFunction) add_uint16; + adder->func = (GstAdderFunction) adder_orc_add_uint16; break; case GST_AUDIO_FORMAT_S32: - adder->func = (GstAdderFunction) add_int32; + adder->func = (GstAdderFunction) adder_orc_add_int32; break; case GST_AUDIO_FORMAT_U32: - adder->func = (GstAdderFunction) add_uint32; + adder->func = (GstAdderFunction) adder_orc_add_uint32; break; case GST_AUDIO_FORMAT_F32: - adder->func = (GstAdderFunction) add_float32; + adder->func = (GstAdderFunction) adder_orc_add_float32; break; case GST_AUDIO_FORMAT_F64: - adder->func = (GstAdderFunction) add_float64; + adder->func = (GstAdderFunction) adder_orc_add_float64; break; default: goto invalid_format; diff --git a/gst/adder/gstadderorc-dist.c b/gst/adder/gstadderorc-dist.c index 5dcc0faa0..c4b43d66f 100644 --- a/gst/adder/gstadderorc-dist.c +++ b/gst/adder/gstadderorc-dist.c @@ -82,18 +82,20 @@ typedef union #ifndef DISABLE_ORC #include <orc/orc.h> #endif -void add_int32 (gint32 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, +void adder_orc_add_int32 (gint32 * ORC_RESTRICT d1, + const gint32 * ORC_RESTRICT s1, int n); +void adder_orc_add_int16 (gint16 * ORC_RESTRICT d1, + const gint16 * ORC_RESTRICT s1, int n); +void adder_orc_add_int8 (gint8 * ORC_RESTRICT d1, const gint8 * ORC_RESTRICT s1, int n); -void add_int16 (gint16 * ORC_RESTRICT d1, const gint16 * ORC_RESTRICT s1, - int n); -void add_int8 (gint8 * ORC_RESTRICT d1, const gint8 * ORC_RESTRICT s1, int n); -void add_uint32 (guint32 * ORC_RESTRICT d1, const guint32 * ORC_RESTRICT s1, - int n); -void add_uint16 (guint16 * ORC_RESTRICT d1, const guint16 * ORC_RESTRICT s1, - int n); -void add_uint8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, - int n); -void add_float32 (float *ORC_RESTRICT d1, const float *ORC_RESTRICT s1, int n); +void adder_orc_add_uint32 (guint32 * ORC_RESTRICT d1, + const guint32 * ORC_RESTRICT s1, int n); +void adder_orc_add_uint16 (guint16 * ORC_RESTRICT d1, + const guint16 * ORC_RESTRICT s1, int n); +void adder_orc_add_uint8 (guint8 * ORC_RESTRICT d1, + const guint8 * ORC_RESTRICT s1, int n); +void adder_orc_add_float32 (float *ORC_RESTRICT d1, + const float *ORC_RESTRICT s1, int n); /* begin Orc C target preamble */ @@ -140,10 +142,11 @@ void add_float32 (float *ORC_RESTRICT d1, const float *ORC_RESTRICT s1, int n); -/* add_int32 */ +/* adder_orc_add_int32 */ #ifdef DISABLE_ORC void -add_int32 (gint32 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n) +adder_orc_add_int32 (gint32 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, + int n) { int i; orc_union32 *ORC_RESTRICT ptr0; @@ -171,7 +174,7 @@ add_int32 (gint32 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n) #else static void -_backup_add_int32 (OrcExecutor * ORC_RESTRICT ex) +_backup_adder_orc_add_int32 (OrcExecutor * ORC_RESTRICT ex) { int i; int n = ex->n; @@ -199,7 +202,8 @@ _backup_add_int32 (OrcExecutor * ORC_RESTRICT ex) } void -add_int32 (gint32 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n) +adder_orc_add_int32 (gint32 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, + int n) { OrcExecutor _ex, *ex = &_ex; static volatile int p_inited = 0; @@ -211,8 +215,8 @@ add_int32 (gint32 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n) if (!p_inited) { p = orc_program_new (); - orc_program_set_name (p, "add_int32"); - orc_program_set_backup_function (p, _backup_add_int32); + orc_program_set_name (p, "adder_orc_add_int32"); + orc_program_set_backup_function (p, _backup_adder_orc_add_int32); orc_program_add_destination (p, 4, "d1"); orc_program_add_source (p, 4, "s1"); @@ -236,10 +240,11 @@ add_int32 (gint32 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n) #endif -/* add_int16 */ +/* adder_orc_add_int16 */ #ifdef DISABLE_ORC void -add_int16 (gint16 * ORC_RESTRICT d1, const gint16 * ORC_RESTRICT s1, int n) +adder_orc_add_int16 (gint16 * ORC_RESTRICT d1, const gint16 * ORC_RESTRICT s1, + int n) { int i; orc_union16 *ORC_RESTRICT ptr0; @@ -267,7 +272,7 @@ add_int16 (gint16 * ORC_RESTRICT d1, const gint16 * ORC_RESTRICT s1, int n) #else static void -_backup_add_int16 (OrcExecutor * ORC_RESTRICT ex) +_backup_adder_orc_add_int16 (OrcExecutor * ORC_RESTRICT ex) { int i; int n = ex->n; @@ -295,7 +300,8 @@ _backup_add_int16 (OrcExecutor * ORC_RESTRICT ex) } void -add_int16 (gint16 * ORC_RESTRICT d1, const gint16 * ORC_RESTRICT s1, int n) +adder_orc_add_int16 (gint16 * ORC_RESTRICT d1, const gint16 * ORC_RESTRICT s1, + int n) { OrcExecutor _ex, *ex = &_ex; static volatile int p_inited = 0; @@ -307,8 +313,8 @@ add_int16 (gint16 * ORC_RESTRICT d1, const gint16 * ORC_RESTRICT s1, int n) if (!p_inited) { p = orc_program_new (); - orc_program_set_name (p, "add_int16"); - orc_program_set_backup_function (p, _backup_add_int16); + orc_program_set_name (p, "adder_orc_add_int16"); + orc_program_set_backup_function (p, _backup_adder_orc_add_int16); orc_program_add_destination (p, 2, "d1"); orc_program_add_source (p, 2, "s1"); @@ -332,10 +338,11 @@ add_int16 (gint16 * ORC_RESTRICT d1, const gint16 * ORC_RESTRICT s1, int n) #endif -/* add_int8 */ +/* adder_orc_add_int8 */ #ifdef DISABLE_ORC void -add_int8 (gint8 * ORC_RESTRICT d1, const gint8 * ORC_RESTRICT s1, int n) +adder_orc_add_int8 (gint8 * ORC_RESTRICT d1, const gint8 * ORC_RESTRICT s1, + int n) { int i; orc_int8 *ORC_RESTRICT ptr0; @@ -363,7 +370,7 @@ add_int8 (gint8 * ORC_RESTRICT d1, const gint8 * ORC_RESTRICT s1, int n) #else static void -_backup_add_int8 (OrcExecutor * ORC_RESTRICT ex) +_backup_adder_orc_add_int8 (OrcExecutor * ORC_RESTRICT ex) { int i; int n = ex->n; @@ -391,7 +398,8 @@ _backup_add_int8 (OrcExecutor * ORC_RESTRICT ex) } void -add_int8 (gint8 * ORC_RESTRICT d1, const gint8 * ORC_RESTRICT s1, int n) +adder_orc_add_int8 (gint8 * ORC_RESTRICT d1, const gint8 * ORC_RESTRICT s1, + int n) { OrcExecutor _ex, *ex = &_ex; static volatile int p_inited = 0; @@ -403,8 +411,8 @@ add_int8 (gint8 * ORC_RESTRICT d1, const gint8 * ORC_RESTRICT s1, int n) if (!p_inited) { p = orc_program_new (); - orc_program_set_name (p, "add_int8"); - orc_program_set_backup_function (p, _backup_add_int8); + orc_program_set_name (p, "adder_orc_add_int8"); + orc_program_set_backup_function (p, _backup_adder_orc_add_int8); orc_program_add_destination (p, 1, "d1"); orc_program_add_source (p, 1, "s1"); @@ -428,10 +436,11 @@ add_int8 (gint8 * ORC_RESTRICT d1, const gint8 * ORC_RESTRICT s1, int n) #endif -/* add_uint32 */ +/* adder_orc_add_uint32 */ #ifdef DISABLE_ORC void -add_uint32 (guint32 * ORC_RESTRICT d1, const guint32 * ORC_RESTRICT s1, int n) +adder_orc_add_uint32 (guint32 * ORC_RESTRICT d1, + const guint32 * ORC_RESTRICT s1, int n) { int i; orc_union32 *ORC_RESTRICT ptr0; @@ -461,7 +470,7 @@ add_uint32 (guint32 * ORC_RESTRICT d1, const guint32 * ORC_RESTRICT s1, int n) #else static void -_backup_add_uint32 (OrcExecutor * ORC_RESTRICT ex) +_backup_adder_orc_add_uint32 (OrcExecutor * ORC_RESTRICT ex) { int i; int n = ex->n; @@ -491,7 +500,8 @@ _backup_add_uint32 (OrcExecutor * ORC_RESTRICT ex) } void -add_uint32 (guint32 * ORC_RESTRICT d1, const guint32 * ORC_RESTRICT s1, int n) +adder_orc_add_uint32 (guint32 * ORC_RESTRICT d1, + const guint32 * ORC_RESTRICT s1, int n) { OrcExecutor _ex, *ex = &_ex; static volatile int p_inited = 0; @@ -503,8 +513,8 @@ add_uint32 (guint32 * ORC_RESTRICT d1, const guint32 * ORC_RESTRICT s1, int n) if (!p_inited) { p = orc_program_new (); - orc_program_set_name (p, "add_uint32"); - orc_program_set_backup_function (p, _backup_add_uint32); + orc_program_set_name (p, "adder_orc_add_uint32"); + orc_program_set_backup_function (p, _backup_adder_orc_add_uint32); orc_program_add_destination (p, 4, "d1"); orc_program_add_source (p, 4, "s1"); @@ -528,10 +538,11 @@ add_uint32 (guint32 * ORC_RESTRICT d1, const guint32 * ORC_RESTRICT s1, int n) #endif -/* add_uint16 */ +/* adder_orc_add_uint16 */ #ifdef DISABLE_ORC void -add_uint16 (guint16 * ORC_RESTRICT d1, const guint16 * ORC_RESTRICT s1, int n) +adder_orc_add_uint16 (guint16 * ORC_RESTRICT d1, + const guint16 * ORC_RESTRICT s1, int n) { int i; orc_union16 *ORC_RESTRICT ptr0; @@ -559,7 +570,7 @@ add_uint16 (guint16 * ORC_RESTRICT d1, const guint16 * ORC_RESTRICT s1, int n) #else static void -_backup_add_uint16 (OrcExecutor * ORC_RESTRICT ex) +_backup_adder_orc_add_uint16 (OrcExecutor * ORC_RESTRICT ex) { int i; int n = ex->n; @@ -587,7 +598,8 @@ _backup_add_uint16 (OrcExecutor * ORC_RESTRICT ex) } void -add_uint16 (guint16 * ORC_RESTRICT d1, const guint16 * ORC_RESTRICT s1, int n) +adder_orc_add_uint16 (guint16 * ORC_RESTRICT d1, + const guint16 * ORC_RESTRICT s1, int n) { OrcExecutor _ex, *ex = &_ex; static volatile int p_inited = 0; @@ -599,8 +611,8 @@ add_uint16 (guint16 * ORC_RESTRICT d1, const guint16 * ORC_RESTRICT s1, int n) if (!p_inited) { p = orc_program_new (); - orc_program_set_name (p, "add_uint16"); - orc_program_set_backup_function (p, _backup_add_uint16); + orc_program_set_name (p, "adder_orc_add_uint16"); + orc_program_set_backup_function (p, _backup_adder_orc_add_uint16); orc_program_add_destination (p, 2, "d1"); orc_program_add_source (p, 2, "s1"); @@ -624,10 +636,11 @@ add_uint16 (guint16 * ORC_RESTRICT d1, const guint16 * ORC_RESTRICT s1, int n) #endif -/* add_uint8 */ +/* adder_orc_add_uint8 */ #ifdef DISABLE_ORC void -add_uint8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n) +adder_orc_add_uint8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, + int n) { int i; orc_int8 *ORC_RESTRICT ptr0; @@ -655,7 +668,7 @@ add_uint8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n) #else static void -_backup_add_uint8 (OrcExecutor * ORC_RESTRICT ex) +_backup_adder_orc_add_uint8 (OrcExecutor * ORC_RESTRICT ex) { int i; int n = ex->n; @@ -683,7 +696,8 @@ _backup_add_uint8 (OrcExecutor * ORC_RESTRICT ex) } void -add_uint8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n) +adder_orc_add_uint8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, + int n) { OrcExecutor _ex, *ex = &_ex; static volatile int p_inited = 0; @@ -695,8 +709,8 @@ add_uint8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n) if (!p_inited) { p = orc_program_new (); - orc_program_set_name (p, "add_uint8"); - orc_program_set_backup_function (p, _backup_add_uint8); + orc_program_set_name (p, "adder_orc_add_uint8"); + orc_program_set_backup_function (p, _backup_adder_orc_add_uint8); orc_program_add_destination (p, 1, "d1"); orc_program_add_source (p, 1, "s1"); @@ -720,10 +734,11 @@ add_uint8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n) #endif -/* add_float32 */ +/* adder_orc_add_float32 */ #ifdef DISABLE_ORC void -add_float32 (float *ORC_RESTRICT d1, const float *ORC_RESTRICT s1, int n) +adder_orc_add_float32 (float *ORC_RESTRICT d1, const float *ORC_RESTRICT s1, + int n) { int i; orc_union32 *ORC_RESTRICT ptr0; @@ -759,7 +774,7 @@ add_float32 (float *ORC_RESTRICT d1, const float *ORC_RESTRICT s1, int n) #else static void -_backup_add_float32 (OrcExecutor * ORC_RESTRICT ex) +_backup_adder_orc_add_float32 (OrcExecutor * ORC_RESTRICT ex) { int i; int n = ex->n; @@ -795,7 +810,8 @@ _backup_add_float32 (OrcExecutor * ORC_RESTRICT ex) } void -add_float32 (float *ORC_RESTRICT d1, const float *ORC_RESTRICT s1, int n) +adder_orc_add_float32 (float *ORC_RESTRICT d1, const float *ORC_RESTRICT s1, + int n) { OrcExecutor _ex, *ex = &_ex; static volatile int p_inited = 0; @@ -807,8 +823,8 @@ add_float32 (float *ORC_RESTRICT d1, const float *ORC_RESTRICT s1, int n) if (!p_inited) { p = orc_program_new (); - orc_program_set_name (p, "add_float32"); - orc_program_set_backup_function (p, _backup_add_float32); + orc_program_set_name (p, "adder_orc_add_float32"); + orc_program_set_backup_function (p, _backup_adder_orc_add_float32); orc_program_add_destination (p, 4, "d1"); orc_program_add_source (p, 4, "s1"); diff --git a/gst/adder/gstadderorc-dist.h b/gst/adder/gstadderorc-dist.h index 038257a5e..3c8a3853b 100644 --- a/gst/adder/gstadderorc-dist.h +++ b/gst/adder/gstadderorc-dist.h @@ -67,13 +67,13 @@ typedef union { orc_int64 i; double f; orc_int32 x2[2]; float x2f[2]; orc_int16 #define ORC_RESTRICT #endif #endif -void add_int32 (gint32 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n); -void add_int16 (gint16 * ORC_RESTRICT d1, const gint16 * ORC_RESTRICT s1, int n); -void add_int8 (gint8 * ORC_RESTRICT d1, const gint8 * ORC_RESTRICT s1, int n); -void add_uint32 (guint32 * ORC_RESTRICT d1, const guint32 * ORC_RESTRICT s1, int n); -void add_uint16 (guint16 * ORC_RESTRICT d1, const guint16 * ORC_RESTRICT s1, int n); -void add_uint8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n); -void add_float32 (float * ORC_RESTRICT d1, const float * ORC_RESTRICT s1, int n); +void adder_orc_add_int32 (gint32 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n); +void adder_orc_add_int16 (gint16 * ORC_RESTRICT d1, const gint16 * ORC_RESTRICT s1, int n); +void adder_orc_add_int8 (gint8 * ORC_RESTRICT d1, const gint8 * ORC_RESTRICT s1, int n); +void adder_orc_add_uint32 (guint32 * ORC_RESTRICT d1, const guint32 * ORC_RESTRICT s1, int n); +void adder_orc_add_uint16 (guint16 * ORC_RESTRICT d1, const guint16 * ORC_RESTRICT s1, int n); +void adder_orc_add_uint8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n); +void adder_orc_add_float32 (float * ORC_RESTRICT d1, const float * ORC_RESTRICT s1, int n); #ifdef __cplusplus } diff --git a/gst/adder/gstadderorc.orc b/gst/adder/gstadderorc.orc index e37f4a915..d949d3fc6 100644 --- a/gst/adder/gstadderorc.orc +++ b/gst/adder/gstadderorc.orc @@ -1,47 +1,47 @@ -.function add_int32 +.function adder_orc_add_int32 .dest 4 d1 gint32 .source 4 s1 gint32 addssl d1, d1, s1 -.function add_int16 +.function adder_orc_add_int16 .dest 2 d1 gint16 .source 2 s1 gint16 addssw d1, d1, s1 -.function add_int8 +.function adder_orc_add_int8 .dest 1 d1 gint8 .source 1 s1 gint8 addssb d1, d1, s1 -.function add_uint32 +.function adder_orc_add_uint32 .dest 4 d1 guint32 .source 4 s1 guint32 addusl d1, d1, s1 -.function add_uint16 +.function adder_orc_add_uint16 .dest 2 d1 guint16 .source 2 s1 guint16 addusw d1, d1, s1 -.function add_uint8 +.function adder_orc_add_uint8 .dest 1 d1 guint8 .source 1 s1 guint8 addusb d1, d1, s1 -.function add_float32 +.function adder_orc_add_float32 .dest 4 d1 float .source 4 s1 float |