Don't use intrinsics when they are slower.

More thorough en-/decoding tests show that sometimes the functions
that use intrinsics are slower (or not really faster) than old
plain C functions.

After this patch the encoder doesn't use these new functions
when their usefulness is questionable.

Patch-from: lvqcl <lvqcl.mail@gmail.com>
This commit is contained in:
Erik de Castro Lopo
2014-02-24 21:45:32 +11:00
parent 4be8ed8efe
commit cf0e42ae6e
3 changed files with 7 additions and 10 deletions

View File

@@ -1289,6 +1289,10 @@ void FLAC__lpc_restore_signal_16_intrin_sse2(const FLAC__int32 residual[], unsig
{
int i;
FLAC__int32 sum;
if (order < 8) {
FLAC__lpc_restore_signal(residual, data_len, qlp_coeff, order, lp_quantization, data);
return;
}
FLAC__ASSERT(order > 0);
FLAC__ASSERT(order <= 32);