changeset 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 f3cd6240dbfc
children 9b61454d2fee
files arm/bswap.h
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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;