[MPlayer-dev-eng] Fw: Re: [gentoo-ppc-dev] mplayer altivec patches

Magnus Damm damm at opensource.se
Tue May 13 10:36:25 CEST 2003

This is interesting...
Maybe configure should do a test and use a local header file
if it's possible...

/ magnus

Begin forwarded message:

Date: 12 May 2003 23:31:56 +0200
From: Bartosch Pixa <darkspecter at gentoo.org>
To: Magnus Damm <damm at opensource.se>
Cc: gentoo-ppc-dev at gentoo.org, azarah at gentoo.org
Subject: Re: [gentoo-ppc-dev] mplayer altivec patches

On Mon, 2003-05-12 at 12:51, Magnus Damm wrote:
> Here are two patches for mplayer-0.90:
> http://mplayerhq.hu/pipermail/mplayer-dev-eng/2003-May/018499.html

this is a bad hack imo, as it just disables optimized code, what you are
trying to fix is in fact a gcc bug, "mergel" is broken.
we are already working on a fix for this.

here's a temporal fix for everyone who can't wait: 

Snip from altivec.h

#define vec_any_out(a1, a2) __builtin_altivec_vcmpbfp_p (__CR6_EQ_REV, 
(a1), (a2)
+#include <broken_mergel.h>
#endif /* __cplusplus */

add this to your altivec.h and copy the attatched header to the same
location altivec.h is in.

thx again lu_zero for finding the fix :)

Bartosch Pixa
Gentoo Linux Developer                    http://www.gentoo.org

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 00000002.mimetmp
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20030513/6adcd896/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: broken_mergel.h
Type: text/x-c-header
Size: 2323 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20030513/6adcd896/attachment.bin>

More information about the MPlayer-dev-eng mailing list