[FFmpeg-devel] [PATCH] Fix compilation of FASTDIV() with llvm-gcc on x86_64
Mans Rullgard
mans
Mon Jul 5 15:54:09 CEST 2010
LLVM requires matching input and output asm parameters to have the
same type. For the FASTDIV macro, an (int) cast on the input fixes
this trivially.
---
libavutil/x86/intmath.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavutil/x86/intmath.h b/libavutil/x86/intmath.h
index f3acddc..c12e191 100644
--- a/libavutil/x86/intmath.h
+++ b/libavutil/x86/intmath.h
@@ -27,7 +27,7 @@
__asm__ volatile(\
"mull %3"\
:"=d"(ret), "=a"(dmy)\
- :"1"(a), "g"(ff_inverse[b])\
+ :"1"((int)a), "g"(ff_inverse[b])\
);\
ret;\
})
--
1.7.1.1
More information about the ffmpeg-devel
mailing list