diff options
author | Linfeng Zhang <linfengz@google.com> | 2016-07-13 17:25:49 -0700 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2017-02-14 23:57:15 -0500 |
commit | 95d4c9f960c9469961781c923ccfdb8c3eba0562 (patch) | |
tree | 293fb4a4794c6dc74d7ed7381a543e88f741a8c9 /silk/tests | |
parent | 68688651a4c3ed1fc4345c1bfb3932658e51f0b4 (diff) | |
download | libopus-95d4c9f960c9469961781c923ccfdb8c3eba0562.tar.gz |
Optimize silk_LPC_inverse_pred_gain() for ARM NEON
The optimization is bit exact with C function.
Change-Id: Ib3bdc26a5a4ebe02e7f24be85104e8e9a2a9a738
Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
Diffstat (limited to 'silk/tests')
-rw-r--r-- | silk/tests/test_unit_LPC_inv_pred_gain.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/silk/tests/test_unit_LPC_inv_pred_gain.c b/silk/tests/test_unit_LPC_inv_pred_gain.c index 2a22bf62..69bf6b72 100644 --- a/silk/tests/test_unit_LPC_inv_pred_gain.c +++ b/silk/tests/test_unit_LPC_inv_pred_gain.c @@ -78,6 +78,7 @@ int check_stability(opus_int16 *A_Q12, int order) { } int main(void) { + const int arch = opus_select_arch(); /* Set to 10000 so all branches in C function are triggered */ const int loop_num = 10000; int count = 0; @@ -100,7 +101,7 @@ int main(void) { for( i = 0; i < SILK_MAX_ORDER_LPC; i++ ) { A_Q12[i] = ((opus_int16)rand()) >> shift; } - gain = silk_LPC_inverse_pred_gain(A_Q12, order); + gain = silk_LPC_inverse_pred_gain(A_Q12, order, arch); /* Look for filters that silk_LPC_inverse_pred_gain() thinks are stable but definitely aren't. */ if( gain != 0 && !check_stability(A_Q12, order) ) { |