[flac-dev] PATCH: add FLAC__SSE_SUPPORTED and FLAC__SSE2_SUPPORTED

Erik de Castro Lopo mle+la at mega-nerd.com
Fri Jan 17 12:26:22 PST 2014


Hi lvqcl,

Sorry to take so long to repond to this.

lvqcl wrote:

> Currently the only way to compile FLAC using GCC w/o SSE support
> is to disable asm optimizations (see configure.ac):
> 
> 	if test "x$asm_optimisation" = "xyes" ; then
> 		XIPH_ADD_CFLAGS([-msse2])
> 		fi
> 
> 
> Also it's not possible to enable SSE4.1 intrinsic functions even
> with -msse4.1 option. The patch fixes both problems.
> 
> 
> ---------------
> BTW: I'm not sure that share/compat.h is the best place to define these
> FLAC__SSEN_SUPPORTED macros. Maybe it's better to move them to some libFLAC .h file?
> E.g. to src/libFLAC/include/private/cpu.h?

Yes, I think src/libFLAC/include/private/cpu.h would be a better place
for this SSE version support stuff.

Would you be able to do it or should I?

Cheers,
Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/


More information about the flac-dev mailing list