diff options
author | Mans Rullgard <mans@mansr.com> | 2012-05-02 12:46:22 +0100 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2012-05-02 17:26:38 +0100 |
commit | adebad07e084af91cad1b162d89c86c9e08e0a31 (patch) | |
tree | 3f68510c762abe19f692b02bc060fb5ee1556e2c /libavformat/nuv.c | |
parent | 4b7fa553a90361da730dfffc92c4bb75a181897d (diff) | |
download | ffmpeg-adebad07e084af91cad1b162d89c86c9e08e0a31.tar.gz |
arm: intreadwrite: fix inline asm constraints for gcc 4.6 and later
With a dereferenced type-cast pointer as memory operand, gcc 4.6
and later will sometimes copy the data to a temporary location,
the address of which is used as the operand value, if it thinks
the target address might be misaligned. Using a pointer to a
packed struct type instead does the right thing.
The 16-bit case is special since the ldrh instruction addressing
modes are limited compared to ldr. The "Uq" constraint produces a
memory reference suitable for an ldrsb instruction, which supports
the same addressing modes as ldrh. However, the restrictions appear
to apply only when the operand addresses a single byte. The memory
reference must thus be split into two operands each targeting one
byte. Finally, the "Uq" constraint is only available in ARM mode.
The Thumb-2 ldrh instruction supports most addressing modes so the
normal "m" constraint can be used there.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavformat/nuv.c')
0 files changed, 0 insertions, 0 deletions