[FFmpeg-cvslog] r25212 - trunk/libavutil/arm/intreadwrite.h

mru subversion
Sun Sep 26 23:01:20 CEST 2010


Author: mru
Date: Sun Sep 26 23:01:20 2010
New Revision: 25212

Log:
ARM: change return type of AV_RN16() to unsigned

This prevents gcc inserting useless UXTH instructions, at least
in some cases.

Modified:
   trunk/libavutil/arm/intreadwrite.h

Modified: trunk/libavutil/arm/intreadwrite.h
==============================================================================
--- trunk/libavutil/arm/intreadwrite.h	Sun Sep 26 16:47:00 2010	(r25211)
+++ trunk/libavutil/arm/intreadwrite.h	Sun Sep 26 23:01:20 2010	(r25212)
@@ -25,9 +25,9 @@
 #if HAVE_FAST_UNALIGNED && HAVE_INLINE_ASM
 
 #define AV_RN16 AV_RN16
-static av_always_inline uint16_t AV_RN16(const void *p)
+static av_always_inline unsigned AV_RN16(const void *p)
 {
-    uint16_t v;
+    unsigned v;
     __asm__ ("ldrh %0, %1" : "=r"(v) : "m"(*(const uint16_t *)p));
     return v;
 }



More information about the ffmpeg-cvslog mailing list