diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2010-05-11 09:08:26 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2010-05-11 09:08:26 +0000 |
commit | 1e3eec2d3d6c99afb65106786e51ea954ca04826 (patch) | |
tree | 473ca3c27f2f0137ff180b709c8feab1f5c3f7a1 /apps/dsp_arm.S | |
parent | ab4c86cbc6a66b3c1df25676d0682c77a842a4a3 (diff) |
ARM DSP: fore some reason I neglected dsp_downsample completely. Do a small reordering.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25944 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/dsp_arm.S')
-rw-r--r-- | apps/dsp_arm.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/dsp_arm.S b/apps/dsp_arm.S index b4871d1506..4d44e42dd6 100644 --- a/apps/dsp_arm.S +++ b/apps/dsp_arm.S @@ -368,10 +368,10 @@ dsp_downsample: @ keep frac in lower bits to take advantage of multiplier early termination and r9, r1, r12 @ frac = phase & 0xffff smull r9, r14, r11, r9 - add r10, r10, r14, lsl #16 + add r1, r1, r6 @ phase += delta add r10, r10, r9, lsr #16 @ r10 = out = s[pos - 1] + frac*diff + add r10, r10, r14, lsl #16 str r10, [r8], #4 @ *d++ = out - add r1, r1, r6 @ phase += delta mov r9, r1, lsr #16 @ pos = phase >> 16 cmp r9, r0 @ pos < count? blt .dsloop @ yup, do more samples |