echo-cancel: Fix tap weights array alignment

This commit is contained in:
Tanu Kaskinen 2013-02-15 21:16:37 +02:00
parent 764eabd109
commit 8d9c41e84c

View file

@ -95,7 +95,7 @@ AEC* AEC_init(int RATE, int have_vector)
if (have_vector) { if (have_vector) {
/* Get a 16-byte aligned location */ /* Get a 16-byte aligned location */
a->w = (REAL *) (((uintptr_t) a->w_arr) + (((uintptr_t) a->w_arr) % 16)); a->w = (REAL *) (((uintptr_t) a->w_arr) - (((uintptr_t) a->w_arr) % 16) + 16);
a->dotp = dotp_sse; a->dotp = dotp_sse;
} else { } else {
/* We don't care about alignment, just use the array as-is */ /* We don't care about alignment, just use the array as-is */