diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-06-30 13:30:07 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-06-30 13:35:52 +0400 |
commit | 78b547963362cc9827d92dc0808534b757ab05d4 (patch) | |
tree | 5b15d364e43e987ea2be5c381d0e99e9b303d958 /libavutil/lls.c | |
parent | c93a424718c38c6add273745f3792b531332ea88 (diff) | |
parent | 502ab21af0ca68f76d6112722c46d2f35c004053 (diff) |
Merge commit '502ab21af0ca68f76d6112722c46d2f35c004053'
* commit '502ab21af0ca68f76d6112722c46d2f35c004053':
x86: lpc: simd av_update_lls
The versions are bumped due to changes in lls.h which is used across
libraries affecting intra library ABI
(This version bump also covers changes to lls.h in the immedeatly previous
commits)
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/lls.c')
-rw-r--r-- | libavutil/lls.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libavutil/lls.c b/libavutil/lls.c index 678285416d..abed8efaff 100644 --- a/libavutil/lls.c +++ b/libavutil/lls.c @@ -46,8 +46,8 @@ static void update_lls(LLSModel *m, double *var) void avpriv_solve_lls(LLSModel *m, double threshold, unsigned short min_order) { int i, j, k; - double (*factor)[MAX_VARS + 1] = (void *) &m->covariance[1][0]; - double (*covar) [MAX_VARS + 1] = (void *) &m->covariance[1][1]; + double (*factor)[MAX_VARS_ALIGN] = (void *) &m->covariance[1][0]; + double (*covar) [MAX_VARS_ALIGN] = (void *) &m->covariance[1][1]; double *covar_y = m->covariance[0]; int count = m->indep_count; @@ -117,6 +117,8 @@ av_cold void avpriv_init_lls(LLSModel *m, int indep_count) m->indep_count = indep_count; m->update_lls = update_lls; m->evaluate_lls = evaluate_lls; + if (ARCH_X86) + ff_init_lls_x86(m); } #if FF_API_LLS_PRIVATE @@ -154,7 +156,7 @@ int main(void) avpriv_init_lls(&m, 3); for (i = 0; i < 100; i++) { - double var[4]; + LOCAL_ALIGNED(32, double, var, [4]); double eval; var[0] = (av_lfg_get(&lfg) / (double) UINT_MAX - 0.5) * 2; |