From: Sam Hocevar Date: Wed, 14 Mar 2007 21:53:47 +0000 (+0000) Subject: * Made -DNEED_ALTIVEC unnecessary, thanks to Guillaume Poirier. X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=11ef32f432b8e055c30c99531e25320dbce8f656;p=x264.git * Made -DNEED_ALTIVEC unnecessary, thanks to Guillaume Poirier. git-svn-id: svn://svn.videolan.org/x264/trunk@633 df754926-b1dd-0310-bc7b-ec298dee348c --- diff --git a/common/ppc/quant.c b/common/ppc/quant.c index 66aaec71..ccce8ef9 100644 --- a/common/ppc/quant.c +++ b/common/ppc/quant.c @@ -18,6 +18,20 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. *****************************************************************************/ +#if defined SYS_LINUX +#include +#endif + +typedef union { + unsigned int s[4]; + vector unsigned int v; +} vect_int_u; + +typedef union { + unsigned short s[8]; + vector unsigned short v; +} vect_ushort_u; + #include "common/common.h" #include "ppccommon.h" #include "quant.h" diff --git a/common/ppc/quant.h b/common/ppc/quant.h index 49ab01a5..a113c541 100644 --- a/common/ppc/quant.h +++ b/common/ppc/quant.h @@ -18,27 +18,9 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. *****************************************************************************/ -#if defined SYS_LINUX && defined NEED_ALTIVEC -#include -#endif - #ifndef _PPC_QUANT_H #define _PPC_QUANT_H 1 -typedef union { - unsigned int s[4]; -#if defined NEED_ALTIVEC - vector unsigned int v; -#endif -} vect_int_u; - -typedef union { - unsigned short s[8]; -#if defined NEED_ALTIVEC - vector unsigned short v; -#endif -} vect_ushort_u; - void x264_quant_4x4_altivec( int16_t dct[4][4], int quant_mf[4][4], int const i_qbits, int const f ); void x264_quant_8x8_altivec( int16_t dct[8][8], int quant_mf[8][8], int const i_qbits, int const f ); diff --git a/configure b/configure index b903fdd3..e594db50 100755 --- a/configure +++ b/configure @@ -168,7 +168,6 @@ case "${MACHINE%%-*}" in ;; powerpc|powerpc64) ARCH="PPC" - ALTIVECFLAGS="$ALTIVECFLAGS -DNEED_ALTIVEC" if [ $SYS = MACOSX ] then ALTIVECFLAGS="$ALTIVECFLAGS -faltivec -fastf -mcpu=G4"