Commit 11ef32f4 authored by Sam Hocevar's avatar Sam Hocevar

* Made -DNEED_ALTIVEC unnecessary, thanks to Guillaume Poirier.


git-svn-id: svn://svn.videolan.org/x264/trunk@633 df754926-b1dd-0310-bc7b-ec298dee348c
parent 37ad2377
......@@ -18,6 +18,20 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
#if defined SYS_LINUX
#include <altivec.h>
#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"
......
......@@ -18,27 +18,9 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
#if defined SYS_LINUX && defined NEED_ALTIVEC
#include <altivec.h>
#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 );
......
......@@ -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"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment