[MPlayer-dev-eng] [PATCH] altivec support for netbsd/powerpc platforms

matthew green mrg at eterna.com.au
Tue Apr 6 03:01:41 CEST 2004


hi folks.


this is all i need to get altivec support working on netbsd (with a working
altivec GCC :-) for mplayer.  it provides 1.5-2x speed up for watching
and encoding large movies (eg, dvd size) and makes my mac actually able to
actually play them sanely :-)  unfortunately, it requires GCC 3.4 for
netbsd, GCC 3.3 has internal compiler errors.  the (new, non-apple) altivec
code for GCC wasn't really stable in 3.3 it seems..

it would be nice if this was commited before pre4.


thanks.


.mrg.


-------------- next part --------------
Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.840
diff -p -u -r1.840 configure
--- configure	27 Mar 2004 20:19:57 -0000	1.840
+++ configure	29 Mar 2004 15:15:38 -0000
@@ -876,6 +876,17 @@ EOF
 	    _altivec=yes
 	fi
     fi
+    if netbsd ; then
+	case $cc_version in
+	    2*|3.0*|3.1*|3.2*|3.3*)
+	      ;;
+	    *)
+	      if [ `sysctl -n machdep.altivec` -eq 1 ]; then
+	    _altivec=yes
+	      fi
+	      ;;
+	esac
+    fi
     if test "$_altivec" = yes; then
         echores "$proc altivec"
     else


More information about the MPlayer-dev-eng mailing list