Mercurial > mplayer.hg
changeset 25074:bbdd0202c238
100l, *ppc++ was supposed to be replaced by ppc[i] in r25100, but that is not any faster.
Just removing the += s->samples_overlap - s->num_channels; still provides a
ca. 20% speedup on x86 (AThlon X2 64) with gcc 3.4 (compiler stupidity?)
author | reimar |
---|---|
date | Sun, 18 Nov 2007 18:33:45 +0000 |
parents | 21227667b70a |
children | c18499a044ce |
files | libaf/af_scaletempo.c |
diffstat | 1 files changed, 0 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libaf/af_scaletempo.c Sun Nov 18 17:44:11 2007 +0000 +++ b/libaf/af_scaletempo.c Sun Nov 18 18:33:45 2007 +0000 @@ -171,8 +171,6 @@ int32_t corr = 0; int16_t* ps = search_start; ppc = s->buf_pre_corr; - ppc += s->samples_overlap - s->num_channels; - ps += s->samples_overlap - s->num_channels; i = -(s->samples_overlap - s->num_channels); do { corr += ( *ppc++ * *ps++ ) >> s->shift_corr;