[SCM] libav/experimental: ARM: change return type of AV_RN16() to unsigned

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 17:16:19 UTC 2013


The following commit has been merged in the experimental branch:
commit 3288177150eae9a9f11b6a5e4574f0ccd5fe9f57
Author: Måns Rullgård <mans at mansr.com>
Date:   Sun Sep 26 21:01:20 2010 +0000

    ARM: change return type of AV_RN16() to unsigned
    
    This prevents gcc inserting useless UXTH instructions, at least
    in some cases.
    
    Originally committed as revision 25212 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavutil/arm/intreadwrite.h b/libavutil/arm/intreadwrite.h
index 011694d..339f885 100644
--- a/libavutil/arm/intreadwrite.h
+++ b/libavutil/arm/intreadwrite.h
@@ -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;
 }

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list