Commit 1980de9b authored by Sam Hocevar's avatar Sam Hocevar

* Use -maltivec when building dependencies, or <altivec.h> cannot be used.

  * Do not declare vectors in non-AltiVec files.


git-svn-id: svn://svn.videolan.org/x264/trunk@630 df754926-b1dd-0310-bc7b-ec298dee348c
parent e1a4ae9e
......@@ -94,7 +94,7 @@ common/i386/*.o: common/i386/i386inc.asm
.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)
......
......@@ -18,7 +18,7 @@
* 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
......@@ -27,12 +27,16 @@
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 );
......
......@@ -159,6 +159,7 @@ 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