From 85ede2c6aa066da29fce5186394f46927358be3b Mon Sep 17 00:00:00 2001 From: "Timothy B. Terriberry" Date: Wed, 22 May 2013 15:26:12 -0700 Subject: [PATCH] Use more MAC16_16's and unroll a loop. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This splits out the non-arch-specific portions of a patch written by Aurélien Zanelli =1;j--) { @@ -161,11 +161,16 @@ void _celt_autocorr( } #ifdef FIXED_POINT { - opus_val32 ac0=0; + opus_val32 ac0; int shift; - for(i=0;i=0) { for (i = lag, d = 0; i < n; i++) - d += xx[i] * xx[i-lag]; + d = MAC16_16(d, xx[i], xx[i-lag]); ac[lag] = d; /*printf ("%f ", ac[lag]);*/ lag--;