use GLOBAL correctly on 32bit shared libraries
authorJohann <johannkoenig@google.com>
Tue, 29 Mar 2011 14:28:30 +0000 (10:28 -0400)
committerJohann <johannkoenig@google.com>
Tue, 29 Mar 2011 15:27:03 +0000 (11:27 -0400)
http://code.google.com/p/webm/issues/detail?id=309

Change-Id: I6fce9e2f74bc09a9f258df7f91ab599812324e8c

vp8/encoder/x86/quantize_sse2.asm

index bc70b68..9a15840 100644 (file)
@@ -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