From 4d9be96a819206534594f79e856fbbd7880588d4 Mon Sep 17 00:00:00 2001 From: Thom Johansen Date: Sun, 6 Nov 2005 23:05:49 +0000 Subject: Changed output format of libmpcdec to non-interleaved stereo for a slight speed boost. Also stopped wasting 10kb of IRAM in the output sample buffer. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7769 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/libmusepack/synth_filter.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'apps/codecs/libmusepack') diff --git a/apps/codecs/libmusepack/synth_filter.c b/apps/codecs/libmusepack/synth_filter.c index bd3c3e8..e01da55 100644 --- a/apps/codecs/libmusepack/synth_filter.c +++ b/apps/codecs/libmusepack/synth_filter.c @@ -372,8 +372,7 @@ static void Synthese_Filter_float_internal(MPC_SAMPLE_FORMAT * OutData,MPC_SAMPL "mac.l %%d3, %%a5, %%acc0\n\t" "movclr.l %%acc0, %%d0\n\t" "asl.l #1, %%d0\n\t" - "move.l %%d0, (%[Data])\n\t" - "addq.l #8, %[Data]" + "move.l %%d0, (%[Data])+\n" : [Data] "+a" (Data) : [V] "a" (V), [D] "a" (D) : "d0", "d1", "d2", "d3", "a5"); @@ -389,7 +388,7 @@ static void Synthese_Filter_float_internal(MPC_SAMPLE_FORMAT * OutData,MPC_SAMPL #endif } V -= 32;//bleh - OutData+=64; + OutData+=32; } } } @@ -409,7 +408,7 @@ mpc_decoder_synthese_filter_float(mpc_decoder *d, MPC_SAMPLE_FORMAT* OutData) memmove(d->V_R + MPC_V_MEM, d->V_R, 960 * sizeof(MPC_SAMPLE_FORMAT) ); Synthese_Filter_float_internal( - OutData + 1, + OutData + MPC_FRAME_LENGTH, (MPC_SAMPLE_FORMAT *)(d->V_R + MPC_V_MEM), (MPC_SAMPLE_FORMAT *)(d->Y_R [0])); } -- cgit v1.1