[libav-commits] ARM: bswap: drop armcc version of av_bswap16()

Mans Rullgard git at libav.org
Tue Oct 2 21:07:34 CEST 2012


Module: libav
Branch: master
Commit: 1ca3b62b10e6c174b5758f94f70f334ccf5097be

Author:    Mans Rullgard <mans at mansr.com>
Committer: Mans Rullgard <mans at mansr.com>
Date:      Tue Oct  2 16:34:34 2012 +0100

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>

---

 libavutil/arm/bswap.h |    7 -------
 1 files changed, 0 insertions(+), 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 libav-commits mailing list