Add av_ prefix to bswap macros

Originally committed as revision 24170 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Måns Rullgård
2010-07-10 22:12:30 +00:00
parent e6b22522c9
commit 8fc0162ac4
51 changed files with 175 additions and 175 deletions

View File

@@ -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;

View File

@@ -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)