changeset 8668:191860960b23 libavcodec

Workaround for gcc 3.4 to align sh properly
author conrad
date Mon, 26 Jan 2009 03:40:48 +0000
parents 5690a6211e8c
children 16b978f64d9e
files x86/dsputil_mmx.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/x86/dsputil_mmx.c	Sun Jan 25 19:11:10 2009 +0000
+++ b/x86/dsputil_mmx.c	Mon Jan 26 03:40:48 2009 +0000
@@ -2491,12 +2491,12 @@
 static int32_t scalarproduct_int16_sse2(int16_t * v1, int16_t * v2, int order, int shift)
 {
     int res = 0;
-    DECLARE_ALIGNED_16(int64_t, sh);
+    DECLARE_ALIGNED_16(xmm_reg, sh);
     x86_reg o = -(order << 1);
 
     v1 += order;
     v2 += order;
-    sh = shift;
+    sh.a = shift;
     __asm__ volatile(
         "pxor      %%xmm7,  %%xmm7        \n\t"
         "1:                               \n\t"