From f0c22a3f333ad9a3e1218b8387879766bfea6d42 Mon Sep 17 00:00:00 2001 From: Johann Date: Tue, 29 Mar 2011 10:28:30 -0400 Subject: [PATCH] use GLOBAL correctly on 32bit shared libraries http://code.google.com/p/webm/issues/detail?id=309 Change-Id: I6fce9e2f74bc09a9f258df7f91ab599812324e8c --- vp8/encoder/x86/quantize_sse2.asm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vp8/encoder/x86/quantize_sse2.asm b/vp8/encoder/x86/quantize_sse2.asm index bc70b68a..9a158402 100644 --- a/vp8/encoder/x86/quantize_sse2.asm +++ b/vp8/encoder/x86/quantize_sse2.asm @@ -130,7 +130,7 @@ sym(vp8_regular_quantize_b_sse2): mov [rsp + zrun_zbin_boost], rsi %macro ZIGZAG_LOOP 1 - movsx edx, WORD PTR[GLOBAL(zig_zag) + (%1 * 2)] ; rc + movsx edx, WORD PTR[GLOBAL(zig_zag + (%1 * 2))] ; rc ; x movsx ecx, WORD PTR[rsp + abs_minus_zbin + rdx *2] @@ -209,7 +209,7 @@ ZIGZAG_LOOP 15 pxor xmm3, xmm6 ; mask inv_zig_zag pand xmm2, [GLOBAL(inv_zig_zag)] - pand xmm3, [GLOBAL(inv_zig_zag) + 16] + pand xmm3, [GLOBAL(inv_zig_zag + 16)] ; select the max value pmaxsw xmm2, xmm3 pshufd xmm3, xmm2, 00001110b -- 2.11.4.GIT