]> git.videolan.org Git - x264.git/commitdiff
Fix pixel_ssd on win64
authorJason Garrett-Glaser <darkshikari@gmail.com>
Mon, 9 Nov 2009 17:18:03 +0000 (09:18 -0800)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Mon, 9 Nov 2009 17:18:03 +0000 (09:18 -0800)
Didn't preserve XMM registers, may or may not have caused problems.

common/x86/pixel-a.asm

index 15e39b6db23c77f37d928859ad8c96fa1949c1ef..bfef0dbf7e6688aafeb75eac01d0a5c35e4faebd 100644 (file)
@@ -231,6 +231,9 @@ cglobal x264_pixel_ssd_%1x%2_%3, 0,0,0
 .startloop:
 %ifdef ARCH_X86_64
     DECLARE_REG_TMP 0,1,2,3
+%ifnidn %3, mmx
+    PROLOGUE 0,0,8
+%endif
 %else
     PROLOGUE 0,5
     DECLARE_REG_TMP 1,2,3,4