gst: update disted orc backup code
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Sat, 16 Apr 2011 14:58:21 +0000 (15:58 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Sat, 16 Apr 2011 14:59:45 +0000 (15:59 +0100)
gst/adder/gstadderorc-dist.c
gst/adder/gstadderorc-dist.h
gst/audioconvert/gstaudioconvertorc-dist.c
gst/audioconvert/gstaudioconvertorc-dist.h
gst/videoscale/gstvideoscaleorc-dist.c
gst/videoscale/gstvideoscaleorc-dist.h
gst/videotestsrc/gstvideotestsrcorc-dist.c
gst/videotestsrc/gstvideotestsrcorc-dist.h
gst/volume/gstvolumeorc-dist.c
gst/volume/gstvolumeorc-dist.h

index 68d44fa..b1850f0 100644 (file)
@@ -4,9 +4,6 @@
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
-#ifndef DISABLE_ORC
-#include <orc/orc.h>
-#endif
 #include <glib.h>
 
 #ifndef _ORC_INTEGER_TYPEDEFS_
@@ -32,6 +29,7 @@ typedef unsigned __int16 orc_uint16;
 typedef unsigned __int32 orc_uint32;
 typedef unsigned __int64 orc_uint64;
 #define ORC_UINT64_C(x) (x##Ui64)
+#define inline __inline
 #else
 #include <limits.h>
 typedef signed char orc_int8;
@@ -71,14 +69,31 @@ typedef union
   orc_int16 x4[4];
 } orc_union64;
 #endif
+#ifndef ORC_RESTRICT
+#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
+#define ORC_RESTRICT restrict
+#elif defined(__GNUC__) && __GNUC__ >= 4
+#define ORC_RESTRICT __restrict__
+#else
+#define ORC_RESTRICT
+#endif
+#endif
 
-void add_int32 (gint32 * d1, const gint32 * s1, int n);
-void add_int16 (gint16 * d1, const gint16 * s1, int n);
-void add_int8 (gint8 * d1, const gint8 * s1, int n);
-void add_uint32 (guint32 * d1, const guint32 * s1, int n);
-void add_uint16 (guint16 * d1, const guint16 * s1, int n);
-void add_uint8 (guint8 * d1, const guint8 * s1, int n);
-void add_float32 (float *d1, const float *s1, int n);
+#ifndef DISABLE_ORC
+#include <orc/orc.h>
+#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 gst_adder_orc_init (void);
 
@@ -114,6 +129,7 @@ void gst_adder_orc_init (void);
 #define ORC_ISNAN(x) ((((x)&0x7f800000) == 0x7f800000) && (((x)&0x007fffff) != 0))
 #define ORC_DENORMAL_DOUBLE(x) ((x) & ((((x)&ORC_UINT64_C(0x7ff0000000000000)) == 0) ? ORC_UINT64_C(0xfff0000000000000) : ORC_UINT64_C(0xffffffffffffffff)))
 #define ORC_ISNAN_DOUBLE(x) ((((x)&ORC_UINT64_C(0x7ff0000000000000)) == ORC_UINT64_C(0x7ff0000000000000)) && (((x)&ORC_UINT64_C(0x000fffffffffffff)) != 0))
+#ifndef ORC_RESTRICT
 #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
 #define ORC_RESTRICT restrict
 #elif defined(__GNUC__) && __GNUC__ >= 4
@@ -121,6 +137,7 @@ void gst_adder_orc_init (void);
 #else
 #define ORC_RESTRICT
 #endif
+#endif
 /* end Orc C target preamble */
 
 
@@ -128,7 +145,7 @@ void gst_adder_orc_init (void);
 /* add_int32 */
 #ifdef DISABLE_ORC
 void
