detection of SSE3 support in configure.ac

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Le mardi 6 d?cembre 2011 13:00:16 Nallasellan, Singaravelan, vous avez ?crit :
> > I have an optimized SSE-based resampling library that I bolted in
> > PulseAudio. It was measured to bring a 2x speed-up over speex, mainly
> > because it uses fixed-tables instead of interpolations, the price being
> > that it can only be used for fixed-rate sinks/sources.
> > Since it's hardware-specific, I'd need a means to enable/disable it at
> > compile time, using some kind of voodoo magic in configure.ac. Does
> > anyone have pointers on SSE detection logic? To make things safe, I also
> > detect SSE at run time but would like to disable it completely for other
> > non-x86 or older platforms.
> 
> CPUID processor instruction should provide all the details about the
> processor.

CPUID is not a complete solution. It will tell you whether the CPU supports 
certain instruction sets. But it does not specify whether the operating system 
supports the SSE registers "xmmX". Thus parsing /proc/cpuinfo is more reliable 
though obviously Linux-specific.

-- 
R?mi Denis-Courmont
http://www.remlab.net/
http://fi.linkedin.com/in/remidenis


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux