[FFmpeg-devel] Inline ASM vs. Intrinsics

Luca Barbato lu_zero
Fri May 11 14:07:38 CEST 2007


Michael Niedermayer wrote:
> 
> just curious, how would asm make that more difficult?

altivec intrinsics:


#include <vmx2spu.h>

[spu specific way to get data]

[former altivec code here, unchanged]

[spu specific way to push data]


The altivec code would just build for spu thanks to the altivec/vmx ->
spu mapping header.

asm :

reread what you wrote

rewrite it

Obviously you could refactor the code to use some spu-only constructs
you may deem useful, BUT most of the code would remain the very same.

lu

-- 

Luca Barbato

Gentoo/linux Gentoo/PPC
http://dev.gentoo.org/~lu_zero





More information about the ffmpeg-devel mailing list