Commit 96c79af7 authored by vitor's avatar vitor

Do not reimplement memmove()

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14087 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 1a212d8e
...@@ -54,8 +54,7 @@ static void decode(Real288_internal *glob, float gain, int cb_coef) ...@@ -54,8 +54,7 @@ static void decode(Real288_internal *glob, float gain, int cb_coef)
double sum, sumsum; double sum, sumsum;
float buffer[5]; float buffer[5];
for (x=35; x >= 0; x--) memmove(glob->sb + 5, glob->sb, 36 * sizeof(*glob->sb));
glob->sb[x+5] = glob->sb[x];
for (x=4; x >= 0; x--) for (x=4; x >= 0; x--)
glob->sb[x] = -scalar_product_float(glob->sb + x + 1, glob->pr1, 36); glob->sb[x] = -scalar_product_float(glob->sb + x + 1, glob->pr1, 36);
...@@ -81,8 +80,7 @@ static void decode(Real288_internal *glob, float gain, int cb_coef) ...@@ -81,8 +80,7 @@ static void decode(Real288_internal *glob, float gain, int cb_coef)
sum = 1; sum = 1;
/* shift and store */ /* shift and store */
for (x=10; x > 0; x--) memmove(glob->lhist, glob->lhist - 1, 10 * sizeof(*glob->lhist));
glob->lhist[x] = glob->lhist[x-1];
*glob->lhist = glob->history[glob->phase] = 10 * log10(sum) - 32; *glob->lhist = glob->history[glob->phase] = 10 * log10(sum) - 32;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment