[FFmpeg-devel] libavutil simd
Reimar Döffinger
Reimar.Doeffinger
Tue Oct 2 10:04:10 CEST 2007
Hello,
On Tue, Oct 02, 2007 at 05:26:57PM +1000, Nigel Pearson wrote:
> On 02/10/2007, at 2:54 PM, Alexander Strange wrote:
> > If you aren't linking to Carbon ("compatibility library"?), it's
> > available as a sysctl:
> > http://developer.apple.com/hardwaredrivers/ve/g3_compatibility.html
> >
> > int GetAltiVecTypeAvailable( void )
> > {
> >
> > int sels[2] = { CTL_HW, HW_VECTORUNIT };
> > int vType = 0; //0 == scalar only
> > size_t length = sizeof(vType);
> > int error = sysctl(sels, 2, &vType, &length, NULL, 0);
> > if( 0 == error ) return vType;
> >
> > return 0;
> >
> > }
>
> I wish I had seen this a few hours ago!
>
>
> 1. Do we know that HW_VECTORUNIT is PowerPC only?
> I fear that it may also be true for SSE.
>
> 2. sysctlbyname("hw.optional.altivec"...)
> is maybe easier to understand?
You know what's really funny about that?
We already use this code.
But it only works on OSX, so we have a different way so amiga and the
SIGILL hack for everything else.
And all of them are pointless because we compile with -maltivec and it
thus crashes anyway.
Greetings,
Reimar D?ffinger
More information about the ffmpeg-devel
mailing list