[flac-dev] [PATCH 3/5]

lvqcl lvqcl.mail at gmail.com
Fri Oct 3 12:26:58 PDT 2014


This patch simplifies stream_encoder.c.

Instead of nested

#ifdef FLAC__SSE2_SUPPORTED
#  ifdef FLAC__SSSE3_SUPPORTED
	if (ssse3) {
		compute_best_predictor = intrin_ssse3;
		compute_best_predictor_wide = wide_intrin_ssse3;
	}
	else
#  endif
	{
		compute_best_predictor = intrin_sse2;
		compute_best_predictor_wide = wide_intrin_sse2;
	}
#endif

...it now uses simple

#ifdef FLAC__SSE2_SUPPORTED
	compute_best_predictor = intrin_sse2;
	compute_best_predictor_wide = wide_intrin_sse2;
#endif
#ifdef FLAC__SSSE3_SUPPORTED
	if (ssse3) {
		compute_best_predictor = intrin_ssse3;
		compute_best_predictor_wide = wide_intrin_ssse3;
	}
#endif

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 03_stream-encoder.zip
Type: application/zip
Size: 969 bytes
Desc: not available
Url : http://lists.xiph.org/pipermail/flac-dev/attachments/20141003/da234258/attachment.zip 


More information about the flac-dev mailing list