mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user