From fbf7cf91621cee937d8a5e87e7afcd1e0fd7c9f1 Mon Sep 17 00:00:00 2001 From: arpi Date: Mon, 9 Jun 2003 12:12:04 +0000 Subject: libmpeg2-altivec patch by Magnus Damm : Updated to version 1.12 from sourceforge The old version crashed my gcc-3.2.2 (after allocating 1 Gig memory) because of unfriendly altivec code, the new file is better. The new file ditches the old assembly version and it must be built with correct altivec-flags git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10272 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpeg2/motion_comp_altivec.c | 1132 +++------------------------------------- 1 file changed, 61 insertions(+), 1071 deletions(-) (limited to 'libmpeg2') diff --git a/libmpeg2/motion_comp_altivec.c b/libmpeg2/motion_comp_altivec.c index 998e2720ff..f5d884e6e4 100644 --- a/libmpeg2/motion_comp_altivec.c +++ b/libmpeg2/motion_comp_altivec.c @@ -1,6 +1,6 @@ /* * motion_comp_altivec.c - * Copyright (C) 2000-2002 Michel Lespinasse + * Copyright (C) 2000-2003 Michel Lespinasse * Copyright (C) 1999-2000 Aaron Holtzman * * This file is part of mpeg2dec, a free MPEG-2 video stream decoder. @@ -21,1064 +21,52 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#ifndef __ALTIVEC__ - #include "config.h" #ifdef ARCH_PPC +#ifdef HAVE_ALTIVEC_H +#include +#endif #include #include "mpeg2.h" #include "mpeg2_internal.h" -/* - * The asm code is generated with: - * - * gcc-2.95 -fvec -D__ALTIVEC__ -O9 -fomit-frame-pointer -mregnames -S - * motion_comp_altivec.c - * - * sed 's/.L/._L/g' motion_comp_altivec.s | - * awk '{args=""; len=split ($2, arg, ","); - * for (i=1; i<=len; i++) { a=arg[i]; if (i