diff options
author | Loren Merritt <lorenm@u.washington.edu> | 2013-06-18 21:30:42 +0000 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2013-06-29 13:23:57 +0200 |
commit | 502ab21af0ca68f76d6112722c46d2f35c004053 (patch) | |
tree | c68ce5c0c787fc552cf572e4aeb3b14f4d80b8a0 /libavcodec/lpc.c | |
parent | 41578f70cf8aec8e7565fba1ca7e07f3dc46c3d2 (diff) | |
download | ffmpeg-502ab21af0ca68f76d6112722c46d2f35c004053.tar.gz |
x86: lpc: simd av_update_lls
4x-6x faster on sandybridge
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavcodec/lpc.c')
-rw-r--r-- | libavcodec/lpc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/lpc.c b/libavcodec/lpc.c index f60976be94..144bbede44 100644 --- a/libavcodec/lpc.c +++ b/libavcodec/lpc.c @@ -200,7 +200,9 @@ int ff_lpc_calc_coefs(LPCContext *s, ref[i] = fabs(lpc[i][i]); } else if (lpc_type == FF_LPC_TYPE_CHOLESKY) { LLSModel m[2]; - double var[MAX_LPC_ORDER+1], av_uninit(weight); + LOCAL_ALIGNED(32, double, var, [FFALIGN(MAX_LPC_ORDER+1,4)]); + double av_uninit(weight); + memset(var, 0, FFALIGN(MAX_LPC_ORDER+1,4)*sizeof(*var)); for(pass=0; pass<lpc_passes; pass++){ avpriv_init_lls(&m[pass&1], max_order); |