[FFmpeg-cvslog] ARM: bswap: drop armcc version of av_bswap16()

Mans Rullgard git at videolan.org
Wed Oct 3 13:52:07 CEST 2012


ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Tue Oct  2 16:34:34 2012 +0100| [1ca3b62b10e6c174b5758f94f70f334ccf5097be] | committer: Mans Rullgard

ARM: bswap: drop armcc version of av_bswap16()

This function causes several versions of armcc to miscompile code,
and the performance impact is small.

Signed-off-by: Mans Rullgard <mans at mansr.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1ca3b62b10e6c174b5758f94f70f334ccf5097be
---

 libavutil/arm/bswap.h |    7 -------
 1 file changed, 7 deletions(-)

diff --git a/libavutil/arm/bswap.h b/libavutil/arm/bswap.h
index f94cbcf..e49cdd4 100644
--- a/libavutil/arm/bswap.h
+++ b/libavutil/arm/bswap.h
@@ -26,13 +26,6 @@
 #ifdef __ARMCC_VERSION
 
 #if HAVE_ARMV6
-#define av_bswap16 av_bswap16
-static av_always_inline av_const unsigned av_bswap16(unsigned x)
-{
-    __asm { rev16 x, x }
-    return x;
-}
-
 #define av_bswap32 av_bswap32
 static av_always_inline av_const uint32_t av_bswap32(uint32_t x)
 {



More information about the ffmpeg-cvslog mailing list