]> granicus.if.org Git - libx264/commitdiff
ssim broke on amd64 w/ pic.
authorLoren Merritt <pengvado@videolan.org>
Mon, 21 Aug 2006 00:46:20 +0000 (00:46 +0000)
committerLoren Merritt <pengvado@videolan.org>
Mon, 21 Aug 2006 00:46:20 +0000 (00:46 +0000)
git-svn-id: svn://svn.videolan.org/x264/trunk@557 df754926-b1dd-0310-bc7b-ec298dee348c

common/amd64/pixel-sse2.asm

index 5f17b4ee1116b5b178e855901cfbb2242afdf524..0b44bbc3cbd97b3aa0b6409b500be8e9ce202492 100644 (file)
@@ -816,8 +816,13 @@ x264_pixel_ssim_end4_sse2:
     mulps    xmm0, xmm4
     divps    xmm1, xmm0  ; ssim
 
-    neg      parm3d
-    movdqu   xmm3, [mask_ff + parm3d*4 + 16 GLOBAL]
+    neg      parm3q
+%ifdef __PIC__
+    lea      rax,  [mask_ff + 16 GLOBAL]
+    movdqu   xmm3, [rax + parm3q*4]
+%else
+    movdqu   xmm3, [mask_ff + parm3q*4 + 16]
+%endif
     pand     xmm1, xmm3
     movhlps  xmm0, xmm1
     addps    xmm0, xmm1