-add_int32 (gint32 * d1, const gint32 * s1, int n)
+add_int32 (gint32 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n)
 {
   int i;
   orc_union32 *ORC_RESTRICT ptr0;
@@ -185,7 +202,7 @@ _backup_add_int32 (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_add_int32;
 void
-add_int32 (gint32 * d1, const gint32 * s1, int n)
+add_int32 (gint32 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n)
 {
   OrcExecutor _ex, *ex = &_ex;
   OrcProgram *p = _orc_program_add_int32;
@@ -206,7 +223,7 @@ add_int32 (gint32 * d1, const gint32 * s1, int n)
 /* add_int16 */
 #ifdef DISABLE_ORC
 void
-add_int16 (gint16 * d1, const gint16 * s1, int n)
+add_int16 (gint16 * ORC_RESTRICT d1, const gint16 * ORC_RESTRICT s1, int n)
 {
   int i;
   orc_union16 *ORC_RESTRICT ptr0;
@@ -263,7 +280,7 @@ _backup_add_int16 (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_add_int16;
 void
-add_int16 (gint16 * d1, const gint16 * s1, int n)
+add_int16 (gint16 * ORC_RESTRICT d1, const gint16 * ORC_RESTRICT s1, int n)
 {
   OrcExecutor _ex, *ex = &_ex;
   OrcProgram *p = _orc_program_add_int16;
@@ -284,7 +301,7 @@ add_int16 (gint16 * d1, const gint16 * s1, int n)
 /* add_int8 */
 #ifdef DISABLE_ORC
 void
-add_int8 (gint8 * d1, const gint8 * s1, int n)
+add_int8 (gint8 * ORC_RESTRICT d1, const gint8 * ORC_RESTRICT s1, int n)
 {
   int i;
   orc_int8 *ORC_RESTRICT ptr0;
@@ -341,7 +358,7 @@ _backup_add_int8 (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_add_int8;
 void
-add_int8 (gint8 * d1, const gint8 * s1, int n)
+add_int8 (gint8 * ORC_RESTRICT d1, const gint8 * ORC_RESTRICT s1, int n)
 {
   OrcExecutor _ex, *ex = &_ex;
   OrcProgram *p = _orc_program_add_int8;
@@ -362,7 +379,7 @@ add_int8 (gint8 * d1, const gint8 * s1, int n)
 /* add_uint32 */
 #ifdef DISABLE_ORC
 void
-add_uint32 (guint32 * d1, const guint32 * s1, int n)
+add_uint32 (guint32 * ORC_RESTRICT d1, const guint32 * ORC_RESTRICT s1, int n)
 {
   int i;
   orc_union32 *ORC_RESTRICT ptr0;
@@ -423,7 +440,7 @@ _backup_add_uint32 (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_add_uint32;
 void
-add_uint32 (guint32 * d1, const guint32 * s1, int n)
+add_uint32 (guint32 * ORC_RESTRICT d1, const guint32 * ORC_RESTRICT s1, int n)
 {
   OrcExecutor _ex, *ex = &_ex;
   OrcProgram *p = _orc_program_add_uint32;
@@ -444,7 +461,7 @@ add_uint32 (guint32 * d1, const guint32 * s1, int n)
 /* add_uint16 */
 #ifdef DISABLE_ORC
 void
-add_uint16 (guint16 * d1, const guint16 * s1, int n)
+add_uint16 (guint16 * ORC_RESTRICT d1, const guint16 * ORC_RESTRICT s1, int n)
 {
   int i;
   orc_union16 *ORC_RESTRICT ptr0;
@@ -501,7 +518,7 @@ _backup_add_uint16 (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_add_uint16;
 void
-add_uint16 (guint16 * d1, const guint16 * s1, int n)
+add_uint16 (guint16 * ORC_RESTRICT d1, const guint16 * ORC_RESTRICT s1, int n)
 {
   OrcExecutor _ex, *ex = &_ex;
   OrcProgram *p = _orc_program_add_uint16;
@@ -522,7 +539,7 @@ add_uint16 (guint16 * d1, const guint16 * s1, int n)
 /* add_uint8 */
 #ifdef DISABLE_ORC
 void
-add_uint8 (guint8 * d1, const guint8 * s1, int n)
+add_uint8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n)
 {
   int i;
   orc_int8 *ORC_RESTRICT ptr0;
@@ -579,7 +596,7 @@ _backup_add_uint8 (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_add_uint8;
 void
-add_uint8 (guint8 * d1, const guint8 * s1, int n)
+add_uint8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n)
 {
   OrcExecutor _ex, *ex = &_ex;
   OrcProgram *p = _orc_program_add_uint8;
@@ -600,7 +617,7 @@ add_uint8 (guint8 * d1, const guint8 * s1, int n)
 /* add_float32 */
 #ifdef DISABLE_ORC
 void
-add_float32 (float *d1, const float *s1, int n)
+add_float32 (float *ORC_RESTRICT d1, const float *ORC_RESTRICT s1, int n)
 {
   int i;
   orc_union32 *ORC_RESTRICT ptr0;
@@ -673,7 +690,7 @@ _backup_add_float32 (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_add_float32;
 void
-add_float32 (float *d1, const float *s1, int n)
+add_float32 (float *ORC_RESTRICT d1, const float *ORC_RESTRICT s1, int n)
 {
   OrcExecutor _ex, *ex = &_ex;
   OrcProgram *p = _orc_program_add_float32;
@@ -698,7 +715,6 @@ gst_adder_orc_init (void)
   {
     /* add_int32 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "add_int32");
@@ -709,14 +725,13 @@ gst_adder_orc_init (void)
     orc_program_append_2 (p, "addssl", 0, ORC_VAR_D1, ORC_VAR_D1, ORC_VAR_S1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_add_int32 = p;
   }
   {
     /* add_int16 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "add_int16");
@@ -727,14 +742,13 @@ gst_adder_orc_init (void)
     orc_program_append_2 (p, "addssw", 0, ORC_VAR_D1, ORC_VAR_D1, ORC_VAR_S1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_add_int16 = p;
   }
   {
     /* add_int8 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "add_int8");
@@ -745,14 +759,13 @@ gst_adder_orc_init (void)
     orc_program_append_2 (p, "addssb", 0, ORC_VAR_D1, ORC_VAR_D1, ORC_VAR_S1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_add_int8 = p;
   }
   {
     /* add_uint32 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "add_uint32");
@@ -763,14 +776,13 @@ gst_adder_orc_init (void)
     orc_program_append_2 (p, "addusl", 0, ORC_VAR_D1, ORC_VAR_D1, ORC_VAR_S1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_add_uint32 = p;
   }
   {
     /* add_uint16 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "add_uint16");
@@ -781,14 +793,13 @@ gst_adder_orc_init (void)
     orc_program_append_2 (p, "addusw", 0, ORC_VAR_D1, ORC_VAR_D1, ORC_VAR_S1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_add_uint16 = p;
   }
   {
     /* add_uint8 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "add_uint8");
@@ -799,14 +810,13 @@ gst_adder_orc_init (void)
     orc_program_append_2 (p, "addusb", 0, ORC_VAR_D1, ORC_VAR_D1, ORC_VAR_S1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_add_uint8 = p;
   }
   {
     /* add_float32 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "add_float32");
@@ -817,7 +827,7 @@ gst_adder_orc_init (void)
     orc_program_append_2 (p, "addf", 0, ORC_VAR_D1, ORC_VAR_D1, ORC_VAR_S1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_add_float32 = p;
   }
index cb69fd3..31ba99e 100644 (file)
@@ -37,6 +37,7 @@ typedef unsigned __int16 orc_uint16;
 typedef unsigned __int32 orc_uint32;
 typedef unsigned __int64 orc_uint64;
 #define ORC_UINT64_C(x) (x##Ui64)
+#define inline __inline
 #else
 #include <limits.h>
 typedef signed char orc_int8;
@@ -59,13 +60,22 @@ typedef union { orc_int16 i; orc_int8 x2[2]; } orc_union16;
 typedef union { orc_int32 i; float f; orc_int16 x2[2]; orc_int8 x4[4]; } orc_union32;
 typedef union { orc_int64 i; double f; orc_int32 x2[2]; float x2f[2]; orc_int16 x4[4]; } orc_union64;
 #endif
-void add_int32 (gint32 * d1, const gint32 * s1, int n);
-void add_int16 (gint16 * d1, const gint16 * s1, int n);
-void add_int8 (gint8 * d1, const gint8 * s1, int n);
-void add_uint32 (guint32 * d1, const guint32 * s1, int n);
-void add_uint16 (guint16 * d1, const guint16 * s1, int n);
-void add_uint8 (guint8 * d1, const guint8 * s1, int n);
-void add_float32 (float * d1, const float * s1, int n);
+#ifndef ORC_RESTRICT
+#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
+#define ORC_RESTRICT restrict
+#elif defined(__GNUC__) && __GNUC__ >= 4
+#define ORC_RESTRICT __restrict__
+#else
+#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);
 
 #ifdef __cplusplus
 }
index 9f34087..4bf8e55 100644 (file)
@@ -4,9 +4,6 @@
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
-#ifndef DISABLE_ORC
-#include <orc/orc.h>
-#endif
 #include <glib.h>
 
 #ifndef _ORC_INTEGER_TYPEDEFS_
@@ -32,6 +29,7 @@ typedef unsigned __int16 orc_uint16;
 typedef unsigned __int32 orc_uint32;
 typedef unsigned __int64 orc_uint64;
 #define ORC_UINT64_C(x) (x##Ui64)
+#define inline __inline
 #else
 #include <limits.h>
 typedef signed char orc_int8;
@@ -71,107 +69,127 @@ typedef union
   orc_int16 x4[4];
 } orc_union64;
 #endif
+#ifndef ORC_RESTRICT
+#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
+#define ORC_RESTRICT restrict
+#elif defined(__GNUC__) && __GNUC__ >= 4
+#define ORC_RESTRICT __restrict__
+#else
+#define ORC_RESTRICT
+#endif
+#endif
 
-void orc_audio_convert_unpack_u8 (gint32 * d1, const guint8 * s1, int p1,
-    int n);
-void orc_audio_convert_unpack_s8 (gint32 * d1, const guint8 * s1, int p1,
-    int n);
-void orc_audio_convert_unpack_u16 (gint32 * d1, const guint8 * s1, int p1,
-    int n);
-void orc_audio_convert_unpack_s16 (gint32 * d1, const guint8 * s1, int p1,
-    int n);
-void orc_audio_convert_unpack_u16_swap (gint32 * d1, const guint8 * s1, int p1,
-    int n);
-void orc_audio_convert_unpack_s16_swap (gint32 * d1, const guint8 * s1, int p1,
-    int n);
-void orc_audio_convert_unpack_u32 (gint32 * d1, const guint8 * s1, int p1,
-    int n);
-void orc_audio_convert_unpack_s32 (gint32 * d1, const guint8 * s1, int p1,
-    int n);
-void orc_audio_convert_unpack_u32_swap (gint32 * d1, const guint8 * s1, int p1,
-    int n);
-void orc_audio_convert_unpack_s32_swap (gint32 * d1, const guint8 * s1, int p1,
-    int n);
-void orc_audio_convert_unpack_float_s32 (guint32 * d1, const gfloat * s1,
-    int n);
-void orc_audio_convert_unpack_float_s32_swap (guint32 * d1, const gfloat * s1,
-    int n);
-void orc_audio_convert_unpack_double_s32 (guint32 * d1, const gdouble * s1,
-    int n);
-void orc_audio_convert_unpack_double_s32_swap (guint32 * d1, const gdouble * s1,
-    int n);
-void orc_audio_convert_unpack_float_double (gdouble * d1, const gfloat * s1,
-    int n);
-void orc_audio_convert_unpack_float_double_swap (gdouble * d1,
-    const gfloat * s1, int n);
-void orc_audio_convert_unpack_double_double (gdouble * d1, const gdouble * s1,
-    int n);
-void orc_audio_convert_unpack_double_double_swap (gdouble * d1,
-    const gdouble * s1, int n);
-void orc_audio_convert_unpack_u8_double (gdouble * d1, const guint8 * s1,
-    int p1, int n);
-void orc_audio_convert_unpack_s8_double (gdouble * d1, const guint8 * s1,
-    int p1, int n);
-void orc_audio_convert_unpack_u16_double (gdouble * d1, const guint8 * s1,
-    int p1, int n);
-void orc_audio_convert_unpack_s16_double (gdouble * d1, const guint8 * s1,
-    int p1, int n);
-void orc_audio_convert_unpack_u16_double_swap (gdouble * d1, const guint8 * s1,
-    int p1, int n);
-void orc_audio_convert_unpack_s16_double_swap (gdouble * d1, const guint8 * s1,
-    int p1, int n);
-void orc_audio_convert_unpack_u32_double (gdouble * d1, const guint8 * s1,
-    int p1, int n);
-void orc_audio_convert_unpack_s32_double (gdouble * d1, const guint8 * s1,
-    int p1, int n);
-void orc_audio_convert_unpack_u32_double_swap (gdouble * d1, const guint8 * s1,
-    int p1, int n);
-void orc_audio_convert_unpack_s32_double_swap (gdouble * d1, const guint8 * s1,
-    int p1, int n);
-void orc_audio_convert_pack_u8 (guint8 * d1, const gint32 * s1, int p1, int n);
-void orc_audio_convert_pack_s8 (guint8 * d1, const gint32 * s1, int p1, int n);
-void orc_audio_convert_pack_u16 (guint8 * d1, const gint32 * s1, int p1, int n);
-void orc_audio_convert_pack_s16 (guint8 * d1, const gint32 * s1, int p1, int n);
-void orc_audio_convert_pack_u16_swap (guint8 * d1, const gint32 * s1, int p1,
-    int n);
-void orc_audio_convert_pack_s16_swap (guint8 * d1, const gint32 * s1, int p1,
-    int n);
-void orc_audio_convert_pack_u32 (guint8 * d1, const gint32 * s1, int p1, int n);
-void orc_audio_convert_pack_s32 (guint8 * d1, const gint32 * s1, int p1, int n);
-void orc_audio_convert_pack_u32_swap (guint8 * d1, const gint32 * s1, int p1,
-    int n);
-void orc_audio_convert_pack_s32_swap (guint8 * d1, const gint32 * s1, int p1,
-    int n);
-void orc_audio_convert_pack_s32_float (gfloat * d1, const gint32 * s1, int n);
-void orc_audio_convert_pack_s32_float_swap (gfloat * d1, const gint32 * s1,
-    int n);
-void orc_audio_convert_pack_s32_double (gdouble * d1, const gint32 * s1, int n);
-void orc_audio_convert_pack_s32_double_swap (gdouble * d1, const gint32 * s1,
-    int n);
-void orc_audio_convert_pack_double_float (gfloat * d1, const gdouble * s1,
-    int n);
-void orc_audio_convert_pack_double_float_swap (gfloat * d1, const gdouble * s1,
-    int n);
-void orc_audio_convert_pack_double_u8 (guint8 * d1, const gdouble * s1, int p1,
-    int n);
-void orc_audio_convert_pack_double_s8 (guint8 * d1, const gdouble * s1, int p1,
-    int n);
-void orc_audio_convert_pack_double_u16 (guint8 * d1, const gdouble * s1, int p1,
-    int n);
-void orc_audio_convert_pack_double_s16 (guint8 * d1, const gdouble * s1, int p1,
-    int n);
-void orc_audio_convert_pack_double_u16_swap (guint8 * d1, const gdouble * s1,
-    int p1, int n);
-void orc_audio_convert_pack_double_s16_swap (guint8 * d1, const gdouble * s1,
-    int p1, int n);
-void orc_audio_convert_pack_double_u32 (guint8 * d1, const gdouble * s1, int p1,
-    int n);
-void orc_audio_convert_pack_double_s32 (guint8 * d1, const gdouble * s1, int p1,
-    int n);
-void orc_audio_convert_pack_double_u32_swap (guint8 * d1, const gdouble * s1,
-    int p1, int n);
-void orc_audio_convert_pack_double_s32_swap (guint8 * d1, const gdouble * s1,
-    int p1, int n);
+#ifndef DISABLE_ORC
+#include <orc/orc.h>
+#endif
+void orc_audio_convert_unpack_u8 (gint32 * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_unpack_s8 (gint32 * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_unpack_u16 (gint32 * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_unpack_s16 (gint32 * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_unpack_u16_swap (gint32 * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_unpack_s16_swap (gint32 * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_unpack_u32 (gint32 * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_unpack_s32 (gint32 * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_unpack_u32_swap (gint32 * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_unpack_s32_swap (gint32 * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_unpack_float_s32 (guint32 * ORC_RESTRICT d1,
+    const gfloat * ORC_RESTRICT s1, int n);
+void orc_audio_convert_unpack_float_s32_swap (guint32 * ORC_RESTRICT d1,
+    const gfloat * ORC_RESTRICT s1, int n);
+void orc_audio_convert_unpack_double_s32 (guint32 * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int n);
+void orc_audio_convert_unpack_double_s32_swap (guint32 * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int n);
+void orc_audio_convert_unpack_float_double (gdouble * ORC_RESTRICT d1,
+    const gfloat * ORC_RESTRICT s1, int n);
+void orc_audio_convert_unpack_float_double_swap (gdouble * ORC_RESTRICT d1,
+    const gfloat * ORC_RESTRICT s1, int n);
+void orc_audio_convert_unpack_double_double (gdouble * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int n);
+void orc_audio_convert_unpack_double_double_swap (gdouble * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int n);
+void orc_audio_convert_unpack_u8_double (gdouble * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_unpack_s8_double (gdouble * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_unpack_u16_double (gdouble * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_unpack_s16_double (gdouble * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_unpack_u16_double_swap (gdouble * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_unpack_s16_double_swap (gdouble * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_unpack_u32_double (gdouble * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_unpack_s32_double (gdouble * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_unpack_u32_double_swap (gdouble * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_unpack_s32_double_swap (gdouble * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_pack_u8 (guint8 * ORC_RESTRICT d1,
+    const gint32 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_pack_s8 (guint8 * ORC_RESTRICT d1,
+    const gint32 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_pack_u16 (guint8 * ORC_RESTRICT d1,
+    const gint32 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_pack_s16 (guint8 * ORC_RESTRICT d1,
+    const gint32 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_pack_u16_swap (guint8 * ORC_RESTRICT d1,
+    const gint32 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_pack_s16_swap (guint8 * ORC_RESTRICT d1,
+    const gint32 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_pack_u32 (guint8 * ORC_RESTRICT d1,
+    const gint32 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_pack_s32 (guint8 * ORC_RESTRICT d1,
+    const gint32 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_pack_u32_swap (guint8 * ORC_RESTRICT d1,
+    const gint32 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_pack_s32_swap (guint8 * ORC_RESTRICT d1,
+    const gint32 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_pack_s32_float (gfloat * ORC_RESTRICT d1,
+    const gint32 * ORC_RESTRICT s1, int n);
+void orc_audio_convert_pack_s32_float_swap (gfloat * ORC_RESTRICT d1,
+    const gint32 * ORC_RESTRICT s1, int n);
+void orc_audio_convert_pack_s32_double (gdouble * ORC_RESTRICT d1,
+    const gint32 * ORC_RESTRICT s1, int n);
+void orc_audio_convert_pack_s32_double_swap (gdouble * ORC_RESTRICT d1,
+    const gint32 * ORC_RESTRICT s1, int n);
+void orc_audio_convert_pack_double_float (gfloat * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int n);
+void orc_audio_convert_pack_double_float_swap (gfloat * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int n);
+void orc_audio_convert_pack_double_u8 (guint8 * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_pack_double_s8 (guint8 * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_pack_double_u16 (guint8 * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_pack_double_s16 (guint8 * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_pack_double_u16_swap (guint8 * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_pack_double_s16_swap (guint8 * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_pack_double_u32 (guint8 * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_pack_double_s32 (guint8 * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_pack_double_u32_swap (guint8 * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int p1, int n);
+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);
 
@@ -207,6 +225,7 @@ void gst_audio_convert_orc_init (void);
 #define ORC_ISNAN(x) ((((x)&0x7f800000) == 0x7f800000) && (((x)&0x007fffff) != 0))
 #define ORC_DENORMAL_DOUBLE(x) ((x) & ((((x)&ORC_UINT64_C(0x7ff0000000000000)) == 0) ? ORC_UINT64_C(0xfff0000000000000) : ORC_UINT64_C(0xffffffffffffffff)))
 #define ORC_ISNAN_DOUBLE(x) ((((x)&ORC_UINT64_C(0x7ff0000000000000)) == ORC_UINT64_C(0x7ff0000000000000)) && (((x)&ORC_UINT64_C(0x000fffffffffffff)) != 0))
+#ifndef ORC_RESTRICT
 #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
 #define ORC_RESTRICT restrict
 #elif defined(__GNUC__) && __GNUC__ >= 4
@@ -214,6 +233,7 @@ void gst_audio_convert_orc_init (void);
 #else
 #define ORC_RESTRICT
 #endif
+#endif
 /* end Orc C target preamble */
 
 
@@ -221,7 +241,8 @@ void gst_audio_convert_orc_init (void);
 /* orc_audio_convert_unpack_u8 */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_unpack_u8 (gint32 * d1, const guint8 * s1, int p1, int n)
+orc_audio_convert_unpack_u8 (gint32 * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int n)
 {
   int i;
   orc_union32 *ORC_RESTRICT ptr0;
@@ -237,7 +258,7 @@ orc_audio_convert_unpack_u8 (gint32 * d1, const guint8 * s1, int p1, int n)
   ptr4 = (orc_int8 *) s1;
 
   /* 4: loadpl */
-  var35.i = 0x80000000;         /* -2147483648 or 1.061e-314f */
+  var35.i = (int) 0x80000000;   /* -2147483648 or 1.061e-314f */
 
   for (i = 0; i < n; i++) {
     /* 0: loadb */
@@ -275,7 +296,7 @@ _backup_orc_audio_convert_unpack_u8 (OrcExecutor * ORC_RESTRICT ex)
   ptr4 = (orc_int8 *) ex->arrays[4];
 
   /* 4: loadpl */
-  var35.i = 0x80000000;         /* -2147483648 or 1.061e-314f */
+  var35.i = (int) 0x80000000;   /* -2147483648 or 1.061e-314f */
 
   for (i = 0; i < n; i++) {
     /* 0: loadb */
@@ -296,7 +317,8 @@ _backup_orc_audio_convert_unpack_u8 (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_unpack_u8;
 void
-orc_audio_convert_unpack_u8 (gint32 * d1, const guint8 * s1, int p1, int n)
+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;
@@ -318,7 +340,8 @@ orc_audio_convert_unpack_u8 (gint32 * d1, const guint8 * s1, int p1, int n)
 /* orc_audio_convert_unpack_s8 */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_unpack_s8 (gint32 * d1, const guint8 * s1, int p1, int n)
+orc_audio_convert_unpack_s8 (gint32 * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int n)
 {
   int i;
   orc_union32 *ORC_RESTRICT ptr0;
@@ -381,7 +404,8 @@ _backup_orc_audio_convert_unpack_s8 (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_unpack_s8;
 void
-orc_audio_convert_unpack_s8 (gint32 * d1, const guint8 * s1, int p1, int n)
+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;
@@ -403,7 +427,8 @@ orc_audio_convert_unpack_s8 (gint32 * d1, const guint8 * s1, int p1, int n)
 /* orc_audio_convert_unpack_u16 */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_unpack_u16 (gint32 * d1, const guint8 * s1, int p1, int n)
+orc_audio_convert_unpack_u16 (gint32 * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int n)
 {
   int i;
   orc_union32 *ORC_RESTRICT ptr0;
@@ -418,7 +443,7 @@ orc_audio_convert_unpack_u16 (gint32 * d1, const guint8 * s1, int p1, int n)
   ptr4 = (orc_union16 *) s1;
 
   /* 3: loadpl */
-  var34.i = 0x80000000;         /* -2147483648 or 1.061e-314f */
+  var34.i = (int) 0x80000000;   /* -2147483648 or 1.061e-314f */
 
   for (i = 0; i < n; i++) {
     /* 0: loadw */
@@ -453,7 +478,7 @@ _backup_orc_audio_convert_unpack_u16 (OrcExecutor * ORC_RESTRICT ex)
   ptr4 = (orc_union16 *) ex->arrays[4];
 
   /* 3: loadpl */
-  var34.i = 0x80000000;         /* -2147483648 or 1.061e-314f */
+  var34.i = (int) 0x80000000;   /* -2147483648 or 1.061e-314f */
 
   for (i = 0; i < n; i++) {
     /* 0: loadw */
@@ -472,7 +497,8 @@ _backup_orc_audio_convert_unpack_u16 (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_unpack_u16;
 void
-orc_audio_convert_unpack_u16 (gint32 * d1, const guint8 * s1, int p1, int n)
+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;
@@ -494,7 +520,8 @@ orc_audio_convert_unpack_u16 (gint32 * d1, const guint8 * s1, int p1, int n)
 /* orc_audio_convert_unpack_s16 */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_unpack_s16 (gint32 * d1, const guint8 * s1, int p1, int n)
+orc_audio_convert_unpack_s16 (gint32 * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int n)
 {
   int i;
   orc_union32 *ORC_RESTRICT ptr0;
@@ -551,7 +578,8 @@ _backup_orc_audio_convert_unpack_s16 (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_unpack_s16;
 void
-orc_audio_convert_unpack_s16 (gint32 * d1, const guint8 * s1, int p1, int n)
+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;
@@ -573,8 +601,8 @@ orc_audio_convert_unpack_s16 (gint32 * d1, const guint8 * s1, int p1, int n)
 /* orc_audio_convert_unpack_u16_swap */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_unpack_u16_swap (gint32 * d1, const guint8 * s1, int p1,
-    int n)
+orc_audio_convert_unpack_u16_swap (gint32 * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int n)
 {
   int i;
   orc_union32 *ORC_RESTRICT ptr0;
@@ -590,7 +618,7 @@ orc_audio_convert_unpack_u16_swap (gint32 * d1, const guint8 * s1, int p1,
   ptr4 = (orc_union16 *) s1;
 
   /* 4: loadpl */
-  var35.i = 0x80000000;         /* -2147483648 or 1.061e-314f */
+  var35.i = (int) 0x80000000;   /* -2147483648 or 1.061e-314f */
 
   for (i = 0; i < n; i++) {
     /* 0: loadw */
@@ -628,7 +656,7 @@ _backup_orc_audio_convert_unpack_u16_swap (OrcExecutor * ORC_RESTRICT ex)
   ptr4 = (orc_union16 *) ex->arrays[4];
 
   /* 4: loadpl */
-  var35.i = 0x80000000;         /* -2147483648 or 1.061e-314f */
+  var35.i = (int) 0x80000000;   /* -2147483648 or 1.061e-314f */
 
   for (i = 0; i < n; i++) {
     /* 0: loadw */
@@ -649,8 +677,8 @@ _backup_orc_audio_convert_unpack_u16_swap (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_unpack_u16_swap;
 void
-orc_audio_convert_unpack_u16_swap (gint32 * d1, const guint8 * s1, int p1,
-    int n)
+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;
@@ -672,8 +700,8 @@ orc_audio_convert_unpack_u16_swap (gint32 * d1, const guint8 * s1, int p1,
 /* orc_audio_convert_unpack_s16_swap */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_unpack_s16_swap (gint32 * d1, const guint8 * s1, int p1,
-    int n)
+orc_audio_convert_unpack_s16_swap (gint32 * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int n)
 {
   int i;
   orc_union32 *ORC_RESTRICT ptr0;
@@ -736,8 +764,8 @@ _backup_orc_audio_convert_unpack_s16_swap (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_unpack_s16_swap;
 void
-orc_audio_convert_unpack_s16_swap (gint32 * d1, const guint8 * s1, int p1,
-    int n)
+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;
@@ -759,7 +787,8 @@ orc_audio_convert_unpack_s16_swap (gint32 * d1, const guint8 * s1, int p1,
 /* orc_audio_convert_unpack_u32 */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_unpack_u32 (gint32 * d1, const guint8 * s1, int p1, int n)
+orc_audio_convert_unpack_u32 (gint32 * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int n)
 {
   int i;
   orc_union32 *ORC_RESTRICT ptr0;
@@ -773,7 +802,7 @@ orc_audio_convert_unpack_u32 (gint32 * d1, const guint8 * s1, int p1, int n)
   ptr4 = (orc_union32 *) s1;
 
   /* 2: loadpl */
-  var34.i = 0x80000000;         /* -2147483648 or 1.061e-314f */
+  var34.i = (int) 0x80000000;   /* -2147483648 or 1.061e-314f */
 
   for (i = 0; i < n; i++) {
     /* 0: loadl */
@@ -805,7 +834,7 @@ _backup_orc_audio_convert_unpack_u32 (OrcExecutor * ORC_RESTRICT ex)
   ptr4 = (orc_union32 *) ex->arrays[4];
 
   /* 2: loadpl */
-  var34.i = 0x80000000;         /* -2147483648 or 1.061e-314f */
+  var34.i = (int) 0x80000000;   /* -2147483648 or 1.061e-314f */
 
   for (i = 0; i < n; i++) {
     /* 0: loadl */
@@ -822,7 +851,8 @@ _backup_orc_audio_convert_unpack_u32 (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_unpack_u32;
 void
-orc_audio_convert_unpack_u32 (gint32 * d1, const guint8 * s1, int p1, int n)
+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;
@@ -844,7 +874,8 @@ orc_audio_convert_unpack_u32 (gint32 * d1, const guint8 * s1, int p1, int n)
 /* orc_audio_convert_unpack_s32 */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_unpack_s32 (gint32 * d1, const guint8 * s1, int p1, int n)
+orc_audio_convert_unpack_s32 (gint32 * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int n)
 {
   int i;
   orc_union32 *ORC_RESTRICT ptr0;
@@ -895,7 +926,8 @@ _backup_orc_audio_convert_unpack_s32 (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_unpack_s32;
 void
-orc_audio_convert_unpack_s32 (gint32 * d1, const guint8 * s1, int p1, int n)
+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;
@@ -917,8 +949,8 @@ orc_audio_convert_unpack_s32 (gint32 * d1, const guint8 * s1, int p1, int n)
 /* orc_audio_convert_unpack_u32_swap */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_unpack_u32_swap (gint32 * d1, const guint8 * s1, int p1,
-    int n)
+orc_audio_convert_unpack_u32_swap (gint32 * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int n)
 {
   int i;
   orc_union32 *ORC_RESTRICT ptr0;
@@ -933,7 +965,7 @@ orc_audio_convert_unpack_u32_swap (gint32 * d1, const guint8 * s1, int p1,
   ptr4 = (orc_union32 *) s1;
 
   /* 3: loadpl */
-  var34.i = 0x80000000;         /* -2147483648 or 1.061e-314f */
+  var34.i = (int) 0x80000000;   /* -2147483648 or 1.061e-314f */
 
   for (i = 0; i < n; i++) {
     /* 0: loadl */
@@ -968,7 +1000,7 @@ _backup_orc_audio_convert_unpack_u32_swap (OrcExecutor * ORC_RESTRICT ex)
   ptr4 = (orc_union32 *) ex->arrays[4];
 
   /* 3: loadpl */
-  var34.i = 0x80000000;         /* -2147483648 or 1.061e-314f */
+  var34.i = (int) 0x80000000;   /* -2147483648 or 1.061e-314f */
 
   for (i = 0; i < n; i++) {
     /* 0: loadl */
@@ -987,8 +1019,8 @@ _backup_orc_audio_convert_unpack_u32_swap (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_unpack_u32_swap;
 void
-orc_audio_convert_unpack_u32_swap (gint32 * d1, const guint8 * s1, int p1,
-    int n)
+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;
@@ -1010,8 +1042,8 @@ orc_audio_convert_unpack_u32_swap (gint32 * d1, const guint8 * s1, int p1,
 /* orc_audio_convert_unpack_s32_swap */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_unpack_s32_swap (gint32 * d1, const guint8 * s1, int p1,
-    int n)
+orc_audio_convert_unpack_s32_swap (gint32 * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int n)
 {
   int i;
   orc_union32 *ORC_RESTRICT ptr0;
@@ -1068,8 +1100,8 @@ _backup_orc_audio_convert_unpack_s32_swap (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_unpack_s32_swap;
 void
-orc_audio_convert_unpack_s32_swap (gint32 * d1, const guint8 * s1, int p1,
-    int n)
+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;
@@ -1091,7 +1123,8 @@ orc_audio_convert_unpack_s32_swap (gint32 * d1, const guint8 * s1, int p1,
 /* orc_audio_convert_unpack_float_s32 */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_unpack_float_s32 (guint32 * d1, const gfloat * s1, int n)
+orc_audio_convert_unpack_float_s32 (guint32 * ORC_RESTRICT d1,
+    const gfloat * ORC_RESTRICT s1, int n)
 {
   int i;
   orc_union32 *ORC_RESTRICT ptr0;
@@ -1107,9 +1140,9 @@ orc_audio_convert_unpack_float_s32 (guint32 * d1, const gfloat * s1, int n)
   ptr4 = (orc_union32 *) s1;
 
   /* 1: loadpl */
-  var33.i = 0x4f000000;         /* 1325400064 or 6.54835e-315f */
+  var33.i = (int) 0x4f000000;   /* 1325400064 or 6.54835e-315f */
   /* 3: loadpl */
-  var34.i = 0x3f000000;         /* 1056964608 or 5.2221e-315f */
+  var34.i = (int) 0x3f000000;   /* 1056964608 or 5.2221e-315f */
 
   for (i = 0; i < n; i++) {
     /* 0: loadl */
@@ -1167,9 +1200,9 @@ _backup_orc_audio_convert_unpack_float_s32 (OrcExecutor * ORC_RESTRICT ex)
   ptr4 = (orc_union32 *) ex->arrays[4];
 
   /* 1: loadpl */
-  var33.i = 0x4f000000;         /* 1325400064 or 6.54835e-315f */
+  var33.i = (int) 0x4f000000;   /* 1325400064 or 6.54835e-315f */
   /* 3: loadpl */
-  var34.i = 0x3f000000;         /* 1056964608 or 5.2221e-315f */
+  var34.i = (int) 0x3f000000;   /* 1056964608 or 5.2221e-315f */
 
   for (i = 0; i < n; i++) {
     /* 0: loadl */
@@ -1210,7 +1243,8 @@ _backup_orc_audio_convert_unpack_float_s32 (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_unpack_float_s32;
 void
-orc_audio_convert_unpack_float_s32 (guint32 * d1, const gfloat * s1, int n)
+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;
@@ -1231,7 +1265,8 @@ orc_audio_convert_unpack_float_s32 (guint32 * d1, const gfloat * s1, int n)
 /* orc_audio_convert_unpack_float_s32_swap */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_unpack_float_s32_swap (guint32 * d1, const gfloat * s1, int n)
+orc_audio_convert_unpack_float_s32_swap (guint32 * ORC_RESTRICT d1,
+    const gfloat * ORC_RESTRICT s1, int n)
 {
   int i;
   orc_union32 *ORC_RESTRICT ptr0;
@@ -1248,9 +1283,9 @@ orc_audio_convert_unpack_float_s32_swap (guint32 * d1, const gfloat * s1, int n)
   ptr4 = (orc_union32 *) s1;
 
   /* 2: loadpl */
-  var34.i = 0x4f000000;         /* 1325400064 or 6.54835e-315f */
+  var34.i = (int) 0x4f000000;   /* 1325400064 or 6.54835e-315f */
   /* 4: loadpl */
-  var35.i = 0x3f000000;         /* 1056964608 or 5.2221e-315f */
+  var35.i = (int) 0x3f000000;   /* 1056964608 or 5.2221e-315f */
 
   for (i = 0; i < n; i++) {
     /* 0: loadl */
@@ -1311,9 +1346,9 @@ _backup_orc_audio_convert_unpack_float_s32_swap (OrcExecutor * ORC_RESTRICT ex)
   ptr4 = (orc_union32 *) ex->arrays[4];
 
   /* 2: loadpl */
-  var34.i = 0x4f000000;         /* 1325400064 or 6.54835e-315f */
+  var34.i = (int) 0x4f000000;   /* 1325400064 or 6.54835e-315f */
   /* 4: loadpl */
-  var35.i = 0x3f000000;         /* 1056964608 or 5.2221e-315f */
+  var35.i = (int) 0x3f000000;   /* 1056964608 or 5.2221e-315f */
 
   for (i = 0; i < n; i++) {
     /* 0: loadl */
@@ -1356,7 +1391,8 @@ _backup_orc_audio_convert_unpack_float_s32_swap (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_unpack_float_s32_swap;
 void
-orc_audio_convert_unpack_float_s32_swap (guint32 * d1, const gfloat * s1, int n)
+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;
@@ -1377,7 +1413,8 @@ orc_audio_convert_unpack_float_s32_swap (guint32 * d1, const gfloat * s1, int n)
 /* orc_audio_convert_unpack_double_s32 */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_unpack_double_s32 (guint32 * d1, const gdouble * s1, int n)
+orc_audio_convert_unpack_double_s32 (guint32 * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int n)
 {
   int i;
   orc_union32 *ORC_RESTRICT ptr0;
@@ -1496,7 +1533,8 @@ _backup_orc_audio_convert_unpack_double_s32 (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_unpack_double_s32;
 void
-orc_audio_convert_unpack_double_s32 (guint32 * d1, const gdouble * s1, int n)
+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;
@@ -1517,8 +1555,8 @@ orc_audio_convert_unpack_double_s32 (guint32 * d1, const gdouble * s1, int n)
 /* orc_audio_convert_unpack_double_s32_swap */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_unpack_double_s32_swap (guint32 * d1, const gdouble * s1,
-    int n)
+orc_audio_convert_unpack_double_s32_swap (guint32 * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int n)
 {
   int i;
   orc_union32 *ORC_RESTRICT ptr0;
@@ -1643,8 +1681,8 @@ _backup_orc_audio_convert_unpack_double_s32_swap (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_unpack_double_s32_swap;
 void
-orc_audio_convert_unpack_double_s32_swap (guint32 * d1, const gdouble * s1,
-    int n)
+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;
@@ -1665,7 +1703,8 @@ orc_audio_convert_unpack_double_s32_swap (guint32 * d1, const gdouble * s1,
 /* orc_audio_convert_unpack_float_double */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_unpack_float_double (gdouble * d1, const gfloat * s1, int n)
+orc_audio_convert_unpack_float_double (gdouble * ORC_RESTRICT d1,
+    const gfloat * ORC_RESTRICT s1, int n)
 {
   int i;
   orc_union64 *ORC_RESTRICT ptr0;
@@ -1724,7 +1763,8 @@ _backup_orc_audio_convert_unpack_float_double (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_unpack_float_double;
 void
-orc_audio_convert_unpack_float_double (gdouble * d1, const gfloat * s1, int n)
+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;
@@ -1745,8 +1785,8 @@ orc_audio_convert_unpack_float_double (gdouble * d1, const gfloat * s1, int n)
 /* orc_audio_convert_unpack_float_double_swap */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_unpack_float_double_swap (gdouble * d1, const gfloat * s1,
-    int n)
+orc_audio_convert_unpack_float_double_swap (gdouble * ORC_RESTRICT d1,
+    const gfloat * ORC_RESTRICT s1, int n)
 {
   int i;
   orc_union64 *ORC_RESTRICT ptr0;
@@ -1812,8 +1852,8 @@ _backup_orc_audio_convert_unpack_float_double_swap (OrcExecutor *
 
 static OrcProgram *_orc_program_orc_audio_convert_unpack_float_double_swap;
 void
-orc_audio_convert_unpack_float_double_swap (gdouble * d1, const gfloat * s1,
-    int n)
+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;
@@ -1834,7 +1874,8 @@ orc_audio_convert_unpack_float_double_swap (gdouble * d1, const gfloat * s1,
 /* orc_audio_convert_unpack_double_double */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_unpack_double_double (gdouble * d1, const gdouble * s1, int n)
+orc_audio_convert_unpack_double_double (gdouble * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int n)
 {
   int i;
   orc_union64 *ORC_RESTRICT ptr0;
@@ -1885,7 +1926,8 @@ _backup_orc_audio_convert_unpack_double_double (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_unpack_double_double;
 void
-orc_audio_convert_unpack_double_double (gdouble * d1, const gdouble * s1, int n)
+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;
@@ -1906,8 +1948,8 @@ orc_audio_convert_unpack_double_double (gdouble * d1, const gdouble * s1, int n)
 /* orc_audio_convert_unpack_double_double_swap */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_unpack_double_double_swap (gdouble * d1, const gdouble * s1,
-    int n)
+orc_audio_convert_unpack_double_double_swap (gdouble * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int n)
 {
   int i;
   orc_union64 *ORC_RESTRICT ptr0;
@@ -1959,8 +2001,8 @@ _backup_orc_audio_convert_unpack_double_double_swap (OrcExecutor *
 
 static OrcProgram *_orc_program_orc_audio_convert_unpack_double_double_swap;
 void
-orc_audio_convert_unpack_double_double_swap (gdouble * d1, const gdouble * s1,
-    int n)
+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;
@@ -1981,8 +2023,8 @@ orc_audio_convert_unpack_double_double_swap (gdouble * d1, const gdouble * s1,
 /* orc_audio_convert_unpack_u8_double */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_unpack_u8_double (gdouble * d1, const guint8 * s1, int p1,
-    int n)
+orc_audio_convert_unpack_u8_double (gdouble * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int n)
 {
   int i;
   orc_union64 *ORC_RESTRICT ptr0;
@@ -1999,7 +2041,7 @@ orc_audio_convert_unpack_u8_double (gdouble * d1, const guint8 * s1, int p1,
   ptr4 = (orc_int8 *) s1;
 
   /* 4: loadpl */
-  var35.i = 0x80000000;         /* -2147483648 or 1.061e-314f */
+  var35.i = (int) 0x80000000;   /* -2147483648 or 1.061e-314f */
 
   for (i = 0; i < n; i++) {
     /* 0: loadb */
@@ -2040,7 +2082,7 @@ _backup_orc_audio_convert_unpack_u8_double (OrcExecutor * ORC_RESTRICT ex)
   ptr4 = (orc_int8 *) ex->arrays[4];
 
   /* 4: loadpl */
-  var35.i = 0x80000000;         /* -2147483648 or 1.061e-314f */
+  var35.i = (int) 0x80000000;   /* -2147483648 or 1.061e-314f */
 
   for (i = 0; i < n; i++) {
     /* 0: loadb */
@@ -2063,8 +2105,8 @@ _backup_orc_audio_convert_unpack_u8_double (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_unpack_u8_double;
 void
-orc_audio_convert_unpack_u8_double (gdouble * d1, const guint8 * s1, int p1,
-    int n)
+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;
@@ -2086,8 +2128,8 @@ orc_audio_convert_unpack_u8_double (gdouble * d1, const guint8 * s1, int p1,
 /* orc_audio_convert_unpack_s8_double */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_unpack_s8_double (gdouble * d1, const guint8 * s1, int p1,
-    int n)
+orc_audio_convert_unpack_s8_double (gdouble * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int n)
 {
   int i;
   orc_union64 *ORC_RESTRICT ptr0;
@@ -2156,8 +2198,8 @@ _backup_orc_audio_convert_unpack_s8_double (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_unpack_s8_double;
 void
-orc_audio_convert_unpack_s8_double (gdouble * d1, const guint8 * s1, int p1,
-    int n)
+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;
@@ -2179,8 +2221,8 @@ orc_audio_convert_unpack_s8_double (gdouble * d1, const guint8 * s1, int p1,
 /* orc_audio_convert_unpack_u16_double */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_unpack_u16_double (gdouble * d1, const guint8 * s1, int p1,
-    int n)
+orc_audio_convert_unpack_u16_double (gdouble * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int n)
 {
   int i;
   orc_union64 *ORC_RESTRICT ptr0;
@@ -2196,7 +2238,7 @@ orc_audio_convert_unpack_u16_double (gdouble * d1, const guint8 * s1, int p1,
   ptr4 = (orc_union16 *) s1;
 
   /* 3: loadpl */
-  var34.i = 0x80000000;         /* -2147483648 or 1.061e-314f */
+  var34.i = (int) 0x80000000;   /* -2147483648 or 1.061e-314f */
 
   for (i = 0; i < n; i++) {
     /* 0: loadw */
@@ -2234,7 +2276,7 @@ _backup_orc_audio_convert_unpack_u16_double (OrcExecutor * ORC_RESTRICT ex)
   ptr4 = (orc_union16 *) ex->arrays[4];
 
   /* 3: loadpl */
-  var34.i = 0x80000000;         /* -2147483648 or 1.061e-314f */
+  var34.i = (int) 0x80000000;   /* -2147483648 or 1.061e-314f */
 
   for (i = 0; i < n; i++) {
     /* 0: loadw */
@@ -2255,8 +2297,8 @@ _backup_orc_audio_convert_unpack_u16_double (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_unpack_u16_double;
 void
-orc_audio_convert_unpack_u16_double (gdouble * d1, const guint8 * s1, int p1,
-    int n)
+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;
@@ -2278,8 +2320,8 @@ orc_audio_convert_unpack_u16_double (gdouble * d1, const guint8 * s1, int p1,
 /* orc_audio_convert_unpack_s16_double */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_unpack_s16_double (gdouble * d1, const guint8 * s1, int p1,
-    int n)
+orc_audio_convert_unpack_s16_double (gdouble * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int n)
 {
   int i;
   orc_union64 *ORC_RESTRICT ptr0;
@@ -2342,8 +2384,8 @@ _backup_orc_audio_convert_unpack_s16_double (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_unpack_s16_double;
 void
-orc_audio_convert_unpack_s16_double (gdouble * d1, const guint8 * s1, int p1,
-    int n)
+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;
@@ -2365,8 +2407,8 @@ orc_audio_convert_unpack_s16_double (gdouble * d1, const guint8 * s1, int p1,
 /* orc_audio_convert_unpack_u16_double_swap */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_unpack_u16_double_swap (gdouble * d1, const guint8 * s1,
-    int p1, int n)
+orc_audio_convert_unpack_u16_double_swap (gdouble * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int n)
 {
   int i;
   orc_union64 *ORC_RESTRICT ptr0;
@@ -2383,7 +2425,7 @@ orc_audio_convert_unpack_u16_double_swap (gdouble * d1, const guint8 * s1,
   ptr4 = (orc_union16 *) s1;
 
   /* 4: loadpl */
-  var35.i = 0x80000000;         /* -2147483648 or 1.061e-314f */
+  var35.i = (int) 0x80000000;   /* -2147483648 or 1.061e-314f */
 
   for (i = 0; i < n; i++) {
     /* 0: loadw */
@@ -2424,7 +2466,7 @@ _backup_orc_audio_convert_unpack_u16_double_swap (OrcExecutor * ORC_RESTRICT ex)
   ptr4 = (orc_union16 *) ex->arrays[4];
 
   /* 4: loadpl */
-  var35.i = 0x80000000;         /* -2147483648 or 1.061e-314f */
+  var35.i = (int) 0x80000000;   /* -2147483648 or 1.061e-314f */
 
   for (i = 0; i < n; i++) {
     /* 0: loadw */
@@ -2447,8 +2489,8 @@ _backup_orc_audio_convert_unpack_u16_double_swap (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_unpack_u16_double_swap;
 void
-orc_audio_convert_unpack_u16_double_swap (gdouble * d1, const guint8 * s1,
-    int p1, int n)
+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;
@@ -2470,8 +2512,8 @@ orc_audio_convert_unpack_u16_double_swap (gdouble * d1, const guint8 * s1,
 /* orc_audio_convert_unpack_s16_double_swap */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_unpack_s16_double_swap (gdouble * d1, const guint8 * s1,
-    int p1, int n)
+orc_audio_convert_unpack_s16_double_swap (gdouble * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int n)
 {
   int i;
   orc_union64 *ORC_RESTRICT ptr0;
@@ -2540,8 +2582,8 @@ _backup_orc_audio_convert_unpack_s16_double_swap (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_unpack_s16_double_swap;
 void
-orc_audio_convert_unpack_s16_double_swap (gdouble * d1, const guint8 * s1,
-    int p1, int n)
+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;
@@ -2563,8 +2605,8 @@ orc_audio_convert_unpack_s16_double_swap (gdouble * d1, const guint8 * s1,
 /* orc_audio_convert_unpack_u32_double */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_unpack_u32_double (gdouble * d1, const guint8 * s1, int p1,
-    int n)
+orc_audio_convert_unpack_u32_double (gdouble * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int n)
 {
   int i;
   orc_union64 *ORC_RESTRICT ptr0;
@@ -2579,7 +2621,7 @@ orc_audio_convert_unpack_u32_double (gdouble * d1, const guint8 * s1, int p1,
   ptr4 = (orc_union32 *) s1;
 
   /* 2: loadpl */
-  var34.i = 0x80000000;         /* -2147483648 or 1.061e-314f */
+  var34.i = (int) 0x80000000;   /* -2147483648 or 1.061e-314f */
 
   for (i = 0; i < n; i++) {
     /* 0: loadl */
@@ -2614,7 +2656,7 @@ _backup_orc_audio_convert_unpack_u32_double (OrcExecutor * ORC_RESTRICT ex)
   ptr4 = (orc_union32 *) ex->arrays[4];
 
   /* 2: loadpl */
-  var34.i = 0x80000000;         /* -2147483648 or 1.061e-314f */
+  var34.i = (int) 0x80000000;   /* -2147483648 or 1.061e-314f */
 
   for (i = 0; i < n; i++) {
     /* 0: loadl */
@@ -2633,8 +2675,8 @@ _backup_orc_audio_convert_unpack_u32_double (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_unpack_u32_double;
 void
-orc_audio_convert_unpack_u32_double (gdouble * d1, const guint8 * s1, int p1,
-    int n)
+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;
@@ -2656,8 +2698,8 @@ orc_audio_convert_unpack_u32_double (gdouble * d1, const guint8 * s1, int p1,
 /* orc_audio_convert_unpack_s32_double */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_unpack_s32_double (gdouble * d1, const guint8 * s1, int p1,
-    int n)
+orc_audio_convert_unpack_s32_double (gdouble * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int n)
 {
   int i;
   orc_union64 *ORC_RESTRICT ptr0;
@@ -2714,8 +2756,8 @@ _backup_orc_audio_convert_unpack_s32_double (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_unpack_s32_double;
 void
-orc_audio_convert_unpack_s32_double (gdouble * d1, const guint8 * s1, int p1,
-    int n)
+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;
@@ -2737,8 +2779,8 @@ orc_audio_convert_unpack_s32_double (gdouble * d1, const guint8 * s1, int p1,
 /* orc_audio_convert_unpack_u32_double_swap */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_unpack_u32_double_swap (gdouble * d1, const guint8 * s1,
-    int p1, int n)
+orc_audio_convert_unpack_u32_double_swap (gdouble * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int n)
 {
   int i;
   orc_union64 *ORC_RESTRICT ptr0;
@@ -2754,7 +2796,7 @@ orc_audio_convert_unpack_u32_double_swap (gdouble * d1, const guint8 * s1,
   ptr4 = (orc_union32 *) s1;
 
   /* 3: loadpl */
-  var34.i = 0x80000000;         /* -2147483648 or 1.061e-314f */
+  var34.i = (int) 0x80000000;   /* -2147483648 or 1.061e-314f */
 
   for (i = 0; i < n; i++) {
     /* 0: loadl */
@@ -2792,7 +2834,7 @@ _backup_orc_audio_convert_unpack_u32_double_swap (OrcExecutor * ORC_RESTRICT ex)
   ptr4 = (orc_union32 *) ex->arrays[4];
 
   /* 3: loadpl */
-  var34.i = 0x80000000;         /* -2147483648 or 1.061e-314f */
+  var34.i = (int) 0x80000000;   /* -2147483648 or 1.061e-314f */
 
   for (i = 0; i < n; i++) {
     /* 0: loadl */
@@ -2813,8 +2855,8 @@ _backup_orc_audio_convert_unpack_u32_double_swap (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_unpack_u32_double_swap;
 void
-orc_audio_convert_unpack_u32_double_swap (gdouble * d1, const guint8 * s1,
-    int p1, int n)
+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;
@@ -2836,8 +2878,8 @@ orc_audio_convert_unpack_u32_double_swap (gdouble * d1, const guint8 * s1,
 /* orc_audio_convert_unpack_s32_double_swap */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_unpack_s32_double_swap (gdouble * d1, const guint8 * s1,
-    int p1, int n)
+orc_audio_convert_unpack_s32_double_swap (gdouble * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int n)
 {
   int i;
   orc_union64 *ORC_RESTRICT ptr0;
@@ -2900,8 +2942,8 @@ _backup_orc_audio_convert_unpack_s32_double_swap (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_unpack_s32_double_swap;
 void
-orc_audio_convert_unpack_s32_double_swap (gdouble * d1, const guint8 * s1,
-    int p1, int n)
+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;
@@ -2923,7 +2965,8 @@ orc_audio_convert_unpack_s32_double_swap (gdouble * d1, const guint8 * s1,
 /* orc_audio_convert_pack_u8 */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_pack_u8 (guint8 * d1, const gint32 * s1, int p1, int n)
+orc_audio_convert_pack_u8 (guint8 * ORC_RESTRICT d1,
+    const gint32 * ORC_RESTRICT s1, int p1, int n)
 {
   int i;
   orc_int8 *ORC_RESTRICT ptr0;
@@ -2939,7 +2982,7 @@ orc_audio_convert_pack_u8 (guint8 * d1, const gint32 * s1, int p1, int n)
   ptr4 = (orc_union32 *) s1;
 
   /* 1: loadpl */
-  var35.i = 0x80000000;         /* -2147483648 or 1.061e-314f */
+  var35.i = (int) 0x80000000;   /* -2147483648 or 1.061e-314f */
 
   for (i = 0; i < n; i++) {
     /* 0: loadl */
@@ -2977,7 +3020,7 @@ _backup_orc_audio_convert_pack_u8 (OrcExecutor * ORC_RESTRICT ex)
   ptr4 = (orc_union32 *) ex->arrays[4];
 
   /* 1: loadpl */
-  var35.i = 0x80000000;         /* -2147483648 or 1.061e-314f */
+  var35.i = (int) 0x80000000;   /* -2147483648 or 1.061e-314f */
 
   for (i = 0; i < n; i++) {
     /* 0: loadl */
@@ -2998,7 +3041,8 @@ _backup_orc_audio_convert_pack_u8 (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_pack_u8;
 void
-orc_audio_convert_pack_u8 (guint8 * d1, const gint32 * s1, int p1, int n)
+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;
@@ -3020,7 +3064,8 @@ orc_audio_convert_pack_u8 (guint8 * d1, const gint32 * s1, int p1, int n)
 /* orc_audio_convert_pack_s8 */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_pack_s8 (guint8 * d1, const gint32 * s1, int p1, int n)
+orc_audio_convert_pack_s8 (guint8 * ORC_RESTRICT d1,
+    const gint32 * ORC_RESTRICT s1, int p1, int n)
 {
   int i;
   orc_int8 *ORC_RESTRICT ptr0;
@@ -3083,7 +3128,8 @@ _backup_orc_audio_convert_pack_s8 (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_pack_s8;
 void
-orc_audio_convert_pack_s8 (guint8 * d1, const gint32 * s1, int p1, int n)
+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;
@@ -3105,7 +3151,8 @@ orc_audio_convert_pack_s8 (guint8 * d1, const gint32 * s1, int p1, int n)
 /* orc_audio_convert_pack_u16 */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_pack_u16 (guint8 * d1, const gint32 * s1, int p1, int n)
+orc_audio_convert_pack_u16 (guint8 * ORC_RESTRICT d1,
+    const gint32 * ORC_RESTRICT s1, int p1, int n)
 {
   int i;
   orc_union16 *ORC_RESTRICT ptr0;
@@ -3120,7 +3167,7 @@ orc_audio_convert_pack_u16 (guint8 * d1, const gint32 * s1, int p1, int n)
   ptr4 = (orc_union32 *) s1;
 
   /* 1: loadpl */
-  var34.i = 0x80000000;         /* -2147483648 or 1.061e-314f */
+  var34.i = (int) 0x80000000;   /* -2147483648 or 1.061e-314f */
 
   for (i = 0; i < n; i++) {
     /* 0: loadl */
@@ -3155,7 +3202,7 @@ _backup_orc_audio_convert_pack_u16 (OrcExecutor * ORC_RESTRICT ex)
   ptr4 = (orc_union32 *) ex->arrays[4];
 
   /* 1: loadpl */
-  var34.i = 0x80000000;         /* -2147483648 or 1.061e-314f */
+  var34.i = (int) 0x80000000;   /* -2147483648 or 1.061e-314f */
 
   for (i = 0; i < n; i++) {
     /* 0: loadl */
@@ -3174,7 +3221,8 @@ _backup_orc_audio_convert_pack_u16 (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_pack_u16;
 void
-orc_audio_convert_pack_u16 (guint8 * d1, const gint32 * s1, int p1, int n)
+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;
@@ -3196,7 +3244,8 @@ orc_audio_convert_pack_u16 (guint8 * d1, const gint32 * s1, int p1, int n)
 /* orc_audio_convert_pack_s16 */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_pack_s16 (guint8 * d1, const gint32 * s1, int p1, int n)
+orc_audio_convert_pack_s16 (guint8 * ORC_RESTRICT d1,
+    const gint32 * ORC_RESTRICT s1, int p1, int n)
 {
   int i;
   orc_union16 *ORC_RESTRICT ptr0;
@@ -3253,7 +3302,8 @@ _backup_orc_audio_convert_pack_s16 (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_pack_s16;
 void
-orc_audio_convert_pack_s16 (guint8 * d1, const gint32 * s1, int p1, int n)
+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;
@@ -3275,7 +3325,8 @@ orc_audio_convert_pack_s16 (guint8 * d1, const gint32 * s1, int p1, int n)
 /* orc_audio_convert_pack_u16_swap */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_pack_u16_swap (guint8 * d1, const gint32 * s1, int p1, int n)
+orc_audio_convert_pack_u16_swap (guint8 * ORC_RESTRICT d1,
+    const gint32 * ORC_RESTRICT s1, int p1, int n)
 {
   int i;
   orc_union16 *ORC_RESTRICT ptr0;
@@ -3291,7 +3342,7 @@ orc_audio_convert_pack_u16_swap (guint8 * d1, const gint32 * s1, int p1, int n)
   ptr4 = (orc_union32 *) s1;
 
   /* 1: loadpl */
-  var35.i = 0x80000000;         /* -2147483648 or 1.061e-314f */
+  var35.i = (int) 0x80000000;   /* -2147483648 or 1.061e-314f */
 
   for (i = 0; i < n; i++) {
     /* 0: loadl */
@@ -3329,7 +3380,7 @@ _backup_orc_audio_convert_pack_u16_swap (OrcExecutor * ORC_RESTRICT ex)
   ptr4 = (orc_union32 *) ex->arrays[4];
 
   /* 1: loadpl */
-  var35.i = 0x80000000;         /* -2147483648 or 1.061e-314f */
+  var35.i = (int) 0x80000000;   /* -2147483648 or 1.061e-314f */
 
   for (i = 0; i < n; i++) {
     /* 0: loadl */
@@ -3350,7 +3401,8 @@ _backup_orc_audio_convert_pack_u16_swap (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_pack_u16_swap;
 void
-orc_audio_convert_pack_u16_swap (guint8 * d1, const gint32 * s1, int p1, int n)
+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;
@@ -3372,7 +3424,8 @@ orc_audio_convert_pack_u16_swap (guint8 * d1, const gint32 * s1, int p1, int n)
 /* orc_audio_convert_pack_s16_swap */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_pack_s16_swap (guint8 * d1, const gint32 * s1, int p1, int n)
+orc_audio_convert_pack_s16_swap (guint8 * ORC_RESTRICT d1,
+    const gint32 * ORC_RESTRICT s1, int p1, int n)
 {
   int i;
   orc_union16 *ORC_RESTRICT ptr0;
@@ -3435,7 +3488,8 @@ _backup_orc_audio_convert_pack_s16_swap (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_pack_s16_swap;
 void
-orc_audio_convert_pack_s16_swap (guint8 * d1, const gint32 * s1, int p1, int n)
+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;
@@ -3457,7 +3511,8 @@ orc_audio_convert_pack_s16_swap (guint8 * d1, const gint32 * s1, int p1, int n)
 /* orc_audio_convert_pack_u32 */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_pack_u32 (guint8 * d1, const gint32 * s1, int p1, int n)
+orc_audio_convert_pack_u32 (guint8 * ORC_RESTRICT d1,
+    const gint32 * ORC_RESTRICT s1, int p1, int n)
 {
   int i;
   orc_union32 *ORC_RESTRICT ptr0;
@@ -3471,7 +3526,7 @@ orc_audio_convert_pack_u32 (guint8 * d1, const gint32 * s1, int p1, int n)
   ptr4 = (orc_union32 *) s1;
 
   /* 1: loadpl */
-  var34.i = 0x80000000;         /* -2147483648 or 1.061e-314f */
+  var34.i = (int) 0x80000000;   /* -2147483648 or 1.061e-314f */
 
   for (i = 0; i < n; i++) {
     /* 0: loadl */
@@ -3503,7 +3558,7 @@ _backup_orc_audio_convert_pack_u32 (OrcExecutor * ORC_RESTRICT ex)
   ptr4 = (orc_union32 *) ex->arrays[4];
 
   /* 1: loadpl */
-  var34.i = 0x80000000;         /* -2147483648 or 1.061e-314f */
+  var34.i = (int) 0x80000000;   /* -2147483648 or 1.061e-314f */
 
   for (i = 0; i < n; i++) {
     /* 0: loadl */
@@ -3520,7 +3575,8 @@ _backup_orc_audio_convert_pack_u32 (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_pack_u32;
 void
-orc_audio_convert_pack_u32 (guint8 * d1, const gint32 * s1, int p1, int n)
+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;
@@ -3542,7 +3598,8 @@ orc_audio_convert_pack_u32 (guint8 * d1, const gint32 * s1, int p1, int n)
 /* orc_audio_convert_pack_s32 */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_pack_s32 (guint8 * d1, const gint32 * s1, int p1, int n)
+orc_audio_convert_pack_s32 (guint8 * ORC_RESTRICT d1,
+    const gint32 * ORC_RESTRICT s1, int p1, int n)
 {
   int i;
   orc_union32 *ORC_RESTRICT ptr0;
@@ -3593,7 +3650,8 @@ _backup_orc_audio_convert_pack_s32 (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_pack_s32;
 void
-orc_audio_convert_pack_s32 (guint8 * d1, const gint32 * s1, int p1, int n)
+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;
@@ -3615,7 +3673,8 @@ orc_audio_convert_pack_s32 (guint8 * d1, const gint32 * s1, int p1, int n)
 /* orc_audio_convert_pack_u32_swap */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_pack_u32_swap (guint8 * d1, const gint32 * s1, int p1, int n)
+orc_audio_convert_pack_u32_swap (guint8 * ORC_RESTRICT d1,
+    const gint32 * ORC_RESTRICT s1, int p1, int n)
 {
   int i;
   orc_union32 *ORC_RESTRICT ptr0;
@@ -3630,7 +3689,7 @@ orc_audio_convert_pack_u32_swap (guint8 * d1, const gint32 * s1, int p1, int n)
   ptr4 = (orc_union32 *) s1;
 
   /* 1: loadpl */
-  var34.i = 0x80000000;         /* -2147483648 or 1.061e-314f */
+  var34.i = (int) 0x80000000;   /* -2147483648 or 1.061e-314f */
 
   for (i = 0; i < n; i++) {
     /* 0: loadl */
@@ -3665,7 +3724,7 @@ _backup_orc_audio_convert_pack_u32_swap (OrcExecutor * ORC_RESTRICT ex)
   ptr4 = (orc_union32 *) ex->arrays[4];
 
   /* 1: loadpl */
-  var34.i = 0x80000000;         /* -2147483648 or 1.061e-314f */
+  var34.i = (int) 0x80000000;   /* -2147483648 or 1.061e-314f */
 
   for (i = 0; i < n; i++) {
     /* 0: loadl */
@@ -3684,7 +3743,8 @@ _backup_orc_audio_convert_pack_u32_swap (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_pack_u32_swap;
 void
-orc_audio_convert_pack_u32_swap (guint8 * d1, const gint32 * s1, int p1, int n)
+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;
@@ -3706,7 +3766,8 @@ orc_audio_convert_pack_u32_swap (guint8 * d1, const gint32 * s1, int p1, int n)
 /* orc_audio_convert_pack_s32_swap */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_pack_s32_swap (guint8 * d1, const gint32 * s1, int p1, int n)
+orc_audio_convert_pack_s32_swap (guint8 * ORC_RESTRICT d1,
+    const gint32 * ORC_RESTRICT s1, int p1, int n)
 {
   int i;
   orc_union32 *ORC_RESTRICT ptr0;
@@ -3763,7 +3824,8 @@ _backup_orc_audio_convert_pack_s32_swap (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_pack_s32_swap;
 void
-orc_audio_convert_pack_s32_swap (guint8 * d1, const gint32 * s1, int p1, int n)
+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;
@@ -3785,7 +3847,8 @@ orc_audio_convert_pack_s32_swap (guint8 * d1, const gint32 * s1, int p1, int n)
 /* orc_audio_convert_pack_s32_float */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_pack_s32_float (gfloat * d1, const gint32 * s1, int n)
+orc_audio_convert_pack_s32_float (gfloat * ORC_RESTRICT d1,
+    const gint32 * ORC_RESTRICT s1, int n)
 {
   int i;
   orc_union32 *ORC_RESTRICT ptr0;
@@ -3799,7 +3862,7 @@ orc_audio_convert_pack_s32_float (gfloat * d1, const gint32 * s1, int n)
   ptr4 = (orc_union32 *) s1;
 
   /* 2: loadpl */
-  var34.i = 0x4f000000;         /* 1325400064 or 6.54835e-315f */
+  var34.i = (int) 0x4f000000;   /* 1325400064 or 6.54835e-315f */
 
   for (i = 0; i < n; i++) {
     /* 0: loadl */
@@ -3839,7 +3902,7 @@ _backup_orc_audio_convert_pack_s32_float (OrcExecutor * ORC_RESTRICT ex)
   ptr4 = (orc_union32 *) ex->arrays[4];
 
   /* 2: loadpl */
-  var34.i = 0x4f000000;         /* 1325400064 or 6.54835e-315f */
+  var34.i = (int) 0x4f000000;   /* 1325400064 or 6.54835e-315f */
 
   for (i = 0; i < n; i++) {
     /* 0: loadl */
@@ -3864,7 +3927,8 @@ _backup_orc_audio_convert_pack_s32_float (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_pack_s32_float;
 void
-orc_audio_convert_pack_s32_float (gfloat * d1, const gint32 * s1, int n)
+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;
@@ -3885,7 +3949,8 @@ orc_audio_convert_pack_s32_float (gfloat * d1, const gint32 * s1, int n)
 /* orc_audio_convert_pack_s32_float_swap */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_pack_s32_float_swap (gfloat * d1, const gint32 * s1, int n)
+orc_audio_convert_pack_s32_float_swap (gfloat * ORC_RESTRICT d1,
+    const gint32 * ORC_RESTRICT s1, int n)
 {
   int i;
   orc_union32 *ORC_RESTRICT ptr0;
@@ -3900,7 +3965,7 @@ orc_audio_convert_pack_s32_float_swap (gfloat * d1, const gint32 * s1, int n)
   ptr4 = (orc_union32 *) s1;
 
   /* 2: loadpl */
-  var34.i = 0x4f000000;         /* 1325400064 or 6.54835e-315f */
+  var34.i = (int) 0x4f000000;   /* 1325400064 or 6.54835e-315f */
 
   for (i = 0; i < n; i++) {
     /* 0: loadl */
@@ -3943,7 +4008,7 @@ _backup_orc_audio_convert_pack_s32_float_swap (OrcExecutor * ORC_RESTRICT ex)
   ptr4 = (orc_union32 *) ex->arrays[4];
 
   /* 2: loadpl */
-  var34.i = 0x4f000000;         /* 1325400064 or 6.54835e-315f */
+  var34.i = (int) 0x4f000000;   /* 1325400064 or 6.54835e-315f */
 
   for (i = 0; i < n; i++) {
     /* 0: loadl */
@@ -3970,7 +4035,8 @@ _backup_orc_audio_convert_pack_s32_float_swap (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_pack_s32_float_swap;
 void
-orc_audio_convert_pack_s32_float_swap (gfloat * d1, const gint32 * s1, int n)
+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;
@@ -3991,7 +4057,8 @@ orc_audio_convert_pack_s32_float_swap (gfloat * d1, const gint32 * s1, int n)
 /* orc_audio_convert_pack_s32_double */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_pack_s32_double (gdouble * d1, const gint32 * s1, int n)
+orc_audio_convert_pack_s32_double (gdouble * ORC_RESTRICT d1,
+    const gint32 * ORC_RESTRICT s1, int n)
 {
   int i;
   orc_union64 *ORC_RESTRICT ptr0;
@@ -4070,7 +4137,8 @@ _backup_orc_audio_convert_pack_s32_double (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_pack_s32_double;
 void
-orc_audio_convert_pack_s32_double (gdouble * d1, const gint32 * s1, int n)
+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;
@@ -4091,7 +4159,8 @@ orc_audio_convert_pack_s32_double (gdouble * d1, const gint32 * s1, int n)
 /* orc_audio_convert_pack_s32_double_swap */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_pack_s32_double_swap (gdouble * d1, const gint32 * s1, int n)
+orc_audio_convert_pack_s32_double_swap (gdouble * ORC_RESTRICT d1,
+    const gint32 * ORC_RESTRICT s1, int n)
 {
   int i;
   orc_union64 *ORC_RESTRICT ptr0;
@@ -4176,7 +4245,8 @@ _backup_orc_audio_convert_pack_s32_double_swap (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_pack_s32_double_swap;
 void
-orc_audio_convert_pack_s32_double_swap (gdouble * d1, const gint32 * s1, int n)
+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;
@@ -4197,7 +4267,8 @@ orc_audio_convert_pack_s32_double_swap (gdouble * d1, const gint32 * s1, int n)
 /* orc_audio_convert_pack_double_float */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_pack_double_float (gfloat * d1, const gdouble * s1, int n)
+orc_audio_convert_pack_double_float (gfloat * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int n)
 {
   int i;
   orc_union32 *ORC_RESTRICT ptr0;
@@ -4260,7 +4331,8 @@ _backup_orc_audio_convert_pack_double_float (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_pack_double_float;
 void
-orc_audio_convert_pack_double_float (gfloat * d1, const gdouble * s1, int n)
+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;
@@ -4281,8 +4353,8 @@ orc_audio_convert_pack_double_float (gfloat * d1, const gdouble * s1, int n)
 /* orc_audio_convert_pack_double_float_swap */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_pack_double_float_swap (gfloat * d1, const gdouble * s1,
-    int n)
+orc_audio_convert_pack_double_float_swap (gfloat * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int n)
 {
   int i;
   orc_union32 *ORC_RESTRICT ptr0;
@@ -4351,8 +4423,8 @@ _backup_orc_audio_convert_pack_double_float_swap (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_pack_double_float_swap;
 void
-orc_audio_convert_pack_double_float_swap (gfloat * d1, const gdouble * s1,
-    int n)
+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;
@@ -4373,8 +4445,8 @@ orc_audio_convert_pack_double_float_swap (gfloat * d1, const gdouble * s1,
 /* orc_audio_convert_pack_double_u8 */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_pack_double_u8 (guint8 * d1, const gdouble * s1, int p1,
-    int n)
+orc_audio_convert_pack_double_u8 (guint8 * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int p1, int n)
 {
   int i;
   orc_int8 *ORC_RESTRICT ptr0;
@@ -4391,7 +4463,7 @@ orc_audio_convert_pack_double_u8 (guint8 * d1, const gdouble * s1, int p1,
   ptr4 = (orc_union64 *) s1;
 
   /* 2: loadpl */
-  var35.i = 0x80000000;         /* -2147483648 or 1.061e-314f */
+  var35.i = (int) 0x80000000;   /* -2147483648 or 1.061e-314f */
 
   for (i = 0; i < n; i++) {
     /* 0: loadq */
@@ -4438,7 +4510,7 @@ _backup_orc_audio_convert_pack_double_u8 (OrcExecutor * ORC_RESTRICT ex)
   ptr4 = (orc_union64 *) ex->arrays[4];
 
   /* 2: loadpl */
-  var35.i = 0x80000000;         /* -2147483648 or 1.061e-314f */
+  var35.i = (int) 0x80000000;   /* -2147483648 or 1.061e-314f */
 
   for (i = 0; i < n; i++) {
     /* 0: loadq */
@@ -4467,8 +4539,8 @@ _backup_orc_audio_convert_pack_double_u8 (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_pack_double_u8;
 void
-orc_audio_convert_pack_double_u8 (guint8 * d1, const gdouble * s1, int p1,
-    int n)
+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;
@@ -4490,8 +4562,8 @@ orc_audio_convert_pack_double_u8 (guint8 * d1, const gdouble * s1, int p1,
 /* orc_audio_convert_pack_double_s8 */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_pack_double_s8 (guint8 * d1, const gdouble * s1, int p1,
-    int n)
+orc_audio_convert_pack_double_s8 (guint8 * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int p1, int n)
 {
   int i;
   orc_int8 *ORC_RESTRICT ptr0;
@@ -4572,8 +4644,8 @@ _backup_orc_audio_convert_pack_double_s8 (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_pack_double_s8;
 void
-orc_audio_convert_pack_double_s8 (guint8 * d1, const gdouble * s1, int p1,
-    int n)
+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;
@@ -4595,8 +4667,8 @@ orc_audio_convert_pack_double_s8 (guint8 * d1, const gdouble * s1, int p1,
 /* orc_audio_convert_pack_double_u16 */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_pack_double_u16 (guint8 * d1, const gdouble * s1, int p1,
-    int n)
+orc_audio_convert_pack_double_u16 (guint8 * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int p1, int n)
 {
   int i;
   orc_union16 *ORC_RESTRICT ptr0;
@@ -4612,7 +4684,7 @@ orc_audio_convert_pack_double_u16 (guint8 * d1, const gdouble * s1, int p1,
   ptr4 = (orc_union64 *) s1;
 
   /* 2: loadpl */
-  var34.i = 0x80000000;         /* -2147483648 or 1.061e-314f */
+  var34.i = (int) 0x80000000;   /* -2147483648 or 1.061e-314f */
 
   for (i = 0; i < n; i++) {
     /* 0: loadq */
@@ -4656,7 +4728,7 @@ _backup_orc_audio_convert_pack_double_u16 (OrcExecutor * ORC_RESTRICT ex)
   ptr4 = (orc_union64 *) ex->arrays[4];
 
   /* 2: loadpl */
-  var34.i = 0x80000000;         /* -2147483648 or 1.061e-314f */
+  var34.i = (int) 0x80000000;   /* -2147483648 or 1.061e-314f */
 
   for (i = 0; i < n; i++) {
     /* 0: loadq */
@@ -4683,8 +4755,8 @@ _backup_orc_audio_convert_pack_double_u16 (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_pack_double_u16;
 void
-orc_audio_convert_pack_double_u16 (guint8 * d1, const gdouble * s1, int p1,
-    int n)
+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;
@@ -4706,8 +4778,8 @@ orc_audio_convert_pack_double_u16 (guint8 * d1, const gdouble * s1, int p1,
 /* orc_audio_convert_pack_double_s16 */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_pack_double_s16 (guint8 * d1, const gdouble * s1, int p1,
-    int n)
+orc_audio_convert_pack_double_s16 (guint8 * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int p1, int n)
 {
   int i;
   orc_union16 *ORC_RESTRICT ptr0;
@@ -4782,8 +4854,8 @@ _backup_orc_audio_convert_pack_double_s16 (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_pack_double_s16;
 void
-orc_audio_convert_pack_double_s16 (guint8 * d1, const gdouble * s1, int p1,
-    int n)
+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;
@@ -4805,8 +4877,8 @@ orc_audio_convert_pack_double_s16 (guint8 * d1, const gdouble * s1, int p1,
 /* orc_audio_convert_pack_double_u16_swap */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_pack_double_u16_swap (guint8 * d1, const gdouble * s1, int p1,
-    int n)
+orc_audio_convert_pack_double_u16_swap (guint8 * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int p1, int n)
 {
   int i;
   orc_union16 *ORC_RESTRICT ptr0;
@@ -4823,7 +4895,7 @@ orc_audio_convert_pack_double_u16_swap (guint8 * d1, const gdouble * s1, int p1,
   ptr4 = (orc_union64 *) s1;
 
   /* 2: loadpl */
-  var35.i = 0x80000000;         /* -2147483648 or 1.061e-314f */
+  var35.i = (int) 0x80000000;   /* -2147483648 or 1.061e-314f */
 
   for (i = 0; i < n; i++) {
     /* 0: loadq */
@@ -4870,7 +4942,7 @@ _backup_orc_audio_convert_pack_double_u16_swap (OrcExecutor * ORC_RESTRICT ex)
   ptr4 = (orc_union64 *) ex->arrays[4];
 
   /* 2: loadpl */
-  var35.i = 0x80000000;         /* -2147483648 or 1.061e-314f */
+  var35.i = (int) 0x80000000;   /* -2147483648 or 1.061e-314f */
 
   for (i = 0; i < n; i++) {
     /* 0: loadq */
@@ -4899,8 +4971,8 @@ _backup_orc_audio_convert_pack_double_u16_swap (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_pack_double_u16_swap;
 void
-orc_audio_convert_pack_double_u16_swap (guint8 * d1, const gdouble * s1, int p1,
-    int n)
+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;
@@ -4922,8 +4994,8 @@ orc_audio_convert_pack_double_u16_swap (guint8 * d1, const gdouble * s1, int p1,
 /* orc_audio_convert_pack_double_s16_swap */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_pack_double_s16_swap (guint8 * d1, const gdouble * s1, int p1,
-    int n)
+orc_audio_convert_pack_double_s16_swap (guint8 * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int p1, int n)
 {
   int i;
   orc_union16 *ORC_RESTRICT ptr0;
@@ -5004,8 +5076,8 @@ _backup_orc_audio_convert_pack_double_s16_swap (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_pack_double_s16_swap;
 void
-orc_audio_convert_pack_double_s16_swap (guint8 * d1, const gdouble * s1, int p1,
-    int n)
+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;
@@ -5027,8 +5099,8 @@ orc_audio_convert_pack_double_s16_swap (guint8 * d1, const gdouble * s1, int p1,
 /* orc_audio_convert_pack_double_u32 */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_pack_double_u32 (guint8 * d1, const gdouble * s1, int p1,
-    int n)
+orc_audio_convert_pack_double_u32 (guint8 * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int p1, int n)
 {
   int i;
   orc_union32 *ORC_RESTRICT ptr0;
@@ -5043,7 +5115,7 @@ orc_audio_convert_pack_double_u32 (guint8 * d1, const gdouble * s1, int p1,
   ptr4 = (orc_union64 *) s1;
 
   /* 2: loadpl */
-  var34.i = 0x80000000;         /* -2147483648 or 1.061e-314f */
+  var34.i = (int) 0x80000000;   /* -2147483648 or 1.061e-314f */
 
   for (i = 0; i < n; i++) {
     /* 0: loadq */
@@ -5084,7 +5156,7 @@ _backup_orc_audio_convert_pack_double_u32 (OrcExecutor * ORC_RESTRICT ex)
   ptr4 = (orc_union64 *) ex->arrays[4];
 
   /* 2: loadpl */
-  var34.i = 0x80000000;         /* -2147483648 or 1.061e-314f */
+  var34.i = (int) 0x80000000;   /* -2147483648 or 1.061e-314f */
 
   for (i = 0; i < n; i++) {
     /* 0: loadq */
@@ -5109,8 +5181,8 @@ _backup_orc_audio_convert_pack_double_u32 (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_pack_double_u32;
 void
-orc_audio_convert_pack_double_u32 (guint8 * d1, const gdouble * s1, int p1,
-    int n)
+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;
@@ -5132,8 +5204,8 @@ orc_audio_convert_pack_double_u32 (guint8 * d1, const gdouble * s1, int p1,
 /* orc_audio_convert_pack_double_s32 */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_pack_double_s32 (guint8 * d1, const gdouble * s1, int p1,
-    int n)
+orc_audio_convert_pack_double_s32 (guint8 * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int p1, int n)
 {
   int i;
   orc_union32 *ORC_RESTRICT ptr0;
@@ -5202,8 +5274,8 @@ _backup_orc_audio_convert_pack_double_s32 (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_pack_double_s32;
 void
-orc_audio_convert_pack_double_s32 (guint8 * d1, const gdouble * s1, int p1,
-    int n)
+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;
@@ -5225,8 +5297,8 @@ orc_audio_convert_pack_double_s32 (guint8 * d1, const gdouble * s1, int p1,
 /* orc_audio_convert_pack_double_u32_swap */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_pack_double_u32_swap (guint8 * d1, const gdouble * s1, int p1,
-    int n)
+orc_audio_convert_pack_double_u32_swap (guint8 * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int p1, int n)
 {
   int i;
   orc_union32 *ORC_RESTRICT ptr0;
@@ -5242,7 +5314,7 @@ orc_audio_convert_pack_double_u32_swap (guint8 * d1, const gdouble * s1, int p1,
   ptr4 = (orc_union64 *) s1;
 
   /* 2: loadpl */
-  var34.i = 0x80000000;         /* -2147483648 or 1.061e-314f */
+  var34.i = (int) 0x80000000;   /* -2147483648 or 1.061e-314f */
 
   for (i = 0; i < n; i++) {
     /* 0: loadq */
@@ -5286,7 +5358,7 @@ _backup_orc_audio_convert_pack_double_u32_swap (OrcExecutor * ORC_RESTRICT ex)
   ptr4 = (orc_union64 *) ex->arrays[4];
 
   /* 2: loadpl */
-  var34.i = 0x80000000;         /* -2147483648 or 1.061e-314f */
+  var34.i = (int) 0x80000000;   /* -2147483648 or 1.061e-314f */
 
   for (i = 0; i < n; i++) {
     /* 0: loadq */
@@ -5313,8 +5385,8 @@ _backup_orc_audio_convert_pack_double_u32_swap (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_pack_double_u32_swap;
 void
-orc_audio_convert_pack_double_u32_swap (guint8 * d1, const gdouble * s1, int p1,
-    int n)
+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;
@@ -5336,8 +5408,8 @@ orc_audio_convert_pack_double_u32_swap (guint8 * d1, const gdouble * s1, int p1,
 /* orc_audio_convert_pack_double_s32_swap */
 #ifdef DISABLE_ORC
 void
-orc_audio_convert_pack_double_s32_swap (guint8 * d1, const gdouble * s1, int p1,
-    int n)
+orc_audio_convert_pack_double_s32_swap (guint8 * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int p1, int n)
 {
   int i;
   orc_union32 *ORC_RESTRICT ptr0;
@@ -5412,8 +5484,8 @@ _backup_orc_audio_convert_pack_double_s32_swap (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_audio_convert_pack_double_s32_swap;
 void
-orc_audio_convert_pack_double_s32_swap (guint8 * d1, const gdouble * s1, int p1,
-    int n)
+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;
@@ -5439,7 +5511,6 @@ gst_audio_convert_orc_init (void)
   {
     /* orc_audio_convert_unpack_u8 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_unpack_u8");
@@ -5460,14 +5531,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "xorl", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_C1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_unpack_u8 = p;
   }
   {
     /* orc_audio_convert_unpack_s8 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_unpack_s8");
@@ -5485,14 +5555,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "shll", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_P1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_unpack_s8 = p;
   }
   {
     /* orc_audio_convert_unpack_u16 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_unpack_u16");
@@ -5510,14 +5579,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "xorl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_C1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_unpack_u16 = p;
   }
   {
     /* orc_audio_convert_unpack_s16 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_unpack_s16");
@@ -5532,14 +5600,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "shll", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_P1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_unpack_s16 = p;
   }
   {
     /* orc_audio_convert_unpack_u16_swap */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_unpack_u16_swap");
@@ -5561,14 +5628,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "xorl", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_C1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_unpack_u16_swap = p;
   }
   {
     /* orc_audio_convert_unpack_s16_swap */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_unpack_s16_swap");
@@ -5587,14 +5653,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "shll", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_P1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_unpack_s16_swap = p;
   }
   {
     /* orc_audio_convert_unpack_u32 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_unpack_u32");
@@ -5610,14 +5675,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "xorl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_C1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_unpack_u32 = p;
   }
   {
     /* orc_audio_convert_unpack_s32 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_unpack_s32");
@@ -5629,14 +5693,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "shll", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_P1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_unpack_s32 = p;
   }
   {
     /* orc_audio_convert_unpack_u32_swap */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_unpack_u32_swap");
@@ -5655,14 +5718,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "xorl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_C1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_unpack_u32_swap = p;
   }
   {
     /* orc_audio_convert_unpack_s32_swap */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_unpack_s32_swap");
@@ -5678,14 +5740,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "shll", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_P1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_unpack_s32_swap = p;
   }
   {
     /* orc_audio_convert_unpack_float_s32 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_unpack_float_s32");
@@ -5706,14 +5767,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "convfl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_unpack_float_s32 = p;
   }
   {
     /* orc_audio_convert_unpack_float_s32_swap */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_unpack_float_s32_swap");
@@ -5734,14 +5794,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "convfl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_unpack_float_s32_swap = p;
   }
   {
     /* orc_audio_convert_unpack_double_s32 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_unpack_double_s32");
@@ -5762,14 +5821,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "convdl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_unpack_double_s32 = p;
   }
   {
     /* orc_audio_convert_unpack_double_s32_swap */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_unpack_double_s32_swap");
@@ -5790,14 +5848,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "convdl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_unpack_double_s32_swap = p;
   }
   {
     /* orc_audio_convert_unpack_float_double */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_unpack_float_double");
@@ -5809,14 +5866,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "convfd", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_unpack_float_double = p;
   }
   {
     /* orc_audio_convert_unpack_float_double_swap */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_unpack_float_double_swap");
@@ -5831,14 +5887,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "convfd", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_unpack_float_double_swap = p;
   }
   {
     /* orc_audio_convert_unpack_double_double */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_unpack_double_double");
@@ -5850,14 +5905,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "copyq", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_unpack_double_double = p;
   }
   {
     /* orc_audio_convert_unpack_double_double_swap */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_unpack_double_double_swap");
@@ -5869,14 +5923,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "swapq", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_unpack_double_double_swap = p;
   }
   {
     /* orc_audio_convert_unpack_u8_double */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_unpack_u8_double");
@@ -5900,14 +5953,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "convld", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_unpack_u8_double = p;
   }
   {
     /* orc_audio_convert_unpack_s8_double */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_unpack_s8_double");
@@ -5928,14 +5980,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "convld", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_unpack_s8_double = p;
   }
   {
     /* orc_audio_convert_unpack_u16_double */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_unpack_u16_double");
@@ -5956,14 +6007,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "convld", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_unpack_u16_double = p;
   }
   {
     /* orc_audio_convert_unpack_s16_double */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_unpack_s16_double");
@@ -5981,14 +6031,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "convld", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_unpack_s16_double = p;
   }
   {
     /* orc_audio_convert_unpack_u16_double_swap */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_unpack_u16_double_swap");
@@ -6012,14 +6061,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "convld", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_unpack_u16_double_swap = p;
   }
   {
     /* orc_audio_convert_unpack_s16_double_swap */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_unpack_s16_double_swap");
@@ -6040,14 +6088,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "convld", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_unpack_s16_double_swap = p;
   }
   {
     /* orc_audio_convert_unpack_u32_double */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_unpack_u32_double");
@@ -6066,14 +6113,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "convld", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_unpack_u32_double = p;
   }
   {
     /* orc_audio_convert_unpack_s32_double */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_unpack_s32_double");
@@ -6089,14 +6135,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "convld", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_unpack_s32_double = p;
   }
   {
     /* orc_audio_convert_unpack_u32_double_swap */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_unpack_u32_double_swap");
@@ -6117,14 +6162,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "convld", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_unpack_u32_double_swap = p;
   }
   {
     /* orc_audio_convert_unpack_s32_double_swap */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_unpack_s32_double_swap");
@@ -6142,14 +6186,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "convld", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_unpack_s32_double_swap = p;
   }
   {
     /* orc_audio_convert_pack_u8 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_pack_u8");
@@ -6170,14 +6213,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "convwb", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_pack_u8 = p;
   }
   {
     /* orc_audio_convert_pack_s8 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_pack_s8");
@@ -6195,14 +6237,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "convwb", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_pack_s8 = p;
   }
   {
     /* orc_audio_convert_pack_u16 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_pack_u16");
@@ -6220,14 +6261,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "convlw", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_pack_u16 = p;
   }
   {
     /* orc_audio_convert_pack_s16 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_pack_s16");
@@ -6242,14 +6282,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "convlw", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_pack_s16 = p;
   }
   {
     /* orc_audio_convert_pack_u16_swap */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_pack_u16_swap");
@@ -6271,14 +6310,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "swapw", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_pack_u16_swap = p;
   }
   {
     /* orc_audio_convert_pack_s16_swap */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_pack_s16_swap");
@@ -6297,14 +6335,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "swapw", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_pack_s16_swap = p;
   }
   {
     /* orc_audio_convert_pack_u32 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_pack_u32");
@@ -6320,14 +6357,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "shrul", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_P1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_pack_u32 = p;
   }
   {
     /* orc_audio_convert_pack_s32 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_pack_s32");
@@ -6339,14 +6375,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "shrsl", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_P1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_pack_s32 = p;
   }
   {
     /* orc_audio_convert_pack_u32_swap */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_pack_u32_swap");
@@ -6365,14 +6400,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "swapl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_pack_u32_swap = p;
   }
   {
     /* orc_audio_convert_pack_s32_swap */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_pack_s32_swap");
@@ -6388,14 +6422,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "swapl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_pack_s32_swap = p;
   }
   {
     /* orc_audio_convert_pack_s32_float */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_pack_s32_float");
@@ -6413,14 +6446,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "storel", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_pack_s32_float = p;
   }
   {
     /* orc_audio_convert_pack_s32_float_swap */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_pack_s32_float_swap");
@@ -6438,14 +6470,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "swapl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_pack_s32_float_swap = p;
   }
   {
     /* orc_audio_convert_pack_s32_double */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_pack_s32_double");
@@ -6463,14 +6494,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "storeq", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_pack_s32_double = p;
   }
   {
     /* orc_audio_convert_pack_s32_double_swap */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_pack_s32_double_swap");
@@ -6488,14 +6518,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "swapq", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_pack_s32_double_swap = p;
   }
   {
     /* orc_audio_convert_pack_double_float */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_pack_double_float");
@@ -6507,14 +6536,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "convdf", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_pack_double_float = p;
   }
   {
     /* orc_audio_convert_pack_double_float_swap */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_pack_double_float_swap");
@@ -6529,14 +6557,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "swapl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_pack_double_float_swap = p;
   }
   {
     /* orc_audio_convert_pack_double_u8 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_pack_double_u8");
@@ -6560,14 +6587,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "convwb", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_pack_double_u8 = p;
   }
   {
     /* orc_audio_convert_pack_double_s8 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_pack_double_s8");
@@ -6588,14 +6614,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "convwb", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_pack_double_s8 = p;
   }
   {
     /* orc_audio_convert_pack_double_u16 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_pack_double_u16");
@@ -6616,14 +6641,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "convlw", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_pack_double_u16 = p;
   }
   {
     /* orc_audio_convert_pack_double_s16 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_pack_double_s16");
@@ -6641,14 +6665,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "convlw", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_pack_double_s16 = p;
   }
   {
     /* orc_audio_convert_pack_double_u16_swap */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_pack_double_u16_swap");
@@ -6672,14 +6695,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "swapw", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_pack_double_u16_swap = p;
   }
   {
     /* orc_audio_convert_pack_double_s16_swap */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_pack_double_s16_swap");
@@ -6700,14 +6722,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "swapw", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_pack_double_s16_swap = p;
   }
   {
     /* orc_audio_convert_pack_double_u32 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_pack_double_u32");
@@ -6726,14 +6747,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "shrul", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_P1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_pack_double_u32 = p;
   }
   {
     /* orc_audio_convert_pack_double_s32 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_pack_double_s32");
@@ -6749,14 +6769,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "shrsl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_P1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_pack_double_s32 = p;
   }
   {
     /* orc_audio_convert_pack_double_u32_swap */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_pack_double_u32_swap");
@@ -6777,14 +6796,13 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "swapl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_pack_double_u32_swap = p;
   }
   {
     /* orc_audio_convert_pack_double_s32_swap */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_audio_convert_pack_double_s32_swap");
@@ -6802,7 +6820,7 @@ gst_audio_convert_orc_init (void)
     orc_program_append_2 (p, "swapl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_audio_convert_pack_double_s32_swap = p;
   }
index 5191a67..3d74e1a 100644 (file)
@@ -37,6 +37,7 @@ typedef unsigned __int16 orc_uint16;
 typedef unsigned __int32 orc_uint32;
 typedef unsigned __int64 orc_uint64;
 #define ORC_UINT64_C(x) (x##Ui64)
+#define inline __inline
 #else
 #include <limits.h>
 typedef signed char orc_int8;
@@ -59,60 +60,69 @@ typedef union { orc_int16 i; orc_int8 x2[2]; } orc_union16;
 typedef union { orc_int32 i; float f; orc_int16 x2[2]; orc_int8 x4[4]; } orc_union32;
 typedef union { orc_int64 i; double f; orc_int32 x2[2]; float x2f[2]; orc_int16 x4[4]; } orc_union64;
 #endif
-void orc_audio_convert_unpack_u8 (gint32 * d1, const guint8 * s1, int p1, int n);
-void orc_audio_convert_unpack_s8 (gint32 * d1, const guint8 * s1, int p1, int n);
-void orc_audio_convert_unpack_u16 (gint32 * d1, const guint8 * s1, int p1, int n);
-void orc_audio_convert_unpack_s16 (gint32 * d1, const guint8 * s1, int p1, int n);
-void orc_audio_convert_unpack_u16_swap (gint32 * d1, const guint8 * s1, int p1, int n);
-void orc_audio_convert_unpack_s16_swap (gint32 * d1, const guint8 * s1, int p1, int n);
-void orc_audio_convert_unpack_u32 (gint32 * d1, const guint8 * s1, int p1, int n);
-void orc_audio_convert_unpack_s32 (gint32 * d1, const guint8 * s1, int p1, int n);
-void orc_audio_convert_unpack_u32_swap (gint32 * d1, const guint8 * s1, int p1, int n);
-void orc_audio_convert_unpack_s32_swap (gint32 * d1, const guint8 * s1, int p1, int n);
-void orc_audio_convert_unpack_float_s32 (guint32 * d1, const gfloat * s1, int n);
-void orc_audio_convert_unpack_float_s32_swap (guint32 * d1, const gfloat * s1, int n);
-void orc_audio_convert_unpack_double_s32 (guint32 * d1, const gdouble * s1, int n);
-void orc_audio_convert_unpack_double_s32_swap (guint32 * d1, const gdouble * s1, int n);
-void orc_audio_convert_unpack_float_double (gdouble * d1, const gfloat * s1, int n);
-void orc_audio_convert_unpack_float_double_swap (gdouble * d1, const gfloat * s1, int n);
-void orc_audio_convert_unpack_double_double (gdouble * d1, const gdouble * s1, int n);
-void orc_audio_convert_unpack_double_double_swap (gdouble * d1, const gdouble * s1, int n);
-void orc_audio_convert_unpack_u8_double (gdouble * d1, const guint8 * s1, int p1, int n);
-void orc_audio_convert_unpack_s8_double (gdouble * d1, const guint8 * s1, int p1, int n);
-void orc_audio_convert_unpack_u16_double (gdouble * d1, const guint8 * s1, int p1, int n);
-void orc_audio_convert_unpack_s16_double (gdouble * d1, const guint8 * s1, int p1, int n);
-void orc_audio_convert_unpack_u16_double_swap (gdouble * d1, const guint8 * s1, int p1, int n);
-void orc_audio_convert_unpack_s16_double_swap (gdouble * d1, const guint8 * s1, int p1, int n);
-void orc_audio_convert_unpack_u32_double (gdouble * d1, const guint8 * s1, int p1, int n);
-void orc_audio_convert_unpack_s32_double (gdouble * d1, const guint8 * s1, int p1, int n);
-void orc_audio_convert_unpack_u32_double_swap (gdouble * d1, const guint8 * s1, int p1, int n);
-void orc_audio_convert_unpack_s32_double_swap (gdouble * d1, const guint8 * s1, int p1, int n);
-void orc_audio_convert_pack_u8 (guint8 * d1, const gint32 * s1, int p1, int n);
-void orc_audio_convert_pack_s8 (guint8 * d1, const gint32 * s1, int p1, int n);
-void orc_audio_convert_pack_u16 (guint8 * d1, const gint32 * s1, int p1, int n);
-void orc_audio_convert_pack_s16 (guint8 * d1, const gint32 * s1, int p1, int n);
-void orc_audio_convert_pack_u16_swap (guint8 * d1, const gint32 * s1, int p1, int n);
-void orc_audio_convert_pack_s16_swap (guint8 * d1, const gint32 * s1, int p1, int n);
-void orc_audio_convert_pack_u32 (guint8 * d1, const gint32 * s1, int p1, int n);
-void orc_audio_convert_pack_s32 (guint8 * d1, const gint32 * s1, int p1, int n);
-void orc_audio_convert_pack_u32_swap (guint8 * d1, const gint32 * s1, int p1, int n);
-void orc_audio_convert_pack_s32_swap (guint8 * d1, const gint32 * s1, int p1, int n);
-void orc_audio_convert_pack_s32_float (gfloat * d1, const gint32 * s1, int n);
-void orc_audio_convert_pack_s32_float_swap (gfloat * d1, const gint32 * s1, int n);
-void orc_audio_convert_pack_s32_double (gdouble * d1, const gint32 * s1, int n);
-void orc_audio_convert_pack_s32_double_swap (gdouble * d1, const gint32 * s1, int n);
-void orc_audio_convert_pack_double_float (gfloat * d1, const gdouble * s1, int n);
-void orc_audio_convert_pack_double_float_swap (gfloat * d1, const gdouble * s1, int n);
-void orc_audio_convert_pack_double_u8 (guint8 * d1, const gdouble * s1, int p1, int n);
-void orc_audio_convert_pack_double_s8 (guint8 * d1, const gdouble * s1, int p1, int n);
-void orc_audio_convert_pack_double_u16 (guint8 * d1, const gdouble * s1, int p1, int n);
-void orc_audio_convert_pack_double_s16 (guint8 * d1, const gdouble * s1, int p1, int n);
-void orc_audio_convert_pack_double_u16_swap (guint8 * d1, const gdouble * s1, int p1, int n);
-void orc_audio_convert_pack_double_s16_swap (guint8 * d1, const gdouble * s1, int p1, int n);
-void orc_audio_convert_pack_double_u32 (guint8 * d1, const gdouble * s1, int p1, int n);
-void orc_audio_convert_pack_double_s32 (guint8 * d1, const gdouble * s1, int p1, int n);
-void orc_audio_convert_pack_double_u32_swap (guint8 * d1, const gdouble * s1, int p1, int n);
-void orc_audio_convert_pack_double_s32_swap (guint8 * d1, const gdouble * s1, int p1, int n);
+#ifndef ORC_RESTRICT
+#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
+#define ORC_RESTRICT restrict
+#elif defined(__GNUC__) && __GNUC__ >= 4
+#define ORC_RESTRICT __restrict__
+#else
+#define ORC_RESTRICT
+#endif
+#endif
+void orc_audio_convert_unpack_u8 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_unpack_s8 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_unpack_u16 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_unpack_s16 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_unpack_u16_swap (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_unpack_s16_swap (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_unpack_u32 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_unpack_s32 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_unpack_u32_swap (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_unpack_s32_swap (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_unpack_float_s32 (guint32 * ORC_RESTRICT d1, const gfloat * ORC_RESTRICT s1, int n);
+void orc_audio_convert_unpack_float_s32_swap (guint32 * ORC_RESTRICT d1, const gfloat * ORC_RESTRICT s1, int n);
+void orc_audio_convert_unpack_double_s32 (guint32 * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int n);
+void orc_audio_convert_unpack_double_s32_swap (guint32 * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int n);
+void orc_audio_convert_unpack_float_double (gdouble * ORC_RESTRICT d1, const gfloat * ORC_RESTRICT s1, int n);
+void orc_audio_convert_unpack_float_double_swap (gdouble * ORC_RESTRICT d1, const gfloat * ORC_RESTRICT s1, int n);
+void orc_audio_convert_unpack_double_double (gdouble * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int n);
+void orc_audio_convert_unpack_double_double_swap (gdouble * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int n);
+void orc_audio_convert_unpack_u8_double (gdouble * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_unpack_s8_double (gdouble * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_unpack_u16_double (gdouble * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_unpack_s16_double (gdouble * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_unpack_u16_double_swap (gdouble * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_unpack_s16_double_swap (gdouble * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_unpack_u32_double (gdouble * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_unpack_s32_double (gdouble * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_unpack_u32_double_swap (gdouble * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_unpack_s32_double_swap (gdouble * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_pack_u8 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_pack_s8 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_pack_u16 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_pack_s16 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_pack_u16_swap (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_pack_s16_swap (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_pack_u32 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_pack_s32 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_pack_u32_swap (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_pack_s32_swap (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_pack_s32_float (gfloat * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n);
+void orc_audio_convert_pack_s32_float_swap (gfloat * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n);
+void orc_audio_convert_pack_s32_double (gdouble * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n);
+void orc_audio_convert_pack_s32_double_swap (gdouble * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n);
+void orc_audio_convert_pack_double_float (gfloat * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int n);
+void orc_audio_convert_pack_double_float_swap (gfloat * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int n);
+void orc_audio_convert_pack_double_u8 (guint8 * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_pack_double_s8 (guint8 * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_pack_double_u16 (guint8 * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_pack_double_s16 (guint8 * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_pack_double_u16_swap (guint8 * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_pack_double_s16_swap (guint8 * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_pack_double_u32 (guint8 * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_pack_double_s32 (guint8 * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_pack_double_u32_swap (guint8 * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int p1, int n);
+void orc_audio_convert_pack_double_s32_swap (guint8 * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int p1, int n);
 
 #ifdef __cplusplus
 }
index d62e29f..7b7eb21 100644 (file)
@@ -4,9 +4,6 @@
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
-#ifndef DISABLE_ORC
-#include <orc/orc.h>
-#endif
 #include <glib.h>
 
 #ifndef _ORC_INTEGER_TYPEDEFS_
@@ -72,31 +69,51 @@ typedef union
   orc_int16 x4[4];
 } orc_union64;
 #endif
+#ifndef ORC_RESTRICT
+#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
+#define ORC_RESTRICT restrict
+#elif defined(__GNUC__) && __GNUC__ >= 4
+#define ORC_RESTRICT __restrict__
+#else
+#define ORC_RESTRICT
+#endif
+#endif
 
-void orc_merge_linear_u8 (orc_uint8 * d1, const orc_uint8 * s1,
-    const orc_uint8 * s2, int p1, int n);
-void orc_merge_linear_u16 (orc_uint16 * d1, const orc_uint16 * s1,
-    const orc_uint16 * s2, int p1, int p2, int n);
-void orc_splat_u16 (orc_uint16 * d1, int p1, int n);
-void orc_splat_u32 (orc_uint32 * d1, int p1, int n);
-void orc_splat_u64 (orc_uint64 * d1, orc_int64 p1, int n);
-void orc_downsample_u8 (guint8 * d1, const guint8 * s1, int n);
-void orc_downsample_u16 (guint16 * d1, const guint16 * s1, int n);
-void gst_videoscale_orc_downsample_u32 (guint8 * d1, const guint8 * s1, int n);
-void gst_videoscale_orc_downsample_yuyv (guint8 * d1, const guint8 * s1, int n);
-void gst_videoscale_orc_resample_nearest_u8 (guint8 * d1, const guint8 * s1,
-    int p1, int p2, int n);
-void gst_videoscale_orc_resample_bilinear_u8 (guint8 * d1, const guint8 * s1,
-    int p1, int p2, int n);
-void gst_videoscale_orc_resample_nearest_u32 (guint8 * d1, const guint8 * s1,
-    int p1, int p2, int n);
-void gst_videoscale_orc_resample_bilinear_u32 (guint8 * d1, const guint8 * s1,
+#ifndef DISABLE_ORC
+#include <orc/orc.h>
+#endif
+void orc_merge_linear_u8 (orc_uint8 * ORC_RESTRICT d1,
+    const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2,
+    int p1, int n);
+void orc_merge_linear_u16 (orc_uint16 * ORC_RESTRICT d1,
+    const orc_uint16 * ORC_RESTRICT s1, const orc_uint16 * ORC_RESTRICT s2,
     int p1, int p2, int n);
-void gst_videoscale_orc_resample_merge_bilinear_u32 (guint8 * d1, guint8 * d2,
-    const guint8 * s1, const guint8 * s2, int p1, int p2, int p3, int n);
-void gst_videoscale_orc_merge_bicubic_u8 (guint8 * d1, const guint8 * s1,
-    const guint8 * s2, const guint8 * s3, const guint8 * s4, int p1, int p2,
-    int p3, int p4, int n);
+void orc_splat_u16 (orc_uint16 * ORC_RESTRICT d1, int p1, int n);
+void orc_splat_u32 (orc_uint32 * ORC_RESTRICT d1, int p1, int n);
+void orc_splat_u64 (orc_uint64 * ORC_RESTRICT d1, orc_int64 p1, int n);
+void orc_downsample_u8 (guint8 * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int n);
+void orc_downsample_u16 (guint16 * ORC_RESTRICT d1,
+    const guint16 * ORC_RESTRICT s1, int n);
+void gst_videoscale_orc_downsample_u32 (guint8 * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int n);
+void gst_videoscale_orc_downsample_yuyv (guint8 * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int n);
+void gst_videoscale_orc_resample_nearest_u8 (guint8 * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int p2, int n);
+void gst_videoscale_orc_resample_bilinear_u8 (guint8 * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int p2, int n);
+void gst_videoscale_orc_resample_nearest_u32 (guint8 * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int p2, int n);
+void gst_videoscale_orc_resample_bilinear_u32 (guint8 * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int p2, int n);
+void gst_videoscale_orc_resample_merge_bilinear_u32 (guint8 * ORC_RESTRICT d1,
+    guint8 * ORC_RESTRICT d2, const guint8 * ORC_RESTRICT s1,
+    const guint8 * ORC_RESTRICT s2, int p1, int p2, int p3, int n);
+void gst_videoscale_orc_merge_bicubic_u8 (guint8 * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, const guint8 * ORC_RESTRICT s2,
+    const guint8 * ORC_RESTRICT s3, const guint8 * ORC_RESTRICT s4, int p1,
+    int p2, int p3, int p4, int n);
 
 void gst_videoscale_orc_init (void);
 
@@ -132,6 +149,7 @@ void gst_videoscale_orc_init (void);
 #define ORC_ISNAN(x) ((((x)&0x7f800000) == 0x7f800000) && (((x)&0x007fffff) != 0))
 #define ORC_DENORMAL_DOUBLE(x) ((x) & ((((x)&ORC_UINT64_C(0x7ff0000000000000)) == 0) ? ORC_UINT64_C(0xfff0000000000000) : ORC_UINT64_C(0xffffffffffffffff)))
 #define ORC_ISNAN_DOUBLE(x) ((((x)&ORC_UINT64_C(0x7ff0000000000000)) == ORC_UINT64_C(0x7ff0000000000000)) && (((x)&ORC_UINT64_C(0x000fffffffffffff)) != 0))
+#ifndef ORC_RESTRICT
 #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
 #define ORC_RESTRICT restrict
 #elif defined(__GNUC__) && __GNUC__ >= 4
@@ -139,6 +157,7 @@ void gst_videoscale_orc_init (void);
 #else
 #define ORC_RESTRICT
 #endif
+#endif
 /* end Orc C target preamble */
 
 
@@ -146,7 +165,8 @@ void gst_videoscale_orc_init (void);
 /* orc_merge_linear_u8 */
 #ifdef DISABLE_ORC
 void
-orc_merge_linear_u8 (orc_uint8 * d1, const orc_uint8 * s1, const orc_uint8 * s2,
+orc_merge_linear_u8 (orc_uint8 * ORC_RESTRICT d1,
+    const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2,
     int p1, int n)
 {
   int i;
@@ -262,7 +282,8 @@ _backup_orc_merge_linear_u8 (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_merge_linear_u8;
 void
-orc_merge_linear_u8 (orc_uint8 * d1, const orc_uint8 * s1, const orc_uint8 * s2,
+orc_merge_linear_u8 (orc_uint8 * ORC_RESTRICT d1,
+    const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2,
     int p1, int n)
 {
   OrcExecutor _ex, *ex = &_ex;
@@ -286,8 +307,9 @@ orc_merge_linear_u8 (orc_uint8 * d1, const orc_uint8 * s1, const orc_uint8 * s2,
 /* orc_merge_linear_u16 */
 #ifdef DISABLE_ORC
 void
-orc_merge_linear_u16 (orc_uint16 * d1, const orc_uint16 * s1,
-    const orc_uint16 * s2, int p1, int p2, int n)
+orc_merge_linear_u16 (orc_uint16 * ORC_RESTRICT d1,
+    const orc_uint16 * ORC_RESTRICT s1, const orc_uint16 * ORC_RESTRICT s2,
+    int p1, int p2, int n)
 {
   int i;
   orc_union16 *ORC_RESTRICT ptr0;
@@ -384,8 +406,9 @@ _backup_orc_merge_linear_u16 (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_merge_linear_u16;
 void
-orc_merge_linear_u16 (orc_uint16 * d1, const orc_uint16 * s1,
-    const orc_uint16 * s2, int p1, int p2, int n)
+orc_merge_linear_u16 (orc_uint16 * ORC_RESTRICT d1,
+    const orc_uint16 * ORC_RESTRICT s1, const orc_uint16 * ORC_RESTRICT s2,
+    int p1, int p2, int n)
 {
   OrcExecutor _ex, *ex = &_ex;
   OrcProgram *p = _orc_program_orc_merge_linear_u16;
@@ -409,7 +432,7 @@ orc_merge_linear_u16 (orc_uint16 * d1, const orc_uint16 * s1,
 /* orc_splat_u16 */
 #ifdef DISABLE_ORC
 void
-orc_splat_u16 (orc_uint16 * d1, int p1, int n)
+orc_splat_u16 (orc_uint16 * ORC_RESTRICT d1, int p1, int n)
 {
   int i;
   orc_union16 *ORC_RESTRICT ptr0;
@@ -456,7 +479,7 @@ _backup_orc_splat_u16 (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_splat_u16;
 void
-orc_splat_u16 (orc_uint16 * d1, int p1, int n)
+orc_splat_u16 (orc_uint16 * ORC_RESTRICT d1, int p1, int n)
 {
   OrcExecutor _ex, *ex = &_ex;
   OrcProgram *p = _orc_program_orc_splat_u16;
@@ -477,7 +500,7 @@ orc_splat_u16 (orc_uint16 * d1, int p1, int n)
 /* orc_splat_u32 */
 #ifdef DISABLE_ORC
 void
-orc_splat_u32 (orc_uint32 * d1, int p1, int n)
+orc_splat_u32 (orc_uint32 * ORC_RESTRICT d1, int p1, int n)
 {
   int i;
   orc_union32 *ORC_RESTRICT ptr0;
@@ -524,7 +547,7 @@ _backup_orc_splat_u32 (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_splat_u32;
 void
-orc_splat_u32 (orc_uint32 * d1, int p1, int n)
+orc_splat_u32 (orc_uint32 * ORC_RESTRICT d1, int p1, int n)
 {
   OrcExecutor _ex, *ex = &_ex;
   OrcProgram *p = _orc_program_orc_splat_u32;
@@ -545,7 +568,7 @@ orc_splat_u32 (orc_uint32 * d1, int p1, int n)
 /* orc_splat_u64 */
 #ifdef DISABLE_ORC
 void
-orc_splat_u64 (orc_uint64 * d1, orc_int64 p1, int n)
+orc_splat_u64 (orc_uint64 * ORC_RESTRICT d1, orc_int64 p1, int n)
 {
   int i;
   orc_union64 *ORC_RESTRICT ptr0;
@@ -594,7 +617,7 @@ _backup_orc_splat_u64 (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_splat_u64;
 void
-orc_splat_u64 (orc_uint64 * d1, orc_int64 p1, int n)
+orc_splat_u64 (orc_uint64 * ORC_RESTRICT d1, orc_int64 p1, int n)
 {
   OrcExecutor _ex, *ex = &_ex;
   OrcProgram *p = _orc_program_orc_splat_u64;
@@ -620,7 +643,8 @@ orc_splat_u64 (orc_uint64 * d1, orc_int64 p1, int n)
 /* orc_downsample_u8 */
 #ifdef DISABLE_ORC
 void
-orc_downsample_u8 (guint8 * d1, const guint8 * s1, int n)
+orc_downsample_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1,
+    int n)
 {
   int i;
   orc_int8 *ORC_RESTRICT ptr0;
@@ -681,7 +705,8 @@ _backup_orc_downsample_u8 (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_downsample_u8;
 void
-orc_downsample_u8 (guint8 * d1, const guint8 * s1, int n)
+orc_downsample_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1,
+    int n)
 {
   OrcExecutor _ex, *ex = &_ex;
   OrcProgram *p = _orc_program_orc_downsample_u8;
@@ -702,7 +727,8 @@ orc_downsample_u8 (guint8 * d1, const guint8 * s1, int n)
 /* orc_downsample_u16 */
 #ifdef DISABLE_ORC
 void
-orc_downsample_u16 (guint16 * d1, const guint16 * s1, int n)
+orc_downsample_u16 (guint16 * ORC_RESTRICT d1, const guint16 * ORC_RESTRICT s1,
+    int n)
 {
   int i;
   orc_union16 *ORC_RESTRICT ptr0;
@@ -763,7 +789,8 @@ _backup_orc_downsample_u16 (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_downsample_u16;
 void
-orc_downsample_u16 (guint16 * d1, const guint16 * s1, int n)
+orc_downsample_u16 (guint16 * ORC_RESTRICT d1, const guint16 * ORC_RESTRICT s1,
+    int n)
 {
   OrcExecutor _ex, *ex = &_ex;
   OrcProgram *p = _orc_program_orc_downsample_u16;
@@ -784,7 +811,8 @@ orc_downsample_u16 (guint16 * d1, const guint16 * s1, int n)
 /* gst_videoscale_orc_downsample_u32 */
 #ifdef DISABLE_ORC
 void
-gst_videoscale_orc_downsample_u32 (guint8 * d1, const guint8 * s1, int n)
+gst_videoscale_orc_downsample_u32 (guint8 * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int n)
 {
   int i;
   orc_union32 *ORC_RESTRICT ptr0;
@@ -851,7 +879,8 @@ _backup_gst_videoscale_orc_downsample_u32 (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_gst_videoscale_orc_downsample_u32;
 void
-gst_videoscale_orc_downsample_u32 (guint8 * d1, const guint8 * s1, int n)
+gst_videoscale_orc_downsample_u32 (guint8 * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int n)
 {
   OrcExecutor _ex, *ex = &_ex;
   OrcProgram *p = _orc_program_gst_videoscale_orc_downsample_u32;
@@ -872,7 +901,8 @@ gst_videoscale_orc_downsample_u32 (guint8 * d1, const guint8 * s1, int n)
 /* gst_videoscale_orc_downsample_yuyv */
 #ifdef DISABLE_ORC
 void
-gst_videoscale_orc_downsample_yuyv (guint8 * d1, const guint8 * s1, int n)
+gst_videoscale_orc_downsample_yuyv (guint8 * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int n)
 {
   int i;
   orc_union32 *ORC_RESTRICT ptr0;
@@ -991,7 +1021,8 @@ _backup_gst_videoscale_orc_downsample_yuyv (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_gst_videoscale_orc_downsample_yuyv;
 void
-gst_videoscale_orc_downsample_yuyv (guint8 * d1, const guint8 * s1, int n)
+gst_videoscale_orc_downsample_yuyv (guint8 * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int n)
 {
   OrcExecutor _ex, *ex = &_ex;
   OrcProgram *p = _orc_program_gst_videoscale_orc_downsample_yuyv;
@@ -1012,8 +1043,8 @@ gst_videoscale_orc_downsample_yuyv (guint8 * d1, const guint8 * s1, int n)
 /* gst_videoscale_orc_resample_nearest_u8 */
 #ifdef DISABLE_ORC
 void
-gst_videoscale_orc_resample_nearest_u8 (guint8 * d1, const guint8 * s1, int p1,
-    int p2, int n)
+gst_videoscale_orc_resample_nearest_u8 (guint8 * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int p2, int n)
 {
   int i;
   orc_int8 *ORC_RESTRICT ptr0;
@@ -1058,8 +1089,8 @@ _backup_gst_videoscale_orc_resample_nearest_u8 (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_gst_videoscale_orc_resample_nearest_u8;
 void
-gst_videoscale_orc_resample_nearest_u8 (guint8 * d1, const guint8 * s1, int p1,
-    int p2, int n)
+gst_videoscale_orc_resample_nearest_u8 (guint8 * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int p2, int n)
 {
   OrcExecutor _ex, *ex = &_ex;
   OrcProgram *p = _orc_program_gst_videoscale_orc_resample_nearest_u8;
@@ -1082,8 +1113,8 @@ gst_videoscale_orc_resample_nearest_u8 (guint8 * d1, const guint8 * s1, int p1,
 /* gst_videoscale_orc_resample_bilinear_u8 */
 #ifdef DISABLE_ORC
 void
-gst_videoscale_orc_resample_bilinear_u8 (guint8 * d1, const guint8 * s1, int p1,
-    int p2, int n)
+gst_videoscale_orc_resample_bilinear_u8 (guint8 * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int p2, int n)
 {
   int i;
   orc_int8 *ORC_RESTRICT ptr0;
@@ -1138,8 +1169,8 @@ _backup_gst_videoscale_orc_resample_bilinear_u8 (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_gst_videoscale_orc_resample_bilinear_u8;
 void
-gst_videoscale_orc_resample_bilinear_u8 (guint8 * d1, const guint8 * s1, int p1,
-    int p2, int n)
+gst_videoscale_orc_resample_bilinear_u8 (guint8 * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int p2, int n)
 {
   OrcExecutor _ex, *ex = &_ex;
   OrcProgram *p = _orc_program_gst_videoscale_orc_resample_bilinear_u8;
@@ -1162,8 +1193,8 @@ gst_videoscale_orc_resample_bilinear_u8 (guint8 * d1, const guint8 * s1, int p1,
 /* gst_videoscale_orc_resample_nearest_u32 */
 #ifdef DISABLE_ORC
 void
-gst_videoscale_orc_resample_nearest_u32 (guint8 * d1, const guint8 * s1, int p1,
-    int p2, int n)
+gst_videoscale_orc_resample_nearest_u32 (guint8 * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int p2, int n)
 {
   int i;
   orc_union32 *ORC_RESTRICT ptr0;
@@ -1208,8 +1239,8 @@ _backup_gst_videoscale_orc_resample_nearest_u32 (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_gst_videoscale_orc_resample_nearest_u32;
 void
-gst_videoscale_orc_resample_nearest_u32 (guint8 * d1, const guint8 * s1, int p1,
-    int p2, int n)
+gst_videoscale_orc_resample_nearest_u32 (guint8 * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int p2, int n)
 {
   OrcExecutor _ex, *ex = &_ex;
   OrcProgram *p = _orc_program_gst_videoscale_orc_resample_nearest_u32;
@@ -1232,8 +1263,8 @@ gst_videoscale_orc_resample_nearest_u32 (guint8 * d1, const guint8 * s1, int p1,
 /* gst_videoscale_orc_resample_bilinear_u32 */
 #ifdef DISABLE_ORC
 void
-gst_videoscale_orc_resample_bilinear_u32 (guint8 * d1, const guint8 * s1,
-    int p1, int p2, int n)
+gst_videoscale_orc_resample_bilinear_u32 (guint8 * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int p2, int n)
 {
   int i;
   orc_union32 *ORC_RESTRICT ptr0;
@@ -1310,8 +1341,8 @@ _backup_gst_videoscale_orc_resample_bilinear_u32 (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_gst_videoscale_orc_resample_bilinear_u32;
 void
-gst_videoscale_orc_resample_bilinear_u32 (guint8 * d1, const guint8 * s1,
-    int p1, int p2, int n)
+gst_videoscale_orc_resample_bilinear_u32 (guint8 * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, int p1, int p2, int n)
 {
   OrcExecutor _ex, *ex = &_ex;
   OrcProgram *p = _orc_program_gst_videoscale_orc_resample_bilinear_u32;
@@ -1334,8 +1365,9 @@ gst_videoscale_orc_resample_bilinear_u32 (guint8 * d1, const guint8 * s1,
 /* gst_videoscale_orc_resample_merge_bilinear_u32 */
 #ifdef DISABLE_ORC
 void
-gst_videoscale_orc_resample_merge_bilinear_u32 (guint8 * d1, guint8 * d2,
-    const guint8 * s1, const guint8 * s2, int p1, int p2, int p3, int n)
+gst_videoscale_orc_resample_merge_bilinear_u32 (guint8 * ORC_RESTRICT d1,
+    guint8 * ORC_RESTRICT d2, const guint8 * ORC_RESTRICT s1,
+    const guint8 * ORC_RESTRICT s2, int p1, int p2, int p3, int n)
 {
   int i;
   orc_union32 *ORC_RESTRICT ptr0;
@@ -1515,8 +1547,9 @@ _backup_gst_videoscale_orc_resample_merge_bilinear_u32 (OrcExecutor *
 
 static OrcProgram *_orc_program_gst_videoscale_orc_resample_merge_bilinear_u32;
 void
-gst_videoscale_orc_resample_merge_bilinear_u32 (guint8 * d1, guint8 * d2,
-    const guint8 * s1, const guint8 * s2, int p1, int p2, int p3, int n)
+gst_videoscale_orc_resample_merge_bilinear_u32 (guint8 * ORC_RESTRICT d1,
+    guint8 * ORC_RESTRICT d2, const guint8 * ORC_RESTRICT s1,
+    const guint8 * ORC_RESTRICT s2, int p1, int p2, int p3, int n)
 {
   OrcExecutor _ex, *ex = &_ex;
   OrcProgram *p = _orc_program_gst_videoscale_orc_resample_merge_bilinear_u32;
@@ -1542,9 +1575,10 @@ gst_videoscale_orc_resample_merge_bilinear_u32 (guint8 * d1, guint8 * d2,
 /* gst_videoscale_orc_merge_bicubic_u8 */
 #ifdef DISABLE_ORC
 void
-gst_videoscale_orc_merge_bicubic_u8 (guint8 * d1, const guint8 * s1,
-    const guint8 * s2, const guint8 * s3, const guint8 * s4, int p1, int p2,
-    int p3, int p4, int n)
+gst_videoscale_orc_merge_bicubic_u8 (guint8 * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, const guint8 * ORC_RESTRICT s2,
+    const guint8 * ORC_RESTRICT s3, const guint8 * ORC_RESTRICT s4, int p1,
+    int p2, int p3, int p4, int n)
 {
   int i;
   orc_int8 *ORC_RESTRICT ptr0;
@@ -1709,9 +1743,10 @@ _backup_gst_videoscale_orc_merge_bicubic_u8 (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_gst_videoscale_orc_merge_bicubic_u8;
 void
-gst_videoscale_orc_merge_bicubic_u8 (guint8 * d1, const guint8 * s1,
-    const guint8 * s2, const guint8 * s3, const guint8 * s4, int p1, int p2,
-    int p3, int p4, int n)
+gst_videoscale_orc_merge_bicubic_u8 (guint8 * ORC_RESTRICT d1,
+    const guint8 * ORC_RESTRICT s1, const guint8 * ORC_RESTRICT s2,
+    const guint8 * ORC_RESTRICT s3, const guint8 * ORC_RESTRICT s4, int p1,
+    int p2, int p3, int p4, int n)
 {
   OrcExecutor _ex, *ex = &_ex;
   OrcProgram *p = _orc_program_gst_videoscale_orc_merge_bicubic_u8;
@@ -1743,7 +1778,6 @@ gst_videoscale_orc_init (void)
   {
     /* orc_merge_linear_u8 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_merge_linear_u8");
@@ -1775,14 +1809,13 @@ gst_videoscale_orc_init (void)
     orc_program_append_2 (p, "addb", 0, ORC_VAR_D1, ORC_VAR_T4, ORC_VAR_T3,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_merge_linear_u8 = p;
   }
   {
     /* orc_merge_linear_u16 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_merge_linear_u16");
@@ -1807,14 +1840,13 @@ gst_videoscale_orc_init (void)
     orc_program_append_2 (p, "convlw", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_merge_linear_u16 = p;
   }
   {
     /* orc_splat_u16 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_splat_u16");
@@ -1825,14 +1857,13 @@ gst_videoscale_orc_init (void)
     orc_program_append_2 (p, "copyw", 0, ORC_VAR_D1, ORC_VAR_P1, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_splat_u16 = p;
   }
   {
     /* orc_splat_u32 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_splat_u32");
@@ -1843,14 +1874,13 @@ gst_videoscale_orc_init (void)
     orc_program_append_2 (p, "copyl", 0, ORC_VAR_D1, ORC_VAR_P1, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_splat_u32 = p;
   }
   {
     /* orc_splat_u64 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_splat_u64");
@@ -1861,14 +1891,13 @@ gst_videoscale_orc_init (void)
     orc_program_append_2 (p, "copyq", 0, ORC_VAR_D1, ORC_VAR_P1, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_splat_u64 = p;
   }
   {
     /* orc_downsample_u8 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_downsample_u8");
@@ -1883,14 +1912,13 @@ gst_videoscale_orc_init (void)
     orc_program_append_2 (p, "avgub", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_T2,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_downsample_u8 = p;
   }
   {
     /* orc_downsample_u16 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_downsample_u16");
@@ -1905,14 +1933,13 @@ gst_videoscale_orc_init (void)
     orc_program_append_2 (p, "avguw", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_T2,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_downsample_u16 = p;
   }
   {
     /* gst_videoscale_orc_downsample_u32 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "gst_videoscale_orc_downsample_u32");
@@ -1928,14 +1955,13 @@ gst_videoscale_orc_init (void)
     orc_program_append_2 (p, "avgub", 2, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_T2,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_gst_videoscale_orc_downsample_u32 = p;
   }
   {
     /* gst_videoscale_orc_downsample_yuyv */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "gst_videoscale_orc_downsample_yuyv");
@@ -1963,14 +1989,13 @@ gst_videoscale_orc_init (void)
     orc_program_append_2 (p, "mergebw", 1, ORC_VAR_D1, ORC_VAR_T5, ORC_VAR_T6,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_gst_videoscale_orc_downsample_yuyv = p;
   }
   {
     /* gst_videoscale_orc_resample_nearest_u8 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "gst_videoscale_orc_resample_nearest_u8");
@@ -1984,14 +2009,13 @@ gst_videoscale_orc_init (void)
     orc_program_append_2 (p, "ldresnearb", 0, ORC_VAR_D1, ORC_VAR_S1,
         ORC_VAR_P1, ORC_VAR_P2);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_gst_videoscale_orc_resample_nearest_u8 = p;
   }
   {
     /* gst_videoscale_orc_resample_bilinear_u8 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "gst_videoscale_orc_resample_bilinear_u8");
@@ -2005,14 +2029,13 @@ gst_videoscale_orc_init (void)
     orc_program_append_2 (p, "ldreslinb", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_P1,
         ORC_VAR_P2);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_gst_videoscale_orc_resample_bilinear_u8 = p;
   }
   {
     /* gst_videoscale_orc_resample_nearest_u32 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "gst_videoscale_orc_resample_nearest_u32");
@@ -2026,14 +2049,13 @@ gst_videoscale_orc_init (void)
     orc_program_append_2 (p, "ldresnearl", 0, ORC_VAR_D1, ORC_VAR_S1,
         ORC_VAR_P1, ORC_VAR_P2);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_gst_videoscale_orc_resample_nearest_u32 = p;
   }
   {
     /* gst_videoscale_orc_resample_bilinear_u32 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "gst_videoscale_orc_resample_bilinear_u32");
@@ -2047,14 +2069,13 @@ gst_videoscale_orc_init (void)
     orc_program_append_2 (p, "ldreslinl", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_P1,
         ORC_VAR_P2);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_gst_videoscale_orc_resample_bilinear_u32 = p;
   }
   {
     /* gst_videoscale_orc_resample_merge_bilinear_u32 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "gst_videoscale_orc_resample_merge_bilinear_u32");
@@ -2092,14 +2113,13 @@ gst_videoscale_orc_init (void)
     orc_program_append_2 (p, "addb", 2, ORC_VAR_D1, ORC_VAR_T3, ORC_VAR_T1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_gst_videoscale_orc_resample_merge_bilinear_u32 = p;
   }
   {
     /* gst_videoscale_orc_merge_bicubic_u8 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "gst_videoscale_orc_merge_bicubic_u8");
@@ -2140,7 +2160,7 @@ gst_videoscale_orc_init (void)
     orc_program_append_2 (p, "convsuswb", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_gst_videoscale_orc_merge_bicubic_u8 = p;
   }
index 93157f0..214b72f 100644 (file)
@@ -60,21 +60,30 @@ typedef union { orc_int16 i; orc_int8 x2[2]; } orc_union16;
 typedef union { orc_int32 i; float f; orc_int16 x2[2]; orc_int8 x4[4]; } orc_union32;
 typedef union { orc_int64 i; double f; orc_int32 x2[2]; float x2f[2]; orc_int16 x4[4]; } orc_union64;
 #endif
-void orc_merge_linear_u8 (orc_uint8 * d1, const orc_uint8 * s1, const orc_uint8 * s2, int p1, int n);
-void orc_merge_linear_u16 (orc_uint16 * d1, const orc_uint16 * s1, const orc_uint16 * s2, int p1, int p2, int n);
-void orc_splat_u16 (orc_uint16 * d1, int p1, int n);
-void orc_splat_u32 (orc_uint32 * d1, int p1, int n);
-void orc_splat_u64 (orc_uint64 * d1, orc_int64 p1, int n);
-void orc_downsample_u8 (guint8 * d1, const guint8 * s1, int n);
-void orc_downsample_u16 (guint16 * d1, const guint16 * s1, int n);
-void gst_videoscale_orc_downsample_u32 (guint8 * d1, const guint8 * s1, int n);
-void gst_videoscale_orc_downsample_yuyv (guint8 * d1, const guint8 * s1, int n);
-void gst_videoscale_orc_resample_nearest_u8 (guint8 * d1, const guint8 * s1, int p1, int p2, int n);
-void gst_videoscale_orc_resample_bilinear_u8 (guint8 * d1, const guint8 * s1, int p1, int p2, int n);
-void gst_videoscale_orc_resample_nearest_u32 (guint8 * d1, const guint8 * s1, int p1, int p2, int n);
-void gst_videoscale_orc_resample_bilinear_u32 (guint8 * d1, const guint8 * s1, int p1, int p2, int n);
-void gst_videoscale_orc_resample_merge_bilinear_u32 (guint8 * d1, guint8 * d2, const guint8 * s1, const guint8 * s2, int p1, int p2, int p3, int n);
-void gst_videoscale_orc_merge_bicubic_u8 (guint8 * d1, const guint8 * s1, const guint8 * s2, const guint8 * s3, const guint8 * s4, int p1, int p2, int p3, int p4, int n);
+#ifndef ORC_RESTRICT
+#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
+#define ORC_RESTRICT restrict
+#elif defined(__GNUC__) && __GNUC__ >= 4
+#define ORC_RESTRICT __restrict__
+#else
+#define ORC_RESTRICT
+#endif
+#endif
+void orc_merge_linear_u8 (orc_uint8 * ORC_RESTRICT d1, const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, int p1, int n);
+void orc_merge_linear_u16 (orc_uint16 * ORC_RESTRICT d1, const orc_uint16 * ORC_RESTRICT s1, const orc_uint16 * ORC_RESTRICT s2, int p1, int p2, int n);
+void orc_splat_u16 (orc_uint16 * ORC_RESTRICT d1, int p1, int n);
+void orc_splat_u32 (orc_uint32 * ORC_RESTRICT d1, int p1, int n);
+void orc_splat_u64 (orc_uint64 * ORC_RESTRICT d1, orc_int64 p1, int n);
+void orc_downsample_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
+void orc_downsample_u16 (guint16 * ORC_RESTRICT d1, const guint16 * ORC_RESTRICT s1, int n);
+void gst_videoscale_orc_downsample_u32 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
+void gst_videoscale_orc_downsample_yuyv (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
+void gst_videoscale_orc_resample_nearest_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int p2, int n);
+void gst_videoscale_orc_resample_bilinear_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int p2, int n);
+void gst_videoscale_orc_resample_nearest_u32 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int p2, int n);
+void gst_videoscale_orc_resample_bilinear_u32 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int p2, int n);
+void gst_videoscale_orc_resample_merge_bilinear_u32 (guint8 * ORC_RESTRICT d1, guint8 * ORC_RESTRICT d2, const guint8 * ORC_RESTRICT s1, const guint8 * ORC_RESTRICT s2, int p1, int p2, int p3, int n);
+void gst_videoscale_orc_merge_bicubic_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, const guint8 * ORC_RESTRICT s2, const guint8 * ORC_RESTRICT s3, const guint8 * ORC_RESTRICT s4, int p1, int p2, int p3, int p4, int n);
 
 #ifdef __cplusplus
 }
index 91791a4..2f6c588 100644 (file)
@@ -4,9 +4,6 @@
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
-#ifndef DISABLE_ORC
-#include <orc/orc.h>
-#endif
 #include <glib.h>
 
 #ifndef _ORC_INTEGER_TYPEDEFS_
@@ -32,6 +29,7 @@ typedef unsigned __int16 orc_uint16;
 typedef unsigned __int32 orc_uint32;
 typedef unsigned __int64 orc_uint64;
 #define ORC_UINT64_C(x) (x##Ui64)
+#define inline __inline
 #else
 #include <limits.h>
 typedef signed char orc_int8;
@@ -71,11 +69,23 @@ typedef union
   orc_int16 x4[4];
 } orc_union64;
 #endif
+#ifndef ORC_RESTRICT
+#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
+#define ORC_RESTRICT restrict
+#elif defined(__GNUC__) && __GNUC__ >= 4
+#define ORC_RESTRICT __restrict__
+#else
+#define ORC_RESTRICT
+#endif
+#endif
 
-void gst_orc_splat_u8 (guint8 * d1, int p1, int n);
-void gst_orc_splat_s16 (gint8 * d1, int p1, int n);
-void gst_orc_splat_u16 (guint8 * d1, int p1, int n);
-void gst_orc_splat_u32 (guint8 * d1, int p1, int n);
+#ifndef DISABLE_ORC
+#include <orc/orc.h>
+#endif
+void gst_orc_splat_u8 (guint8 * ORC_RESTRICT d1, int p1, int n);
+void gst_orc_splat_s16 (gint8 * ORC_RESTRICT d1, int p1, int n);
+void gst_orc_splat_u16 (guint8 * ORC_RESTRICT d1, int p1, int n);
+void gst_orc_splat_u32 (guint8 * ORC_RESTRICT d1, int p1, int n);
 
 void gst_videotestsrc_orc_init (void);
 
@@ -111,6 +121,7 @@ void gst_videotestsrc_orc_init (void);
 #define ORC_ISNAN(x) ((((x)&0x7f800000) == 0x7f800000) && (((x)&0x007fffff) != 0))
 #define ORC_DENORMAL_DOUBLE(x) ((x) & ((((x)&ORC_UINT64_C(0x7ff0000000000000)) == 0) ? ORC_UINT64_C(0xfff0000000000000) : ORC_UINT64_C(0xffffffffffffffff)))
 #define ORC_ISNAN_DOUBLE(x) ((((x)&ORC_UINT64_C(0x7ff0000000000000)) == ORC_UINT64_C(0x7ff0000000000000)) && (((x)&ORC_UINT64_C(0x000fffffffffffff)) != 0))
+#ifndef ORC_RESTRICT
 #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
 #define ORC_RESTRICT restrict
 #elif defined(__GNUC__) && __GNUC__ >= 4
@@ -118,6 +129,7 @@ void gst_videotestsrc_orc_init (void);
 #else
 #define ORC_RESTRICT
 #endif
+#endif
 /* end Orc C target preamble */
 
 
@@ -125,7 +137,7 @@ void gst_videotestsrc_orc_init (void);
 /* gst_orc_splat_u8 */
 #ifdef DISABLE_ORC
 void
-gst_orc_splat_u8 (guint8 * d1, int p1, int n)
+gst_orc_splat_u8 (guint8 * ORC_RESTRICT d1, int p1, int n)
 {
   int i;
   orc_int8 *ORC_RESTRICT ptr0;
@@ -172,7 +184,7 @@ _backup_gst_orc_splat_u8 (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_gst_orc_splat_u8;
 void
-gst_orc_splat_u8 (guint8 * d1, int p1, int n)
+gst_orc_splat_u8 (guint8 * ORC_RESTRICT d1, int p1, int n)
 {
   OrcExecutor _ex, *ex = &_ex;
   OrcProgram *p = _orc_program_gst_orc_splat_u8;
@@ -193,7 +205,7 @@ gst_orc_splat_u8 (guint8 * d1, int p1, int n)
 /* gst_orc_splat_s16 */
 #ifdef DISABLE_ORC
 void
-gst_orc_splat_s16 (gint8 * d1, int p1, int n)
+gst_orc_splat_s16 (gint8 * ORC_RESTRICT d1, int p1, int n)
 {
   int i;
   orc_union16 *ORC_RESTRICT ptr0;
@@ -240,7 +252,7 @@ _backup_gst_orc_splat_s16 (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_gst_orc_splat_s16;
 void
-gst_orc_splat_s16 (gint8 * d1, int p1, int n)
+gst_orc_splat_s16 (gint8 * ORC_RESTRICT d1, int p1, int n)
 {
   OrcExecutor _ex, *ex = &_ex;
   OrcProgram *p = _orc_program_gst_orc_splat_s16;
@@ -261,7 +273,7 @@ gst_orc_splat_s16 (gint8 * d1, int p1, int n)
 /* gst_orc_splat_u16 */
 #ifdef DISABLE_ORC
 void
-gst_orc_splat_u16 (guint8 * d1, int p1, int n)
+gst_orc_splat_u16 (guint8 * ORC_RESTRICT d1, int p1, int n)
 {
   int i;
   orc_union16 *ORC_RESTRICT ptr0;
@@ -308,7 +320,7 @@ _backup_gst_orc_splat_u16 (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_gst_orc_splat_u16;
 void
-gst_orc_splat_u16 (guint8 * d1, int p1, int n)
+gst_orc_splat_u16 (guint8 * ORC_RESTRICT d1, int p1, int n)
 {
   OrcExecutor _ex, *ex = &_ex;
   OrcProgram *p = _orc_program_gst_orc_splat_u16;
@@ -329,7 +341,7 @@ gst_orc_splat_u16 (guint8 * d1, int p1, int n)
 /* gst_orc_splat_u32 */
 #ifdef DISABLE_ORC
 void
-gst_orc_splat_u32 (guint8 * d1, int p1, int n)
+gst_orc_splat_u32 (guint8 * ORC_RESTRICT d1, int p1, int n)
 {
   int i;
   orc_union32 *ORC_RESTRICT ptr0;
@@ -376,7 +388,7 @@ _backup_gst_orc_splat_u32 (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_gst_orc_splat_u32;
 void
-gst_orc_splat_u32 (guint8 * d1, int p1, int n)
+gst_orc_splat_u32 (guint8 * ORC_RESTRICT d1, int p1, int n)
 {
   OrcExecutor _ex, *ex = &_ex;
   OrcProgram *p = _orc_program_gst_orc_splat_u32;
@@ -401,7 +413,6 @@ gst_videotestsrc_orc_init (void)
   {
     /* gst_orc_splat_u8 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "gst_orc_splat_u8");
@@ -412,14 +423,13 @@ gst_videotestsrc_orc_init (void)
     orc_program_append_2 (p, "copyb", 0, ORC_VAR_D1, ORC_VAR_P1, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_gst_orc_splat_u8 = p;
   }
   {
     /* gst_orc_splat_s16 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "gst_orc_splat_s16");
@@ -430,14 +440,13 @@ gst_videotestsrc_orc_init (void)
     orc_program_append_2 (p, "copyw", 0, ORC_VAR_D1, ORC_VAR_P1, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_gst_orc_splat_s16 = p;
   }
   {
     /* gst_orc_splat_u16 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "gst_orc_splat_u16");
@@ -448,14 +457,13 @@ gst_videotestsrc_orc_init (void)
     orc_program_append_2 (p, "copyw", 0, ORC_VAR_D1, ORC_VAR_P1, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_gst_orc_splat_u16 = p;
   }
   {
     /* gst_orc_splat_u32 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "gst_orc_splat_u32");
@@ -466,7 +474,7 @@ gst_videotestsrc_orc_init (void)
     orc_program_append_2 (p, "copyl", 0, ORC_VAR_D1, ORC_VAR_P1, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_gst_orc_splat_u32 = p;
   }
index 8d6998b..9c7ba64 100644 (file)
@@ -37,6 +37,7 @@ typedef unsigned __int16 orc_uint16;
 typedef unsigned __int32 orc_uint32;
 typedef unsigned __int64 orc_uint64;
 #define ORC_UINT64_C(x) (x##Ui64)
+#define inline __inline
 #else
 #include <limits.h>
 typedef signed char orc_int8;
@@ -59,10 +60,19 @@ typedef union { orc_int16 i; orc_int8 x2[2]; } orc_union16;
 typedef union { orc_int32 i; float f; orc_int16 x2[2]; orc_int8 x4[4]; } orc_union32;
 typedef union { orc_int64 i; double f; orc_int32 x2[2]; float x2f[2]; orc_int16 x4[4]; } orc_union64;
 #endif
-void gst_orc_splat_u8 (guint8 * d1, int p1, int n);
-void gst_orc_splat_s16 (gint8 * d1, int p1, int n);
-void gst_orc_splat_u16 (guint8 * d1, int p1, int n);
-void gst_orc_splat_u32 (guint8 * d1, int p1, int n);
+#ifndef ORC_RESTRICT
+#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
+#define ORC_RESTRICT restrict
+#elif defined(__GNUC__) && __GNUC__ >= 4
+#define ORC_RESTRICT __restrict__
+#else
+#define ORC_RESTRICT
+#endif
+#endif
+void gst_orc_splat_u8 (guint8 * ORC_RESTRICT d1, int p1, int n);
+void gst_orc_splat_s16 (gint8 * ORC_RESTRICT d1, int p1, int n);
+void gst_orc_splat_u16 (guint8 * ORC_RESTRICT d1, int p1, int n);
+void gst_orc_splat_u32 (guint8 * ORC_RESTRICT d1, int p1, int n);
 
 #ifdef __cplusplus
 }
index b5cfbb4..6ecf5bb 100644 (file)
@@ -4,9 +4,6 @@
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
-#ifndef DISABLE_ORC
-#include <orc/orc.h>
-#endif
 #include <glib.h>
 
 #ifndef _ORC_INTEGER_TYPEDEFS_
@@ -32,6 +29,7 @@ typedef unsigned __int16 orc_uint16;
 typedef unsigned __int32 orc_uint32;
 typedef unsigned __int64 orc_uint64;
 #define ORC_UINT64_C(x) (x##Ui64)
+#define inline __inline
 #else
 #include <limits.h>
 typedef signed char orc_int8;
@@ -71,25 +69,46 @@ typedef union
   orc_int16 x4[4];
 } orc_union64;
 #endif
+#ifndef ORC_RESTRICT
+#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
+#define ORC_RESTRICT restrict
+#elif defined(__GNUC__) && __GNUC__ >= 4
+#define ORC_RESTRICT __restrict__
+#else
+#define ORC_RESTRICT
+#endif
+#endif
 
-void orc_scalarmultiply_f64_ns (double *d1, double p1, int n);
-void orc_scalarmultiply_f32_ns (float *d1, float p1, int n);
-void orc_process_int32 (gint32 * d1, int p1, int n);
-void orc_process_int32_clamp (gint32 * d1, int p1, int n);
-void orc_process_int16 (gint16 * d1, int p1, int n);
-void orc_process_int16_clamp (gint16 * d1, int p1, int n);
-void orc_process_int8 (gint8 * d1, int p1, int n);
-void orc_process_int8_clamp (gint8 * d1, int p1, int n);
-void orc_memset_f64 (gdouble * d1, double p1, int n);
-void orc_prepare_volumes (gdouble * d1, const gboolean * s1, int n);
-void orc_process_controlled_f64_1ch (gdouble * d1, const gdouble * s1, int n);
-void orc_process_controlled_f32_1ch (gfloat * d1, const gdouble * s1, int n);
-void orc_process_controlled_f32_2ch (gfloat * d1, const gdouble * s1, int n);
-void orc_process_controlled_int32_1ch (gint32 * d1, const gdouble * s1, int n);
-void orc_process_controlled_int16_1ch (gint16 * d1, const gdouble * s1, int n);
-void orc_process_controlled_int16_2ch (gint16 * d1, const gdouble * s1, int n);
-void orc_process_controlled_int8_1ch (gint8 * d1, const gdouble * s1, int n);
-void orc_process_controlled_int8_2ch (gint8 * d1, const gdouble * s1, int n);
+#ifndef DISABLE_ORC
+#include <orc/orc.h>
+#endif
+void orc_scalarmultiply_f64_ns (double *ORC_RESTRICT d1, double p1, int n);
+void orc_scalarmultiply_f32_ns (float *ORC_RESTRICT d1, float p1, int n);
+void orc_process_int32 (gint32 * ORC_RESTRICT d1, int p1, int n);
+void orc_process_int32_clamp (gint32 * ORC_RESTRICT d1, int p1, int n);
+void orc_process_int16 (gint16 * ORC_RESTRICT d1, int p1, int n);
+void orc_process_int16_clamp (gint16 * ORC_RESTRICT d1, int p1, int n);
+void orc_process_int8 (gint8 * ORC_RESTRICT d1, int p1, int n);
+void orc_process_int8_clamp (gint8 * ORC_RESTRICT d1, int p1, int n);
+void orc_memset_f64 (gdouble * ORC_RESTRICT d1, double p1, int n);
+void orc_prepare_volumes (gdouble * ORC_RESTRICT d1,
+    const gboolean * ORC_RESTRICT s1, int n);
+void orc_process_controlled_f64_1ch (gdouble * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int n);
+void orc_process_controlled_f32_1ch (gfloat * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int n);
+void orc_process_controlled_f32_2ch (gfloat * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int n);
+void orc_process_controlled_int32_1ch (gint32 * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int n);
+void orc_process_controlled_int16_1ch (gint16 * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int n);
+void orc_process_controlled_int16_2ch (gint16 * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int n);
+void orc_process_controlled_int8_1ch (gint8 * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int n);
+void orc_process_controlled_int8_2ch (gint8 * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int n);
 
 void gst_volume_orc_init (void);
 
@@ -125,6 +144,7 @@ void gst_volume_orc_init (void);
 #define ORC_ISNAN(x) ((((x)&0x7f800000) == 0x7f800000) && (((x)&0x007fffff) != 0))
 #define ORC_DENORMAL_DOUBLE(x) ((x) & ((((x)&ORC_UINT64_C(0x7ff0000000000000)) == 0) ? ORC_UINT64_C(0xfff0000000000000) : ORC_UINT64_C(0xffffffffffffffff)))
 #define ORC_ISNAN_DOUBLE(x) ((((x)&ORC_UINT64_C(0x7ff0000000000000)) == ORC_UINT64_C(0x7ff0000000000000)) && (((x)&ORC_UINT64_C(0x000fffffffffffff)) != 0))
+#ifndef ORC_RESTRICT
 #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
 #define ORC_RESTRICT restrict
 #elif defined(__GNUC__) && __GNUC__ >= 4
@@ -132,6 +152,7 @@ void gst_volume_orc_init (void);
 #else
 #define ORC_RESTRICT
 #endif
+#endif
 /* end Orc C target preamble */
 
 
@@ -139,7 +160,7 @@ void gst_volume_orc_init (void);
 /* orc_scalarmultiply_f64_ns */
 #ifdef DISABLE_ORC
 void
-orc_scalarmultiply_f64_ns (double *d1, double p1, int n)
+orc_scalarmultiply_f64_ns (double *ORC_RESTRICT d1, double p1, int n)
 {
   int i;
   orc_union64 *ORC_RESTRICT ptr0;
@@ -210,7 +231,7 @@ _backup_orc_scalarmultiply_f64_ns (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_scalarmultiply_f64_ns;
 void
-orc_scalarmultiply_f64_ns (double *d1, double p1, int n)
+orc_scalarmultiply_f64_ns (double *ORC_RESTRICT d1, double p1, int n)
 {
   OrcExecutor _ex, *ex = &_ex;
   OrcProgram *p = _orc_program_orc_scalarmultiply_f64_ns;
@@ -236,7 +257,7 @@ orc_scalarmultiply_f64_ns (double *d1, double p1, int n)
 /* orc_scalarmultiply_f32_ns */
 #ifdef DISABLE_ORC
 void
-orc_scalarmultiply_f32_ns (float *d1, float p1, int n)
+orc_scalarmultiply_f32_ns (float *ORC_RESTRICT d1, float p1, int n)
 {
   int i;
   orc_union32 *ORC_RESTRICT ptr0;
@@ -305,7 +326,7 @@ _backup_orc_scalarmultiply_f32_ns (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_scalarmultiply_f32_ns;
 void
-orc_scalarmultiply_f32_ns (float *d1, float p1, int n)
+orc_scalarmultiply_f32_ns (float *ORC_RESTRICT d1, float p1, int n)
 {
   OrcExecutor _ex, *ex = &_ex;
   OrcProgram *p = _orc_program_orc_scalarmultiply_f32_ns;
@@ -330,7 +351,7 @@ orc_scalarmultiply_f32_ns (float *d1, float p1, int n)
 /* orc_process_int32 */
 #ifdef DISABLE_ORC
 void
-orc_process_int32 (gint32 * d1, int p1, int n)
+orc_process_int32 (gint32 * ORC_RESTRICT d1, int p1, int n)
 {
   int i;
   orc_union32 *ORC_RESTRICT ptr0;
@@ -395,7 +416,7 @@ _backup_orc_process_int32 (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_process_int32;
 void
-orc_process_int32 (gint32 * d1, int p1, int n)
+orc_process_int32 (gint32 * ORC_RESTRICT d1, int p1, int n)
 {
   OrcExecutor _ex, *ex = &_ex;
   OrcProgram *p = _orc_program_orc_process_int32;
@@ -416,7 +437,7 @@ orc_process_int32 (gint32 * d1, int p1, int n)
 /* orc_process_int32_clamp */
 #ifdef DISABLE_ORC
 void
-orc_process_int32_clamp (gint32 * d1, int p1, int n)
+orc_process_int32_clamp (gint32 * ORC_RESTRICT d1, int p1, int n)
 {
   int i;
   orc_union32 *ORC_RESTRICT ptr0;
@@ -481,7 +502,7 @@ _backup_orc_process_int32_clamp (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_process_int32_clamp;
 void
-orc_process_int32_clamp (gint32 * d1, int p1, int n)
+orc_process_int32_clamp (gint32 * ORC_RESTRICT d1, int p1, int n)
 {
   OrcExecutor _ex, *ex = &_ex;
   OrcProgram *p = _orc_program_orc_process_int32_clamp;
@@ -502,7 +523,7 @@ orc_process_int32_clamp (gint32 * d1, int p1, int n)
 /* orc_process_int16 */
 #ifdef DISABLE_ORC
 void
-orc_process_int16 (gint16 * d1, int p1, int n)
+orc_process_int16 (gint16 * ORC_RESTRICT d1, int p1, int n)
 {
   int i;
   orc_union16 *ORC_RESTRICT ptr0;
@@ -567,7 +588,7 @@ _backup_orc_process_int16 (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_process_int16;
 void
-orc_process_int16 (gint16 * d1, int p1, int n)
+orc_process_int16 (gint16 * ORC_RESTRICT d1, int p1, int n)
 {
   OrcExecutor _ex, *ex = &_ex;
   OrcProgram *p = _orc_program_orc_process_int16;
@@ -588,7 +609,7 @@ orc_process_int16 (gint16 * d1, int p1, int n)
 /* orc_process_int16_clamp */
 #ifdef DISABLE_ORC
 void
-orc_process_int16_clamp (gint16 * d1, int p1, int n)
+orc_process_int16_clamp (gint16 * ORC_RESTRICT d1, int p1, int n)
 {
   int i;
   orc_union16 *ORC_RESTRICT ptr0;
@@ -653,7 +674,7 @@ _backup_orc_process_int16_clamp (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_process_int16_clamp;
 void
-orc_process_int16_clamp (gint16 * d1, int p1, int n)
+orc_process_int16_clamp (gint16 * ORC_RESTRICT d1, int p1, int n)
 {
   OrcExecutor _ex, *ex = &_ex;
   OrcProgram *p = _orc_program_orc_process_int16_clamp;
@@ -674,7 +695,7 @@ orc_process_int16_clamp (gint16 * d1, int p1, int n)
 /* orc_process_int8 */
 #ifdef DISABLE_ORC
 void
-orc_process_int8 (gint8 * d1, int p1, int n)
+orc_process_int8 (gint8 * ORC_RESTRICT d1, int p1, int n)
 {
   int i;
   orc_int8 *ORC_RESTRICT ptr0;
@@ -739,7 +760,7 @@ _backup_orc_process_int8 (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_process_int8;
 void
-orc_process_int8 (gint8 * d1, int p1, int n)
+orc_process_int8 (gint8 * ORC_RESTRICT d1, int p1, int n)
 {
   OrcExecutor _ex, *ex = &_ex;
   OrcProgram *p = _orc_program_orc_process_int8;
@@ -760,7 +781,7 @@ orc_process_int8 (gint8 * d1, int p1, int n)
 /* orc_process_int8_clamp */
 #ifdef DISABLE_ORC
 void
-orc_process_int8_clamp (gint8 * d1, int p1, int n)
+orc_process_int8_clamp (gint8 * ORC_RESTRICT d1, int p1, int n)
 {
   int i;
   orc_int8 *ORC_RESTRICT ptr0;
@@ -825,7 +846,7 @@ _backup_orc_process_int8_clamp (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_process_int8_clamp;
 void
-orc_process_int8_clamp (gint8 * d1, int p1, int n)
+orc_process_int8_clamp (gint8 * ORC_RESTRICT d1, int p1, int n)
 {
   OrcExecutor _ex, *ex = &_ex;
   OrcProgram *p = _orc_program_orc_process_int8_clamp;
@@ -846,7 +867,7 @@ orc_process_int8_clamp (gint8 * d1, int p1, int n)
 /* orc_memset_f64 */
 #ifdef DISABLE_ORC
 void
-orc_memset_f64 (gdouble * d1, double p1, int n)
+orc_memset_f64 (gdouble * ORC_RESTRICT d1, double p1, int n)
 {
   int i;
   orc_union64 *ORC_RESTRICT ptr0;
@@ -895,7 +916,7 @@ _backup_orc_memset_f64 (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_memset_f64;
 void
-orc_memset_f64 (gdouble * d1, double p1, int n)
+orc_memset_f64 (gdouble * ORC_RESTRICT d1, double p1, int n)
 {
   OrcExecutor _ex, *ex = &_ex;
   OrcProgram *p = _orc_program_orc_memset_f64;
@@ -921,7 +942,8 @@ orc_memset_f64 (gdouble * d1, double p1, int n)
 /* orc_prepare_volumes */
 #ifdef DISABLE_ORC
 void
-orc_prepare_volumes (gdouble * d1, const gboolean * s1, int n)
+orc_prepare_volumes (gdouble * ORC_RESTRICT d1,
+    const gboolean * ORC_RESTRICT s1, int n)
 {
   int i;
   orc_union64 *ORC_RESTRICT ptr0;
@@ -1028,7 +1050,8 @@ _backup_orc_prepare_volumes (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_prepare_volumes;
 void
-orc_prepare_volumes (gdouble * d1, const gboolean * s1, int n)
+orc_prepare_volumes (gdouble * ORC_RESTRICT d1,
+    const gboolean * ORC_RESTRICT s1, int n)
 {
   OrcExecutor _ex, *ex = &_ex;
   OrcProgram *p = _orc_program_orc_prepare_volumes;
@@ -1049,7 +1072,8 @@ orc_prepare_volumes (gdouble * d1, const gboolean * s1, int n)
 /* orc_process_controlled_f64_1ch */
 #ifdef DISABLE_ORC
 void
-orc_process_controlled_f64_1ch (gdouble * d1, const gdouble * s1, int n)
+orc_process_controlled_f64_1ch (gdouble * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int n)
 {
   int i;
   orc_union64 *ORC_RESTRICT ptr0;
@@ -1122,7 +1146,8 @@ _backup_orc_process_controlled_f64_1ch (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_process_controlled_f64_1ch;
 void
-orc_process_controlled_f64_1ch (gdouble * d1, const gdouble * s1, int n)
+orc_process_controlled_f64_1ch (gdouble * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int n)
 {
   OrcExecutor _ex, *ex = &_ex;
   OrcProgram *p = _orc_program_orc_process_controlled_f64_1ch;
@@ -1143,7 +1168,8 @@ orc_process_controlled_f64_1ch (gdouble * d1, const gdouble * s1, int n)
 /* orc_process_controlled_f32_1ch */
 #ifdef DISABLE_ORC
 void
-orc_process_controlled_f32_1ch (gfloat * d1, const gdouble * s1, int n)
+orc_process_controlled_f32_1ch (gfloat * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int n)
 {
   int i;
   orc_union32 *ORC_RESTRICT ptr0;
@@ -1234,7 +1260,8 @@ _backup_orc_process_controlled_f32_1ch (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_process_controlled_f32_1ch;
 void
-orc_process_controlled_f32_1ch (gfloat * d1, const gdouble * s1, int n)
+orc_process_controlled_f32_1ch (gfloat * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int n)
 {
   OrcExecutor _ex, *ex = &_ex;
   OrcProgram *p = _orc_program_orc_process_controlled_f32_1ch;
@@ -1255,7 +1282,8 @@ orc_process_controlled_f32_1ch (gfloat * d1, const gdouble * s1, int n)
 /* orc_process_controlled_f32_2ch */
 #ifdef DISABLE_ORC
 void
-orc_process_controlled_f32_2ch (gfloat * d1, const gdouble * s1, int n)
+orc_process_controlled_f32_2ch (gfloat * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int n)
 {
   int i;
   orc_union64 *ORC_RESTRICT ptr0;
@@ -1372,7 +1400,8 @@ _backup_orc_process_controlled_f32_2ch (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_process_controlled_f32_2ch;
 void
-orc_process_controlled_f32_2ch (gfloat * d1, const gdouble * s1, int n)
+orc_process_controlled_f32_2ch (gfloat * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int n)
 {
   OrcExecutor _ex, *ex = &_ex;
   OrcProgram *p = _orc_program_orc_process_controlled_f32_2ch;
@@ -1393,7 +1422,8 @@ orc_process_controlled_f32_2ch (gfloat * d1, const gdouble * s1, int n)
 /* orc_process_controlled_int32_1ch */
 #ifdef DISABLE_ORC
 void
-orc_process_controlled_int32_1ch (gint32 * d1, const gdouble * s1, int n)
+orc_process_controlled_int32_1ch (gint32 * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int n)
 {
   int i;
   orc_union32 *ORC_RESTRICT ptr0;
@@ -1490,7 +1520,8 @@ _backup_orc_process_controlled_int32_1ch (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_process_controlled_int32_1ch;
 void
-orc_process_controlled_int32_1ch (gint32 * d1, const gdouble * s1, int n)
+orc_process_controlled_int32_1ch (gint32 * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int n)
 {
   OrcExecutor _ex, *ex = &_ex;
   OrcProgram *p = _orc_program_orc_process_controlled_int32_1ch;
@@ -1511,7 +1542,8 @@ orc_process_controlled_int32_1ch (gint32 * d1, const gdouble * s1, int n)
 /* orc_process_controlled_int16_1ch */
 #ifdef DISABLE_ORC
 void
-orc_process_controlled_int16_1ch (gint16 * d1, const gdouble * s1, int n)
+orc_process_controlled_int16_1ch (gint16 * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int n)
 {
   int i;
   orc_union16 *ORC_RESTRICT ptr0;
@@ -1638,7 +1670,8 @@ _backup_orc_process_controlled_int16_1ch (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_process_controlled_int16_1ch;
 void
-orc_process_controlled_int16_1ch (gint16 * d1, const gdouble * s1, int n)
+orc_process_controlled_int16_1ch (gint16 * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int n)
 {
   OrcExecutor _ex, *ex = &_ex;
   OrcProgram *p = _orc_program_orc_process_controlled_int16_1ch;
@@ -1659,7 +1692,8 @@ orc_process_controlled_int16_1ch (gint16 * d1, const gdouble * s1, int n)
 /* orc_process_controlled_int16_2ch */
 #ifdef DISABLE_ORC
 void
-orc_process_controlled_int16_2ch (gint16 * d1, const gdouble * s1, int n)
+orc_process_controlled_int16_2ch (gint16 * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int n)
 {
   int i;
   orc_union32 *ORC_RESTRICT ptr0;
@@ -1832,7 +1866,8 @@ _backup_orc_process_controlled_int16_2ch (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_process_controlled_int16_2ch;
 void
-orc_process_controlled_int16_2ch (gint16 * d1, const gdouble * s1, int n)
+orc_process_controlled_int16_2ch (gint16 * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int n)
 {
   OrcExecutor _ex, *ex = &_ex;
   OrcProgram *p = _orc_program_orc_process_controlled_int16_2ch;
@@ -1853,7 +1888,8 @@ orc_process_controlled_int16_2ch (gint16 * d1, const gdouble * s1, int n)
 /* orc_process_controlled_int8_1ch */
 #ifdef DISABLE_ORC
 void
-orc_process_controlled_int8_1ch (gint8 * d1, const gdouble * s1, int n)
+orc_process_controlled_int8_1ch (gint8 * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int n)
 {
   int i;
   orc_int8 *ORC_RESTRICT ptr0;
@@ -1992,7 +2028,8 @@ _backup_orc_process_controlled_int8_1ch (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_process_controlled_int8_1ch;
 void
-orc_process_controlled_int8_1ch (gint8 * d1, const gdouble * s1, int n)
+orc_process_controlled_int8_1ch (gint8 * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int n)
 {
   OrcExecutor _ex, *ex = &_ex;
   OrcProgram *p = _orc_program_orc_process_controlled_int8_1ch;
@@ -2013,7 +2050,8 @@ orc_process_controlled_int8_1ch (gint8 * d1, const gdouble * s1, int n)
 /* orc_process_controlled_int8_2ch */
 #ifdef DISABLE_ORC
 void
-orc_process_controlled_int8_2ch (gint8 * d1, const gdouble * s1, int n)
+orc_process_controlled_int8_2ch (gint8 * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int n)
 {
   int i;
   orc_union16 *ORC_RESTRICT ptr0;
@@ -2202,7 +2240,8 @@ _backup_orc_process_controlled_int8_2ch (OrcExecutor * ORC_RESTRICT ex)
 
 static OrcProgram *_orc_program_orc_process_controlled_int8_2ch;
 void
-orc_process_controlled_int8_2ch (gint8 * d1, const gdouble * s1, int n)
+orc_process_controlled_int8_2ch (gint8 * ORC_RESTRICT d1,
+    const gdouble * ORC_RESTRICT s1, int n)
 {
   OrcExecutor _ex, *ex = &_ex;
   OrcProgram *p = _orc_program_orc_process_controlled_int8_2ch;
@@ -2227,7 +2266,6 @@ gst_volume_orc_init (void)
   {
     /* orc_scalarmultiply_f64_ns */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_scalarmultiply_f64_ns");
@@ -2238,14 +2276,13 @@ gst_volume_orc_init (void)
     orc_program_append_2 (p, "muld", 0, ORC_VAR_D1, ORC_VAR_D1, ORC_VAR_P1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_scalarmultiply_f64_ns = p;
   }
   {
     /* orc_scalarmultiply_f32_ns */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_scalarmultiply_f32_ns");
@@ -2256,14 +2293,13 @@ gst_volume_orc_init (void)
     orc_program_append_2 (p, "mulf", 0, ORC_VAR_D1, ORC_VAR_D1, ORC_VAR_P1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_scalarmultiply_f32_ns = p;
   }
   {
     /* orc_process_int32 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_process_int32");
@@ -2280,14 +2316,13 @@ gst_volume_orc_init (void)
     orc_program_append_2 (p, "convql", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_process_int32 = p;
   }
   {
     /* orc_process_int32_clamp */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_process_int32_clamp");
@@ -2304,14 +2339,13 @@ gst_volume_orc_init (void)
     orc_program_append_2 (p, "convsssql", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_process_int32_clamp = p;
   }
   {
     /* orc_process_int16 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_process_int16");
@@ -2328,14 +2362,13 @@ gst_volume_orc_init (void)
     orc_program_append_2 (p, "convlw", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_process_int16 = p;
   }
   {
     /* orc_process_int16_clamp */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_process_int16_clamp");
@@ -2352,14 +2385,13 @@ gst_volume_orc_init (void)
     orc_program_append_2 (p, "convssslw", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_process_int16_clamp = p;
   }
   {
     /* orc_process_int8 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_process_int8");
@@ -2376,14 +2408,13 @@ gst_volume_orc_init (void)
     orc_program_append_2 (p, "convwb", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_process_int8 = p;
   }
   {
     /* orc_process_int8_clamp */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_process_int8_clamp");
@@ -2400,14 +2431,13 @@ gst_volume_orc_init (void)
     orc_program_append_2 (p, "convssswb", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_process_int8_clamp = p;
   }
   {
     /* orc_memset_f64 */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_memset_f64");
@@ -2418,14 +2448,13 @@ gst_volume_orc_init (void)
     orc_program_append_2 (p, "copyq", 0, ORC_VAR_D1, ORC_VAR_P1, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_memset_f64 = p;
   }
   {
     /* orc_prepare_volumes */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_prepare_volumes");
@@ -2442,14 +2471,13 @@ gst_volume_orc_init (void)
     orc_program_append_2 (p, "muld", 0, ORC_VAR_D1, ORC_VAR_D1, ORC_VAR_T1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_prepare_volumes = p;
   }
   {
     /* orc_process_controlled_f64_1ch */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_process_controlled_f64_1ch");
@@ -2460,14 +2488,13 @@ gst_volume_orc_init (void)
     orc_program_append_2 (p, "muld", 0, ORC_VAR_D1, ORC_VAR_D1, ORC_VAR_S1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_process_controlled_f64_1ch = p;
   }
   {
     /* orc_process_controlled_f32_1ch */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_process_controlled_f32_1ch");
@@ -2481,14 +2508,13 @@ gst_volume_orc_init (void)
     orc_program_append_2 (p, "mulf", 0, ORC_VAR_D1, ORC_VAR_D1, ORC_VAR_T1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_process_controlled_f32_1ch = p;
   }
   {
     /* orc_process_controlled_f32_2ch */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_process_controlled_f32_2ch");
@@ -2505,14 +2531,13 @@ gst_volume_orc_init (void)
     orc_program_append_2 (p, "mulf", 1, ORC_VAR_D1, ORC_VAR_D1, ORC_VAR_T2,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_process_controlled_f32_2ch = p;
   }
   {
     /* orc_process_controlled_int32_1ch */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_process_controlled_int32_1ch");
@@ -2529,14 +2554,13 @@ gst_volume_orc_init (void)
     orc_program_append_2 (p, "convdl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_process_controlled_int32_1ch = p;
   }
   {
     /* orc_process_controlled_int16_1ch */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_process_controlled_int16_1ch");
@@ -2560,14 +2584,13 @@ gst_volume_orc_init (void)
     orc_program_append_2 (p, "convssslw", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_process_controlled_int16_1ch = p;
   }
   {
     /* orc_process_controlled_int16_2ch */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_process_controlled_int16_2ch");
@@ -2594,14 +2617,13 @@ gst_volume_orc_init (void)
     orc_program_append_2 (p, "convssslw", 1, ORC_VAR_D1, ORC_VAR_T3, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_process_controlled_int16_2ch = p;
   }
   {
     /* orc_process_controlled_int8_1ch */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_process_controlled_int8_1ch");
@@ -2630,14 +2652,13 @@ gst_volume_orc_init (void)
     orc_program_append_2 (p, "convssswb", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_process_controlled_int8_1ch = p;
   }
   {
     /* orc_process_controlled_int8_2ch */
     OrcProgram *p;
-    OrcCompileResult result;
 
     p = orc_program_new ();
     orc_program_set_name (p, "orc_process_controlled_int8_2ch");
@@ -2668,7 +2689,7 @@ gst_volume_orc_init (void)
     orc_program_append_2 (p, "convssswb", 1, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
         ORC_VAR_D1);
 
-    result = orc_program_compile (p);
+    orc_program_compile (p);
 
     _orc_program_orc_process_controlled_int8_2ch = p;
   }
index a3a6aa0..45411b8 100644 (file)
@@ -37,6 +37,7 @@ typedef unsigned __int16 orc_uint16;
 typedef unsigned __int32 orc_uint32;
 typedef unsigned __int64 orc_uint64;
 #define ORC_UINT64_C(x) (x##Ui64)
+#define inline __inline
 #else
 #include <limits.h>
 typedef signed char orc_int8;
@@ -59,24 +60,33 @@ typedef union { orc_int16 i; orc_int8 x2[2]; } orc_union16;
 typedef union { orc_int32 i; float f; orc_int16 x2[2]; orc_int8 x4[4]; } orc_union32;
 typedef union { orc_int64 i; double f; orc_int32 x2[2]; float x2f[2]; orc_int16 x4[4]; } orc_union64;
 #endif
-void orc_scalarmultiply_f64_ns (double * d1, double p1, int n);
-void orc_scalarmultiply_f32_ns (float * d1, float p1, int n);
-void orc_process_int32 (gint32 * d1, int p1, int n);
-void orc_process_int32_clamp (gint32 * d1, int p1, int n);
-void orc_process_int16 (gint16 * d1, int p1, int n);
-void orc_process_int16_clamp (gint16 * d1, int p1, int n);
-void orc_process_int8 (gint8 * d1, int p1, int n);
-void orc_process_int8_clamp (gint8 * d1, int p1, int n);
-void orc_memset_f64 (gdouble * d1, double p1, int n);
-void orc_prepare_volumes (gdouble * d1, const gboolean * s1, int n);
-void orc_process_controlled_f64_1ch (gdouble * d1, const gdouble * s1, int n);
-void orc_process_controlled_f32_1ch (gfloat * d1, const gdouble * s1, int n);
-void orc_process_controlled_f32_2ch (gfloat * d1, const gdouble * s1, int n);
-void orc_process_controlled_int32_1ch (gint32 * d1, const gdouble * s1, int n);
-void orc_process_controlled_int16_1ch (gint16 * d1, const gdouble * s1, int n);
-void orc_process_controlled_int16_2ch (gint16 * d1, const gdouble * s1, int n);
-void orc_process_controlled_int8_1ch (gint8 * d1, const gdouble * s1, int n);
-void orc_process_controlled_int8_2ch (gint8 * d1, const gdouble * s1, int n);
+#ifndef ORC_RESTRICT
+#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
+#define ORC_RESTRICT restrict
+#elif defined(__GNUC__) && __GNUC__ >= 4
+#define ORC_RESTRICT __restrict__
+#else
+#define ORC_RESTRICT
+#endif
+#endif
+void orc_scalarmultiply_f64_ns (double * ORC_RESTRICT d1, double p1, int n);
+void orc_scalarmultiply_f32_ns (float * ORC_RESTRICT d1, float p1, int n);
+void orc_process_int32 (gint32 * ORC_RESTRICT d1, int p1, int n);
+void orc_process_int32_clamp (gint32 * ORC_RESTRICT d1, int p1, int n);
+void orc_process_int16 (gint16 * ORC_RESTRICT d1, int p1, int n);
+void orc_process_int16_clamp (gint16 * ORC_RESTRICT d1, int p1, int n);
+void orc_process_int8 (gint8 * ORC_RESTRICT d1, int p1, int n);
+void orc_process_int8_clamp (gint8 * ORC_RESTRICT d1, int p1, int n);
+void orc_memset_f64 (gdouble * ORC_RESTRICT d1, double p1, int n);
+void orc_prepare_volumes (gdouble * ORC_RESTRICT d1, const gboolean * ORC_RESTRICT s1, int n);
+void orc_process_controlled_f64_1ch (gdouble * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int n);
+void orc_process_controlled_f32_1ch (gfloat * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int n);
+void orc_process_controlled_f32_2ch (gfloat * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int n);
+void orc_process_controlled_int32_1ch (gint32 * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int n);
+void orc_process_controlled_int16_1ch (gint16 * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int n);
+void orc_process_controlled_int16_2ch (gint16 * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int n);
+void orc_process_controlled_int8_1ch (gint8 * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int n);
+void orc_process_controlled_int8_2ch (gint8 * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int n);
 
 #ifdef __cplusplus
 }