[x264-devel] Re: [Patch] x264 on ppc without altivec

Sam Hocevar sam at zoy.org
Wed Mar 14 19:12:29 CET 2007


On Mon, Mar 05, 2007, Alexis Ballier wrote:

> But then, I don't understand why the code works in a simple program and
> not in x264.
> 
> by the way :
> $gcc -maltivec -mabi=altivec toto.c
> $./a.out
> 0
> $

   It's because your toto.c does not cause gcc to generate AltiVec code,
but it may happen (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=408918).

   I added proper runtime AltiVec detection, as well as a fix for the
makefile so that only ppc/*.c files get compiled with the AltiVec flags,
can you give the current trunk a try?

Regards,
-- 
Sam.

-- 
This is the x264-devel mailing-list
To unsubscribe, go to: http://developers.videolan.org/lists.html



More information about the x264-devel mailing list