# HG changeset patch # User mru # Date 1285534880 0 # Node ID 0a18c400e9465d0cacd2757fa9ca8f53857036b6 # Parent 7cfd5ddf993b09ad1891533c9cfd0ecf16e88784 ARM: change return type of AV_RN16() to unsigned This prevents gcc inserting useless UXTH instructions, at least in some cases. diff -r 7cfd5ddf993b -r 0a18c400e946 arm/intreadwrite.h --- a/arm/intreadwrite.h Sun Sep 26 14:25:22 2010 +0000 +++ b/arm/intreadwrite.h Sun Sep 26 21:01:20 2010 +0000 @@ -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; }