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