summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2013-06-17 14:02:10 -0400
committerJean-Marc Valin <jmvalin@jmvalin.ca>2013-06-17 14:04:17 -0400
commit96e2be37b88cdc00f842d486ef449fd3fcd348dc (patch)
treec2875b95ac6b35f402ad81d0fc62fa1f1c63a68f
parent1f26ee2bbd7ae5447b71a78641bb60e58162d68e (diff)
downloadopus-96e2be37b88cdc00f842d486ef449fd3fcd348dc.tar.gz
Only enable non-multiple of 4 in comb_filter_const() when CUSTOM_MODES is on
-rw-r--r--celt/x86/pitch_sse.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/celt/x86/pitch_sse.h b/celt/x86/pitch_sse.h
index 64c96af2..4ab69342 100644
--- a/celt/x86/pitch_sse.h
+++ b/celt/x86/pitch_sse.h
@@ -141,6 +141,7 @@ static inline void comb_filter_const(opus_val32 *y, opus_val32 *x, int T, int N,
x0v=x4v;
_mm_storeu_ps(y+i, yi);
}
+#ifdef CUSTOM_MODES
for (;i<N;i++)
{
y[i] = x[i]
@@ -148,6 +149,7 @@ static inline void comb_filter_const(opus_val32 *y, opus_val32 *x, int T, int N,
+ MULT16_32_Q15(g11,ADD32(x[i-T+1],x[i-T-1]))
+ MULT16_32_Q15(g12,ADD32(x[i-T+2],x[i-T-2]));
}
+#endif
}
#endif