Commit 841d2278 authored by mru's avatar mru

ARM: change argument/return type of bswap_16() to unsigned 32-bit

This avoids unnecessary masking otherwise added by the compilers.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21953 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent f04080cd
......@@ -27,7 +27,7 @@
#if HAVE_ARMV6
#define bswap_16 bswap_16
static av_always_inline av_const uint16_t bswap_16(uint16_t x)
static av_always_inline av_const unsigned bswap_16(unsigned x)
{
__asm { rev16 x, x }
return x;
......@@ -44,7 +44,7 @@ static av_always_inline av_const uint32_t bswap_32(uint32_t x)
#if HAVE_ARMV6
#define bswap_16 bswap_16
static av_always_inline av_const uint16_t bswap_16(uint16_t x)
static av_always_inline av_const unsigned bswap_16(unsigned x)
{
__asm__("rev16 %0, %0" : "+r"(x));
return x;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment