mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-16 03:50:05 +01:00
Add av_ prefix to bswap macros
Originally committed as revision 24170 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -25,15 +25,15 @@
|
||||
|
||||
#if HAVE_INLINE_ASM
|
||||
|
||||
#define bswap_16 bswap_16
|
||||
static av_always_inline av_const uint16_t bswap_16(uint16_t x)
|
||||
#define av_bswap16 av_bswap16
|
||||
static av_always_inline av_const uint16_t av_bswap16(uint16_t x)
|
||||
{
|
||||
__asm__ ("swap.bh %0" : "+r"(x));
|
||||
return x;
|
||||
}
|
||||
|
||||
#define bswap_32 bswap_32
|
||||
static av_always_inline av_const uint32_t bswap_32(uint32_t x)
|
||||
#define av_bswap32 av_bswap32
|
||||
static av_always_inline av_const uint32_t av_bswap32(uint32_t x)
|
||||
{
|
||||
__asm__ ("swap.b %0" : "+r"(x));
|
||||
return x;
|
||||
|
||||
@@ -106,8 +106,8 @@ static av_always_inline void AV_WB32(void *p, uint32_t v)
|
||||
}
|
||||
|
||||
/* These two would be defined by generic code, but we need them sooner. */
|
||||
#define AV_RL32(p) bswap_32(AV_RB32(p))
|
||||
#define AV_WL32(p, v) AV_WB32(p, bswap_32(v))
|
||||
#define AV_RL32(p) av_bswap32(AV_RB32(p))
|
||||
#define AV_WL32(p, v) AV_WB32(p, av_bswap32(v))
|
||||
|
||||
#define AV_WB64 AV_WB64
|
||||
static av_always_inline void AV_WB64(void *p, uint64_t v)
|
||||
|
||||
Reference in New Issue
Block a user