mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
audio: prefix orc_* functions with audio_orc_*
To avoid potential conflicts in other modules when statically linking
This commit is contained in:
parent
aefd1a5d6d
commit
5ff002b47a
4 changed files with 476 additions and 448 deletions
|
@ -28,83 +28,83 @@
|
|||
#include "gstaudiopack.h"
|
||||
|
||||
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
|
||||
# define orc_unpack_s16le orc_unpack_s16
|
||||
# define orc_unpack_s16be orc_unpack_s16_swap
|
||||
# define orc_unpack_u16le orc_unpack_u16
|
||||
# define orc_unpack_u16be orc_unpack_u16_swap
|
||||
# define orc_unpack_s24_32le orc_unpack_s24_32
|
||||
# define orc_unpack_s24_32be orc_unpack_s24_32_swap
|
||||
# define orc_unpack_u24_32le orc_unpack_u24_32
|
||||
# define orc_unpack_u24_32be orc_unpack_u24_32_swap
|
||||
# define orc_unpack_s32le orc_unpack_s32
|
||||
# define orc_unpack_s32be orc_unpack_s32_swap
|
||||
# define orc_unpack_u32le orc_unpack_u32
|
||||
# define orc_unpack_u32be orc_unpack_u32_swap
|
||||
# define orc_unpack_f32le orc_unpack_f32
|
||||
# define orc_unpack_f32be orc_unpack_f32_swap
|
||||
# define orc_unpack_f64le orc_unpack_f64
|
||||
# define orc_unpack_f64be orc_unpack_f64_swap
|
||||
# define orc_pack_s16le orc_pack_s16
|
||||
# define orc_pack_s16be orc_pack_s16_swap
|
||||
# define orc_pack_u16le orc_pack_u16
|
||||
# define orc_pack_u16be orc_pack_u16_swap
|
||||
# define orc_pack_s24_32le orc_pack_s24_32
|
||||
# define orc_pack_s24_32be orc_pack_s24_32_swap
|
||||
# define orc_pack_u24_32le orc_pack_u24_32
|
||||
# define orc_pack_u24_32be orc_pack_u24_32_swap
|
||||
# define orc_pack_s32le orc_pack_s32
|
||||
# define orc_pack_s32be orc_pack_s32_swap
|
||||
# define orc_pack_u32le orc_pack_u32
|
||||
# define orc_pack_u32be orc_pack_u32_swap
|
||||
# define orc_pack_f32le orc_pack_f32
|
||||
# define orc_pack_f32be orc_pack_f32_swap
|
||||
# define orc_pack_f64le orc_pack_f64
|
||||
# define orc_pack_f64be orc_pack_f64_swap
|
||||
# define audio_orc_unpack_s16le audio_orc_unpack_s16
|
||||
# define audio_orc_unpack_s16be audio_orc_unpack_s16_swap
|
||||
# define audio_orc_unpack_u16le audio_orc_unpack_u16
|
||||
# define audio_orc_unpack_u16be audio_orc_unpack_u16_swap
|
||||
# define audio_orc_unpack_s24_32le audio_orc_unpack_s24_32
|
||||
# define audio_orc_unpack_s24_32be audio_orc_unpack_s24_32_swap
|
||||
# define audio_orc_unpack_u24_32le audio_orc_unpack_u24_32
|
||||
# define audio_orc_unpack_u24_32be audio_orc_unpack_u24_32_swap
|
||||
# define audio_orc_unpack_s32le audio_orc_unpack_s32
|
||||
# define audio_orc_unpack_s32be audio_orc_unpack_s32_swap
|
||||
# define audio_orc_unpack_u32le audio_orc_unpack_u32
|
||||
# define audio_orc_unpack_u32be audio_orc_unpack_u32_swap
|
||||
# define audio_orc_unpack_f32le audio_orc_unpack_f32
|
||||
# define audio_orc_unpack_f32be audio_orc_unpack_f32_swap
|
||||
# define audio_orc_unpack_f64le audio_orc_unpack_f64
|
||||
# define audio_orc_unpack_f64be audio_orc_unpack_f64_swap
|
||||
# define audio_orc_pack_s16le audio_orc_pack_s16
|
||||
# define audio_orc_pack_s16be audio_orc_pack_s16_swap
|
||||
# define audio_orc_pack_u16le audio_orc_pack_u16
|
||||
# define audio_orc_pack_u16be audio_orc_pack_u16_swap
|
||||
# define audio_orc_pack_s24_32le audio_orc_pack_s24_32
|
||||
# define audio_orc_pack_s24_32be audio_orc_pack_s24_32_swap
|
||||
# define audio_orc_pack_u24_32le audio_orc_pack_u24_32
|
||||
# define audio_orc_pack_u24_32be audio_orc_pack_u24_32_swap
|
||||
# define audio_orc_pack_s32le audio_orc_pack_s32
|
||||
# define audio_orc_pack_s32be audio_orc_pack_s32_swap
|
||||
# define audio_orc_pack_u32le audio_orc_pack_u32
|
||||
# define audio_orc_pack_u32be audio_orc_pack_u32_swap
|
||||
# define audio_orc_pack_f32le audio_orc_pack_f32
|
||||
# define audio_orc_pack_f32be audio_orc_pack_f32_swap
|
||||
# define audio_orc_pack_f64le audio_orc_pack_f64
|
||||
# define audio_orc_pack_f64be audio_orc_pack_f64_swap
|
||||
#else
|
||||
# define orc_unpack_s16le orc_unpack_s16_swap
|
||||
# define orc_unpack_s16be orc_unpack_s16
|
||||
# define orc_unpack_u16le orc_unpack_u16_swap
|
||||
# define orc_unpack_u16be orc_unpack_u16
|
||||
# define orc_unpack_s24_32le orc_unpack_s24_32_swap
|
||||
# define orc_unpack_s24_32be orc_unpack_s24_32
|
||||
# define orc_unpack_u24_32le orc_unpack_u24_32_swap
|
||||
# define orc_unpack_u24_32be orc_unpack_u24_32
|
||||
# define orc_unpack_s32le orc_unpack_s32_swap
|
||||
# define orc_unpack_s32be orc_unpack_s32
|
||||
# define orc_unpack_u32le orc_unpack_u32_swap
|
||||
# define orc_unpack_u32be orc_unpack_u32
|
||||
# define orc_unpack_f32le orc_unpack_f32_swap
|
||||
# define orc_unpack_f32be orc_unpack_f32
|
||||
# define orc_unpack_f64le orc_unpack_f64_swap
|
||||
# define orc_unpack_f64be orc_unpack_f64
|
||||
# define orc_pack_s16le orc_pack_s16_swap
|
||||
# define orc_pack_s16be orc_pack_s16
|
||||
# define orc_pack_u16le orc_pack_u16_swap
|
||||
# define orc_pack_u16be orc_pack_u16
|
||||
# define orc_pack_s24_32le orc_pack_s24_32_swap
|
||||
# define orc_pack_s24_32be orc_pack_s24_32
|
||||
# define orc_pack_u24_32le orc_pack_u24_32_swap
|
||||
# define orc_pack_u24_32be orc_pack_u24_32
|
||||
# define orc_pack_s32le orc_pack_s32_swap
|
||||
# define orc_pack_s32be orc_pack_s32
|
||||
# define orc_pack_u32le orc_pack_u32_swap
|
||||
# define orc_pack_u32be orc_pack_u32
|
||||
# define orc_pack_f32le orc_pack_f32_swap
|
||||
# define orc_pack_f32be orc_pack_f32
|
||||
# define orc_pack_f64le orc_pack_f64_swap
|
||||
# define orc_pack_f64be orc_pack_f64
|
||||
# define audio_orc_unpack_s16le audio_orc_unpack_s16_swap
|
||||
# define audio_orc_unpack_s16be audio_orc_unpack_s16
|
||||
# define audio_orc_unpack_u16le audio_orc_unpack_u16_swap
|
||||
# define audio_orc_unpack_u16be audio_orc_unpack_u16
|
||||
# define audio_orc_unpack_s24_32le audio_orc_unpack_s24_32_swap
|
||||
# define audio_orc_unpack_s24_32be audio_orc_unpack_s24_32
|
||||
# define audio_orc_unpack_u24_32le audio_orc_unpack_u24_32_swap
|
||||
# define audio_orc_unpack_u24_32be audio_orc_unpack_u24_32
|
||||
# define audio_orc_unpack_s32le audio_orc_unpack_s32_swap
|
||||
# define audio_orc_unpack_s32be audio_orc_unpack_s32
|
||||
# define audio_orc_unpack_u32le audio_orc_unpack_u32_swap
|
||||
# define audio_orc_unpack_u32be audio_orc_unpack_u32
|
||||
# define audio_orc_unpack_f32le audio_orc_unpack_f32_swap
|
||||
# define audio_orc_unpack_f32be audio_orc_unpack_f32
|
||||
# define audio_orc_unpack_f64le audio_orc_unpack_f64_swap
|
||||
# define audio_orc_unpack_f64be audio_orc_unpack_f64
|
||||
# define audio_orc_pack_s16le audio_orc_pack_s16_swap
|
||||
# define audio_orc_pack_s16be audio_orc_pack_s16
|
||||
# define audio_orc_pack_u16le audio_orc_pack_u16_swap
|
||||
# define audio_orc_pack_u16be audio_orc_pack_u16
|
||||
# define audio_orc_pack_s24_32le audio_orc_pack_s24_32_swap
|
||||
# define audio_orc_pack_s24_32be audio_orc_pack_s24_32
|
||||
# define audio_orc_pack_u24_32le audio_orc_pack_u24_32_swap
|
||||
# define audio_orc_pack_u24_32be audio_orc_pack_u24_32
|
||||
# define audio_orc_pack_s32le audio_orc_pack_s32_swap
|
||||
# define audio_orc_pack_s32be audio_orc_pack_s32
|
||||
# define audio_orc_pack_u32le audio_orc_pack_u32_swap
|
||||
# define audio_orc_pack_u32be audio_orc_pack_u32
|
||||
# define audio_orc_pack_f32le audio_orc_pack_f32_swap
|
||||
# define audio_orc_pack_f32be audio_orc_pack_f32
|
||||
# define audio_orc_pack_f64le audio_orc_pack_f64_swap
|
||||
# define audio_orc_pack_f64be audio_orc_pack_f64
|
||||
#endif
|
||||
|
||||
#define MAKE_ORC_PACK_UNPACK(fmt) \
|
||||
static void unpack_ ##fmt (const GstAudioFormatInfo *info, \
|
||||
GstAudioPackFlags flags, gpointer dest, \
|
||||
const gpointer data, gint length) { \
|
||||
orc_unpack_ ##fmt (dest, data, length); \
|
||||
audio_orc_unpack_ ##fmt (dest, data, length); \
|
||||
} \
|
||||
static void pack_ ##fmt (const GstAudioFormatInfo *info, \
|
||||
GstAudioPackFlags flags, const gpointer src, \
|
||||
gpointer data, gint length) { \
|
||||
orc_pack_ ##fmt (data, src, length); \
|
||||
audio_orc_pack_ ##fmt (data, src, length); \
|
||||
}
|
||||
|
||||
#define PACK_S8 GST_AUDIO_FORMAT_S32, unpack_s8, pack_s8
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -67,42 +67,42 @@ typedef union { orc_int64 i; double f; orc_int32 x2[2]; float x2f[2]; orc_int16
|
|||
#define ORC_RESTRICT
|
||||
#endif
|
||||
#endif
|
||||
void orc_unpack_u8 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void orc_unpack_s8 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void orc_unpack_u16 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void orc_unpack_s16 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void orc_unpack_u16_swap (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void orc_unpack_s16_swap (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void orc_unpack_u24_32 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void orc_unpack_s24_32 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void orc_unpack_u24_32_swap (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void orc_unpack_s24_32_swap (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void orc_unpack_u32 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void orc_unpack_u32_swap (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void orc_unpack_s32 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void orc_unpack_s32_swap (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void orc_unpack_f32 (gdouble * ORC_RESTRICT d1, const gfloat * ORC_RESTRICT s1, int n);
|
||||
void orc_unpack_f32_swap (gdouble * ORC_RESTRICT d1, const gfloat * ORC_RESTRICT s1, int n);
|
||||
void orc_unpack_f64 (gdouble * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int n);
|
||||
void orc_unpack_f64_swap (gdouble * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int n);
|
||||
void orc_pack_u8 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n);
|
||||
void orc_pack_s8 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n);
|
||||
void orc_pack_u16 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n);
|
||||
void orc_pack_s16 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n);
|
||||
void orc_pack_u16_swap (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n);
|
||||
void orc_pack_s16_swap (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n);
|
||||
void orc_pack_u24_32 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n);
|
||||
void orc_pack_s24_32 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n);
|
||||
void orc_pack_u24_32_swap (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n);
|
||||
void orc_pack_s24_32_swap (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n);
|
||||
void orc_pack_u32 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n);
|
||||
void orc_pack_s32 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n);
|
||||
void orc_pack_u32_swap (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n);
|
||||
void orc_pack_s32_swap (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n);
|
||||
void orc_pack_f32 (gfloat * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int n);
|
||||
void orc_pack_f32_swap (gfloat * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int n);
|
||||
void orc_pack_f64 (gdouble * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int n);
|
||||
void orc_pack_f64_swap (gdouble * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int n);
|
||||
void audio_orc_unpack_u8 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void audio_orc_unpack_s8 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void audio_orc_unpack_u16 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void audio_orc_unpack_s16 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void audio_orc_unpack_u16_swap (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void audio_orc_unpack_s16_swap (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void audio_orc_unpack_u24_32 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void audio_orc_unpack_s24_32 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void audio_orc_unpack_u24_32_swap (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void audio_orc_unpack_s24_32_swap (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void audio_orc_unpack_u32 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void audio_orc_unpack_u32_swap (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void audio_orc_unpack_s32 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void audio_orc_unpack_s32_swap (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void audio_orc_unpack_f32 (gdouble * ORC_RESTRICT d1, const gfloat * ORC_RESTRICT s1, int n);
|
||||
void audio_orc_unpack_f32_swap (gdouble * ORC_RESTRICT d1, const gfloat * ORC_RESTRICT s1, int n);
|
||||
void audio_orc_unpack_f64 (gdouble * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int n);
|
||||
void audio_orc_unpack_f64_swap (gdouble * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int n);
|
||||
void audio_orc_pack_u8 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n);
|
||||
void audio_orc_pack_s8 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n);
|
||||
void audio_orc_pack_u16 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n);
|
||||
void audio_orc_pack_s16 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n);
|
||||
void audio_orc_pack_u16_swap (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n);
|
||||
void audio_orc_pack_s16_swap (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n);
|
||||
void audio_orc_pack_u24_32 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n);
|
||||
void audio_orc_pack_s24_32 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n);
|
||||
void audio_orc_pack_u24_32_swap (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n);
|
||||
void audio_orc_pack_s24_32_swap (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n);
|
||||
void audio_orc_pack_u32 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n);
|
||||
void audio_orc_pack_s32 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n);
|
||||
void audio_orc_pack_u32_swap (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n);
|
||||
void audio_orc_pack_s32_swap (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n);
|
||||
void audio_orc_pack_f32 (gfloat * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int n);
|
||||
void audio_orc_pack_f32_swap (gfloat * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int n);
|
||||
void audio_orc_pack_f64 (gdouble * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int n);
|
||||
void audio_orc_pack_f64_swap (gdouble * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int n);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
.function orc_unpack_u8
|
||||
.function audio_orc_unpack_u8
|
||||
.dest 4 d1 gint32
|
||||
.source 1 s1 guint8
|
||||
.const 4 c1 0x80000000
|
||||
|
@ -13,7 +13,7 @@ shll t3, t3, c2
|
|||
xorl d1, t3, c1
|
||||
|
||||
|
||||
.function orc_unpack_s8
|
||||
.function audio_orc_unpack_s8
|
||||
.dest 4 d1 gint32
|
||||
.source 1 s1 guint8
|
||||
.const 4 c1 24
|
||||
|
@ -25,7 +25,7 @@ convuwl t3, t2
|
|||
shll d1, t3, c1
|
||||
|
||||
|
||||
.function orc_unpack_u16
|
||||
.function audio_orc_unpack_u16
|
||||
.dest 4 d1 gint32
|
||||
.source 2 s1 guint8
|
||||
.const 4 c2 16
|
||||
|
@ -37,7 +37,7 @@ shll t2, t2, c2
|
|||
xorl d1, t2, c1
|
||||
|
||||
|
||||
.function orc_unpack_s16
|
||||
.function audio_orc_unpack_s16
|
||||
.dest 4 d1 gint32
|
||||
.source 2 s1 guint8
|
||||
.const 4 c1 16
|
||||
|
@ -47,7 +47,7 @@ convuwl t2, s1
|
|||
shll d1, t2, c1
|
||||
|
||||
|
||||
.function orc_unpack_u16_swap
|
||||
.function audio_orc_unpack_u16_swap
|
||||
.dest 4 d1 gint32
|
||||
.source 2 s1 guint8
|
||||
.const 4 c2 16
|
||||
|
@ -61,7 +61,7 @@ shll t2, t2, c2
|
|||
xorl d1, t2, c1
|
||||
|
||||
|
||||
.function orc_unpack_s16_swap
|
||||
.function audio_orc_unpack_s16_swap
|
||||
.dest 4 d1 gint32
|
||||
.source 2 s1 guint8
|
||||
.const 4 c1 16
|
||||
|
@ -72,7 +72,7 @@ swapw t1, s1
|
|||
convuwl t2, t1
|
||||
shll d1, t2, c1
|
||||
|
||||
.function orc_unpack_u24_32
|
||||
.function audio_orc_unpack_u24_32
|
||||
.dest 4 d1 gint32
|
||||
.source 4 s1 guint8
|
||||
.const 4 c2 8
|
||||
|
@ -83,7 +83,7 @@ shll t1, s1, c2
|
|||
xorl d1, t1, c1
|
||||
|
||||
|
||||
.function orc_unpack_s24_32
|
||||
.function audio_orc_unpack_s24_32
|
||||
.dest 4 d1 gint32
|
||||
.source 4 s1 guint8
|
||||
.const 4 c1 8
|
||||
|
@ -91,7 +91,7 @@ xorl d1, t1, c1
|
|||
shll d1, s1, c1
|
||||
|
||||
|
||||
.function orc_unpack_u24_32_swap
|
||||
.function audio_orc_unpack_u24_32_swap
|
||||
.dest 4 d1 gint32
|
||||
.source 4 s1 guint8
|
||||
.const 4 c2 8
|
||||
|
@ -103,7 +103,7 @@ shll t1, t1, c2
|
|||
xorl d1, t1, c1
|
||||
|
||||
|
||||
.function orc_unpack_s24_32_swap
|
||||
.function audio_orc_unpack_s24_32_swap
|
||||
.dest 4 d1 gint32
|
||||
.source 4 s1 guint8
|
||||
.const 4 c1 8
|
||||
|
@ -113,7 +113,7 @@ swapl t1, s1
|
|||
shll d1, t1, c1
|
||||
|
||||
|
||||
.function orc_unpack_u32
|
||||
.function audio_orc_unpack_u32
|
||||
.dest 4 d1 gint32
|
||||
.source 4 s1 guint8
|
||||
.const 4 c1 0x80000000
|
||||
|
@ -121,7 +121,7 @@ shll d1, t1, c1
|
|||
xorl d1, s1, c1
|
||||
|
||||
|
||||
.function orc_unpack_u32_swap
|
||||
.function audio_orc_unpack_u32_swap
|
||||
.dest 4 d1 gint32
|
||||
.source 4 s1 guint8
|
||||
.const 4 c1 0x80000000
|
||||
|
@ -130,25 +130,25 @@ xorl d1, s1, c1
|
|||
swapl t1, s1
|
||||
xorl d1, t1, c1
|
||||
|
||||
.function orc_unpack_s32
|
||||
.function audio_orc_unpack_s32
|
||||
.dest 4 d1 gint32
|
||||
.source 4 s1 guint8
|
||||
|
||||
copyl d1, s1
|
||||
|
||||
.function orc_unpack_s32_swap
|
||||
.function audio_orc_unpack_s32_swap
|
||||
.dest 4 d1 gint32
|
||||
.source 4 s1 guint8
|
||||
|
||||
swapl d1, s1
|
||||
|
||||
.function orc_unpack_f32
|
||||
.function audio_orc_unpack_f32
|
||||
.dest 8 d1 gdouble
|
||||
.source 4 s1 gfloat
|
||||
|
||||
convfd d1, s1
|
||||
|
||||
.function orc_unpack_f32_swap
|
||||
.function audio_orc_unpack_f32_swap
|
||||
.dest 8 d1 gdouble
|
||||
.source 4 s1 gfloat
|
||||
.temp 4 t1
|
||||
|
@ -156,19 +156,19 @@ convfd d1, s1
|
|||
swapl t1, s1
|
||||
convfd d1, t1
|
||||
|
||||
.function orc_unpack_f64
|
||||
.function audio_orc_unpack_f64
|
||||
.dest 8 d1 gdouble
|
||||
.source 8 s1 gdouble
|
||||
|
||||
copyq d1, s1
|
||||
|
||||
.function orc_unpack_f64_swap
|
||||
.function audio_orc_unpack_f64_swap
|
||||
.dest 8 d1 gdouble
|
||||
.source 8 s1 gdouble
|
||||
|
||||
swapq d1, s1
|
||||
|
||||
.function orc_pack_u8
|
||||
.function audio_orc_pack_u8
|
||||
.dest 1 d1 guint8
|
||||
.source 4 s1 gint32
|
||||
.const 4 c2 24
|
||||
|
@ -182,7 +182,7 @@ convlw t2, t1
|
|||
convwb d1, t2
|
||||
|
||||
|
||||
.function orc_pack_s8
|
||||
.function audio_orc_pack_s8
|
||||
.dest 1 d1 guint8
|
||||
.source 4 s1 gint32
|
||||
.const 4 c1 24
|
||||
|
@ -194,7 +194,7 @@ convlw t2, t1
|
|||
convwb d1, t2
|
||||
|
||||
|
||||
.function orc_pack_u16
|
||||
.function audio_orc_pack_u16
|
||||
.dest 2 d1 guint8
|
||||
.source 4 s1 gint32
|
||||
.const 4 c2 16
|
||||
|
@ -206,7 +206,7 @@ shrul t1, t1, c2
|
|||
convlw d1, t1
|
||||
|
||||
|
||||
.function orc_pack_s16
|
||||
.function audio_orc_pack_s16
|
||||
.dest 2 d1 guint8
|
||||
.source 4 s1 gint32
|
||||
.const 4 c1 16
|
||||
|
@ -216,7 +216,7 @@ shrsl t1, s1, c1
|
|||
convlw d1, t1
|
||||
|
||||
|
||||
.function orc_pack_u16_swap
|
||||
.function audio_orc_pack_u16_swap
|
||||
.dest 2 d1 guint8
|
||||
.source 4 s1 gint32
|
||||
.const 4 c1 0x80000000
|
||||
|
@ -230,7 +230,7 @@ convlw t2, t1
|
|||
swapw d1, t2
|
||||
|
||||
|
||||
.function orc_pack_s16_swap
|
||||
.function audio_orc_pack_s16_swap
|
||||
.dest 2 d1 guint8
|
||||
.source 4 s1 gint32
|
||||
.const 4 c1 16
|
||||
|
@ -241,7 +241,7 @@ shrsl t1, s1, c1
|
|||
convlw t2, t1
|
||||
swapw d1, t2
|
||||
|
||||
.function orc_pack_u24_32
|
||||
.function audio_orc_pack_u24_32
|
||||
.dest 4 d1 guint8
|
||||
.source 4 s1 gint32
|
||||
.const 4 c1 0x80000000
|
||||
|
@ -252,7 +252,7 @@ xorl t1, s1, c1
|
|||
shrul d1, t1, c2
|
||||
|
||||
|
||||
.function orc_pack_s24_32
|
||||
.function audio_orc_pack_s24_32
|
||||
.dest 4 d1 guint8
|
||||
.source 4 s1 gint32
|
||||
.const 4 c1 8
|
||||
|
@ -260,7 +260,7 @@ shrul d1, t1, c2
|
|||
shrsl d1, s1, c1
|
||||
|
||||
|
||||
.function orc_pack_u24_32_swap
|
||||
.function audio_orc_pack_u24_32_swap
|
||||
.dest 4 d1 guint8
|
||||
.source 4 s1 gint32
|
||||
.const 4 c1 0x80000000
|
||||
|
@ -272,7 +272,7 @@ shrul t1, t1, c2
|
|||
swapl d1, t1
|
||||
|
||||
|
||||
.function orc_pack_s24_32_swap
|
||||
.function audio_orc_pack_s24_32_swap
|
||||
.dest 4 d1 guint8
|
||||
.source 4 s1 gint32
|
||||
.const 4 c1 8
|
||||
|
@ -282,7 +282,7 @@ shrsl t1, s1, c1
|
|||
swapl d1, t1
|
||||
|
||||
|
||||
.function orc_pack_u32
|
||||
.function audio_orc_pack_u32
|
||||
.dest 4 d1 guint8
|
||||
.source 4 s1 gint32
|
||||
.const 4 c1 0x80000000
|
||||
|
@ -290,14 +290,14 @@ swapl d1, t1
|
|||
xorl d1, s1, c1
|
||||
|
||||
|
||||
.function orc_pack_s32
|
||||
.function audio_orc_pack_s32
|
||||
.dest 4 d1 guint8
|
||||
.source 4 s1 gint32
|
||||
|
||||
copyl d1, s1
|
||||
|
||||
|
||||
.function orc_pack_u32_swap
|
||||
.function audio_orc_pack_u32_swap
|
||||
.dest 4 d1 guint8
|
||||
.source 4 s1 gint32
|
||||
.const 4 c1 0x80000000
|
||||
|
@ -305,19 +305,19 @@ copyl d1, s1
|
|||
xorl d1, s1, c1
|
||||
|
||||
|
||||
.function orc_pack_s32_swap
|
||||
.function audio_orc_pack_s32_swap
|
||||
.dest 4 d1 guint8
|
||||
.source 4 s1 gint32
|
||||
|
||||
swapl d1, s1
|
||||
|
||||
.function orc_pack_f32
|
||||
.function audio_orc_pack_f32
|
||||
.dest 4 d1 gfloat
|
||||
.source 8 s1 gdouble
|
||||
|
||||
convdf d1, s1
|
||||
|
||||
.function orc_pack_f32_swap
|
||||
.function audio_orc_pack_f32_swap
|
||||
.dest 4 d1 gfloat
|
||||
.source 8 s1 gdouble
|
||||
.temp 4 t1
|
||||
|
@ -325,13 +325,13 @@ convdf d1, s1
|
|||
convdf t1, s1
|
||||
swapl d1, t1
|
||||
|
||||
.function orc_pack_f64
|
||||
.function audio_orc_pack_f64
|
||||
.dest 8 d1 gdouble
|
||||
.source 8 s1 gdouble
|
||||
|
||||
copyq d1, s1
|
||||
|
||||
.function orc_pack_f64_swap
|
||||
.function audio_orc_pack_f64_swap
|
||||
.dest 8 d1 gdouble
|
||||
.source 8 s1 gdouble
|
||||
|
||||
|
|
Loading…
Reference in a new issue