Mercurial > libavutil.hg
diff arm/bswap.h @ 846:3942cf6cdad3 libavutil
ARM: change argument/return type of bswap_16() to unsigned 32-bit
This avoids unnecessary masking otherwise added by the compilers.
author | mru |
---|---|
date | Mon, 22 Feb 2010 00:34:08 +0000 |
parents | 059c6e697629 |
children | 4d9ad0ed07d0 |
line wrap: on
line diff
--- a/arm/bswap.h Sun Feb 21 20:47:10 2010 +0000 +++ b/arm/bswap.h Mon Feb 22 00:34:08 2010 +0000 @@ -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 @@ #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;