[FFmpeg-cvslog] r21953 - trunk/libavutil/arm/bswap.h
mru
subversion
Mon Feb 22 01:34:09 CET 2010
Author: mru
Date: Mon Feb 22 01:34:08 2010
New Revision: 21953
Log:
ARM: change argument/return type of bswap_16() to unsigned 32-bit
This avoids unnecessary masking otherwise added by the compilers.
Modified:
trunk/libavutil/arm/bswap.h
Modified: trunk/libavutil/arm/bswap.h
==============================================================================
--- trunk/libavutil/arm/bswap.h Mon Feb 22 01:34:05 2010 (r21952)
+++ trunk/libavutil/arm/bswap.h Mon Feb 22 01:34:08 2010 (r21953)
@@ -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_
#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;
More information about the ffmpeg-cvslog
mailing list