# HG changeset patch # User mru # Date 1266798848 0 # Node ID 3942cf6cdad3c940b9676624d67d783c53044483 # Parent f3cd6240dbfc03b4575465015c43c7357d9ed0ed ARM: change argument/return type of bswap_16() to unsigned 32-bit This avoids unnecessary masking otherwise added by the compilers. diff -r f3cd6240dbfc -r 3942cf6cdad3 arm/bswap.h --- 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;