From 8dcd6058c8b72c2a757bbf0d1ee20435d2a44125 Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Wed, 6 Jun 2007 08:53:55 +0000 Subject: Correct a comment (thanks to Markun for spotting) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13569 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/demac/libdemac/filter.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/apps/codecs/demac/libdemac/filter.c b/apps/codecs/demac/libdemac/filter.c index 76faa67aa7..131c152590 100644 --- a/apps/codecs/demac/libdemac/filter.c +++ b/apps/codecs/demac/libdemac/filter.c @@ -2,7 +2,7 @@ libdemac - A Monkey's Audio decoder -$Id:$ +$Id$ Copyright (C) Dave Chapman 2007 @@ -70,6 +70,8 @@ struct filter_t { /* Some macros to handle the fixed-point stuff */ +/* Convert from (32-FRACBITS).FRACBITS fixed-point format to an + integer (rounding to nearest). */ #define FP_HALF (1 << (FRACBITS - 1)) /* 0.5 in fixed-point format. */ #define FP_TO_INT(x) ((x + FP_HALF) >> FRACBITS); /* round(x) */ @@ -91,9 +93,6 @@ static inline void do_apply_filter_3980(struct filter_t* f, int32_t* data, int c else if (*data > 0) vector_sub(f->coeffs, f->adaptcoeffs - ORDER); - /* Convert res from (32-FRACBITS).FRACBITS fixed-point format to an - integer (rounding to nearest) and add the input value to - it */ res += *data; *data++ = res; -- cgit v1.2.3