From 12ec86c6188aef9ebd4b9bd0393eab7326e185fc Mon Sep 17 00:00:00 2001 From: lvqcl Date: Sat, 2 Mar 2019 23:56:03 +0300 Subject: Use MMX ASM fucntions instead of SSE4.1 if available These SSE4.1 functions are not always faster than their MMX ASM counterparts, so let's use ASM functions if they're available. --- src/libFLAC/stream_decoder.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libFLAC/stream_decoder.c b/src/libFLAC/stream_decoder.c index 40ea8264..db1f3202 100644 --- a/src/libFLAC/stream_decoder.c +++ b/src/libFLAC/stream_decoder.c @@ -396,8 +396,10 @@ static FLAC__StreamDecoderInitStatus init_stream_internal_( #if FLAC__HAS_X86INTRIN && ! defined FLAC__INTEGER_ONLY_LIBRARY # if defined FLAC__SSE4_1_SUPPORTED if (decoder->private_->cpuinfo.x86.sse41) { +# if !defined FLAC__HAS_NASM /* these are not undoubtedly faster than their MMX ASM counterparts */ decoder->private_->local_lpc_restore_signal = FLAC__lpc_restore_signal_intrin_sse41; decoder->private_->local_lpc_restore_signal_16bit = FLAC__lpc_restore_signal_16_intrin_sse41; +# endif decoder->private_->local_lpc_restore_signal_64bit = FLAC__lpc_restore_signal_wide_intrin_sse41; } # endif -- cgit v1.2.1