diff options
author | Dave Chapman <dave@dchapman.com> | 2007-06-06 08:53:55 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2007-06-06 08:53:55 +0000 |
commit | 8dcd6058c8b72c2a757bbf0d1ee20435d2a44125 (patch) | |
tree | 20d13510dcac740977f8ec05ef90b575395993c3 /apps/codecs/demac/libdemac | |
parent | b42c20ff52bbb6dd2ed7595b02ebbc536aa5ae8a (diff) | |
download | rockbox-8dcd6058c8b72c2a757bbf0d1ee20435d2a44125.tar.gz rockbox-8dcd6058c8b72c2a757bbf0d1ee20435d2a44125.zip |
Correct a comment (thanks to Markun for spotting)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13569 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/demac/libdemac')
-rw-r--r-- | apps/codecs/demac/libdemac/filter.c | 7 |
1 files 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 @@ | |||
2 | 2 | ||
3 | libdemac - A Monkey's Audio decoder | 3 | libdemac - A Monkey's Audio decoder |
4 | 4 | ||
5 | $Id:$ | 5 | $Id$ |
6 | 6 | ||
7 | Copyright (C) Dave Chapman 2007 | 7 | Copyright (C) Dave Chapman 2007 |
8 | 8 | ||
@@ -70,6 +70,8 @@ struct filter_t { | |||
70 | 70 | ||
71 | /* Some macros to handle the fixed-point stuff */ | 71 | /* Some macros to handle the fixed-point stuff */ |
72 | 72 | ||
73 | /* Convert from (32-FRACBITS).FRACBITS fixed-point format to an | ||
74 | integer (rounding to nearest). */ | ||
73 | #define FP_HALF (1 << (FRACBITS - 1)) /* 0.5 in fixed-point format. */ | 75 | #define FP_HALF (1 << (FRACBITS - 1)) /* 0.5 in fixed-point format. */ |
74 | #define FP_TO_INT(x) ((x + FP_HALF) >> FRACBITS); /* round(x) */ | 76 | #define FP_TO_INT(x) ((x + FP_HALF) >> FRACBITS); /* round(x) */ |
75 | 77 | ||
@@ -91,9 +93,6 @@ static inline void do_apply_filter_3980(struct filter_t* f, int32_t* data, int c | |||
91 | else if (*data > 0) | 93 | else if (*data > 0) |
92 | vector_sub(f->coeffs, f->adaptcoeffs - ORDER); | 94 | vector_sub(f->coeffs, f->adaptcoeffs - ORDER); |
93 | 95 | ||
94 | /* Convert res from (32-FRACBITS).FRACBITS fixed-point format to an | ||
95 | integer (rounding to nearest) and add the input value to | ||
96 | it */ | ||
97 | res += *data; | 96 | res += *data; |
98 | 97 | ||
99 | *data++ = res; | 98 | *data++ = res; |