[FFmpeg-devel] [PATCH] x86/intmath: allow the source operand for icc/icl ff_ctzll to be a memory location
James Almer
jamrial at gmail.com
Sun Oct 25 00:08:37 CEST 2015
This gives the compiler some flexibility
Signed-off-by: James Almer <jamrial at gmail.com>
---
libavutil/x86/intmath.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavutil/x86/intmath.h b/libavutil/x86/intmath.h
index 7881e3c..10d3e7f 100644
--- a/libavutil/x86/intmath.h
+++ b/libavutil/x86/intmath.h
@@ -36,7 +36,7 @@ static av_always_inline av_const int ff_ctzll_x86(long long v)
{
# if ARCH_X86_64
uint64_t c;
- __asm__("bsfq %1,%0" : "=r" (c) : "r" (v));
+ __asm__ ("bsfq %1,%0" : "=r" (c) : "rm" (v));
return c;
# else
return ((uint32_t)v == 0) ? _bit_scan_forward((uint32_t)(v >> 32)) + 32 : _bit_scan_forward((uint32_t)v);
--
2.6.2
More information about the ffmpeg-devel
mailing list