Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=f6dbdf55523cc328d3f107a6e61b8ae671c88a55

commit f6dbdf55523cc328d3f107a6e61b8ae671c88a55
Author: kikadf <[email protected]>
Date:   Tue Jul 10 09:31:20 2012 +0200

mplayer-1.1-1-i686

diff --git a/source/xapps/mplayer/0001-Fix-ff_imdct_calc_sse-on-gcc-4.6.patch 
b/source/xapps/mplayer/0001-Fix-ff_imdct_calc_sse-on-gcc-4.6.patch
new file mode 100644
index 0000000..bda7220
--- /dev/null
+++ b/source/xapps/mplayer/0001-Fix-ff_imdct_calc_sse-on-gcc-4.6.patch
@@ -0,0 +1,49 @@
+From a35d782d28ef0497f2b65eb300c2e6a6028fc165 Mon Sep 17 00:00:00 2001
+From: Alex Converse <[email protected]>
+Date: Sun, 30 Jan 2011 01:04:41 -0800
+Subject: [PATCH] Fix ff_imdct_calc_sse() on gcc-4.6
+
+Gcc 4.6 only preserves the first value when using an array with an "m"
+constraint.
+
+Signed-off-by: Mans Rullgard <[email protected]>
+(cherry picked from commit 770c410fbb8e1b87ce8ad7f3d7eddaa55e2b8295)
+---
+ libavcodec/x86/fft_sse.c |    7 +++----
+ 1 files changed, 3 insertions(+), 4 deletions(-)
+
+diff --git a/libavcodec/x86/fft_sse.c b/libavcodec/x86/fft_sse.c
+index 9f02816..0d151bc 100644
+--- a/libavcodec/x86/fft_sse.c
++++ b/libavcodec/x86/fft_sse.c
+@@ -23,7 +23,7 @@
+ #include "libavcodec/dsputil.h"
+ #include "fft.h"
+
+-DECLARE_ALIGNED(16, static const int, m1m1m1m1)[4] =
++DECLARE_ASM_CONST(16, int, ff_m1m1m1m1)[4] =
+     { 1 << 31, 1 << 31, 1 << 31, 1 << 31 };
+
+ void ff_fft_dispatch_sse(FFTComplex *z, int nbits);
+@@ -183,7 +183,7 @@ void ff_imdct_calc_sse(FFTContext *s, FFTSample *output, 
const FFTSample *input)
+     j = -n;
+     k = n-16;
+     __asm__ volatile(
+-        "movaps %4, %%xmm7 \n"
++        "movaps "MANGLE(ff_m1m1m1m1)", %%xmm7 \n"
+         "1: \n"
+         "movaps       (%2,%1), %%xmm0 \n"
+         "movaps       (%3,%0), %%xmm1 \n"
+@@ -196,8 +196,7 @@ void ff_imdct_calc_sse(FFTContext *s, FFTSample *output, 
const FFTSample *input)
+         "add $16, %0 \n"
+         "jl 1b \n"
+         :"+r"(j), "+r"(k)
+-        :"r"(output+n4), "r"(output+n4*3),
+-         "m"(*m1m1m1m1)
++        :"r"(output+n4), "r"(output+n4*3)
+     );
+ }
+
+--
+1.7.7
+
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to