From: Loren Merritt Date: Mon, 21 Aug 2006 00:46:20 +0000 (+0000) Subject: ssim broke on amd64 w/ pic. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=73657d88d1e1371d684eea805fb88c008e44e96b;p=libx264 ssim broke on amd64 w/ pic. git-svn-id: svn://svn.videolan.org/x264/trunk@557 df754926-b1dd-0310-bc7b-ec298dee348c --- diff --git a/common/amd64/pixel-sse2.asm b/common/amd64/pixel-sse2.asm index 5f17b4ee..0b44bbc3 100644 --- a/common/amd64/pixel-sse2.asm +++ b/common/amd64/pixel-sse2.asm @@ -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