Mercurial > libavutil.hg
comparison arm/intreadwrite.h @ 1023:0a18c400e946 libavutil
ARM: change return type of AV_RN16() to unsigned
This prevents gcc inserting useless UXTH instructions, at least
in some cases.
author | mru |
---|---|
date | Sun, 26 Sep 2010 21:01:20 +0000 |
parents | f849545df4e5 |
children |
comparison
equal
deleted
inserted
replaced
1022:7cfd5ddf993b | 1023:0a18c400e946 |
---|---|
23 #include "config.h" | 23 #include "config.h" |
24 | 24 |
25 #if HAVE_FAST_UNALIGNED && HAVE_INLINE_ASM | 25 #if HAVE_FAST_UNALIGNED && HAVE_INLINE_ASM |
26 | 26 |
27 #define AV_RN16 AV_RN16 | 27 #define AV_RN16 AV_RN16 |
28 static av_always_inline uint16_t AV_RN16(const void *p) | 28 static av_always_inline unsigned AV_RN16(const void *p) |
29 { | 29 { |
30 uint16_t v; | 30 unsigned v; |
31 __asm__ ("ldrh %0, %1" : "=r"(v) : "m"(*(const uint16_t *)p)); | 31 __asm__ ("ldrh %0, %1" : "=r"(v) : "m"(*(const uint16_t *)p)); |
32 return v; | 32 return v; |
33 } | 33 } |
34 | 34 |
35 #define AV_WN16 AV_WN16 | 35 #define AV_WN16 AV_WN16 |