[SCM] libav/experimental: Workaround for gcc 3.4 to align sh properly
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:36:07 UTC 2013
The following commit has been merged in the experimental branch:
commit 137ae32760487a262f304beb843aad7273f7970d
Author: David Conrad <lessen42 at gmail.com>
Date: Mon Jan 26 03:40:48 2009 +0000
Workaround for gcc 3.4 to align sh properly
Originally committed as revision 16797 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavcodec/x86/dsputil_mmx.c b/libavcodec/x86/dsputil_mmx.c
index f402b8b..a457d55 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"
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list