[FFmpeg-devel] [PATCH] avutil/x86inc: don't use movss in VBROADCASTSS macro when src and dst args are the same
James Almer
jamrial at gmail.com
Tue Mar 21 00:41:49 EET 2017
Signed-off-by: James Almer <jamrial at gmail.com>
---
libavutil/x86/x86util.asm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavutil/x86/x86util.asm b/libavutil/x86/x86util.asm
index de7d2d11c1..fe9a727e22 100644
--- a/libavutil/x86/x86util.asm
+++ b/libavutil/x86/x86util.asm
@@ -833,7 +833,9 @@
%if cpuflag(avx)
vbroadcastss %1, %2
%else ; sse
+%ifnidn %1, %2
movss %1, %2
+%endif
shufps %1, %1, 0
%endif
%endmacro
--
2.12.0
More information about the ffmpeg-devel
mailing list