OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33ce384
)
ARM: change return type of AV_RN16() to unsigned
author
Måns Rullgård
<mans@mansr.com>
Sun, 26 Sep 2010 21:01:20 +0000
(21:01 +0000)
committer
Måns Rullgård
<mans@mansr.com>
Sun, 26 Sep 2010 21:01:20 +0000
(21:01 +0000)
This prevents gcc inserting useless UXTH instructions, at least
in some cases.
Originally committed as revision 25212 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavutil/arm/intreadwrite.h
patch
|
blob
|
history
diff --git
a/libavutil/arm/intreadwrite.h
b/libavutil/arm/intreadwrite.h
index
011694d
..
339f885
100644
(file)
--- 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 u
int16_t
AV_RN16(const void *p)
+static av_always_inline u
nsigned
AV_RN16(const void *p)
{
- u
int16_t
v;
+ u
nsigned
v;
__asm__ ("ldrh %0, %1" : "=r"(v) : "m"(*(const uint16_t *)p));
return v;
}