aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Conrad <lessen42@gmail.com>2009-01-26 03:40:48 +0000
committerDavid Conrad <lessen42@gmail.com>2009-01-26 03:40:48 +0000
commit137ae32760487a262f304beb843aad7273f7970d (patch)
treec4bbad409d08d83dcd76ad42e523e03f538e21cb
parent8076c4731f1ba281bbd5e342867492aa477ff309 (diff)
downloadffmpeg-137ae32760487a262f304beb843aad7273f7970d.tar.gz
Workaround for gcc 3.4 to align sh properly
Originally committed as revision 16797 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/x86/dsputil_mmx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/x86/dsputil_mmx.c b/libavcodec/x86/dsputil_mmx.c
index f402b8bee3..a457d55ad7 100644
--- a/libavcodec/x86/dsputil_mmx.c
+++ b/libavcodec/x86/dsputil_mmx.c
@@ -2491,12 +2491,12 @@ static void sub_int16_sse2(int16_t * v1, int16_t * v2, int order)
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"