* Do not declare vectors in non-AltiVec files.
git-svn-id: svn://svn.videolan.org/x264/trunk@630
df754926-b1dd-0310-bc7b-
ec298dee348c
.depend: config.mak
rm -f .depend
# Hacky - because gcc 2.9x doesn't have -MT
- $(foreach SRC, $(SRCS) $(SRCCLI), ( $(ECHON) "`dirname $(SRC)`/" && $(CC) $(CFLAGS) $(SRC) -MM -g0 ) 1>> .depend;)
+ $(foreach SRC, $(SRCS) $(SRCCLI), ( $(ECHON) "`dirname $(SRC)`/" && $(CC) $(CFLAGS) $(ALTIVECFLAGS) $(SRC) -MM -g0 ) 1>> .depend;)
config.mak: $(wildcard .svn/entries */.svn/entries */*/.svn/entries)
./configure $(CONFIGURE_ARGS)
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
-#ifdef SYS_LINUX
+#if defined SYS_LINUX && defined NEED_ALTIVEC
#include <altivec.h>
#endif
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 );
;;
powerpc|powerpc64)
ARCH="PPC"
+ ALTIVECFLAGS="$ALTIVECFLAGS -DNEED_ALTIVEC"
if [ $SYS = MACOSX ]
then
ALTIVECFLAGS="$ALTIVECFLAGS -faltivec -fastf -mcpu=G4"