mirror of
https://github.com/librempeg/librempeg
synced 2024-11-23 11:39:47 +00:00
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
This commit is contained in:
parent
33ce384688
commit
3288177150
@ -25,9 +25,9 @@
|
|||||||
#if HAVE_FAST_UNALIGNED && HAVE_INLINE_ASM
|
#if HAVE_FAST_UNALIGNED && HAVE_INLINE_ASM
|
||||||
|
|
||||||
#define AV_RN16 AV_RN16
|
#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));
|
__asm__ ("ldrh %0, %1" : "=r"(v) : "m"(*(const uint16_t *)p));
|
||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user