summaryrefslogtreecommitdiff
path: root/apps/codecs/lib
diff options
context:
space:
mode:
authorDave Hooper <dave@beermex.com>2009-04-25 11:25:13 +0000
committerDave Hooper <dave@beermex.com>2009-04-25 11:25:13 +0000
commit67fb5415f78a3198030a6285d1ccc641044f149b (patch)
tree1af65f6512f42361a5e83207d4b76b00265776cd /apps/codecs/lib
parent738824ccdd327da7d9d13fe9d2a48e74c40ad62f (diff)
Commit FS#9882 - make better use of iram at different quality encodings, remove redundant memsets, implement doublebuffer if it will fit in iram to save a mempcy each frame, and some alignment fixes for coldfire
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20783 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/lib')
-rw-r--r--apps/codecs/lib/asm_mcf5249.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/codecs/lib/asm_mcf5249.h b/apps/codecs/lib/asm_mcf5249.h
index 20899f0a5b..e3dc8dd684 100644
--- a/apps/codecs/lib/asm_mcf5249.h
+++ b/apps/codecs/lib/asm_mcf5249.h
@@ -143,7 +143,7 @@ static inline
void vect_add(int32_t *x, int32_t *y, int n)
{
/* align to 16 bytes */
- while(n>0 && (int)x&16) {
+ while(n>0 && (int)x&15) {
*x++ += *y++;
n--;
}
@@ -177,7 +177,7 @@ static inline
void vect_copy(int32_t *x, int32_t *y, int n)
{
/* align to 16 bytes */
- while(n>0 && (int)x&16) {
+ while(n>0 && (int)x&15) {
*x++ = *y++;
n--;
}
@@ -204,7 +204,7 @@ static inline
void vect_mult_fw(int32_t *data, int32_t *window, int n)
{
/* ensure data is aligned to 16-bytes */
- while(n>0 && (int)data%16) {
+ while(n>0 && (int)data&15) {
*data = MULT31(*data, *window);
data++;
window++;
@@ -258,7 +258,7 @@ static inline
void vect_mult_bw(int32_t *data, int32_t *window, int n)
{
/* ensure at least data is aligned to 16-bytes */
- while(n>0 && (int)data%16) {
+ while(n>0 && (int)data&15) {
*data = MULT31(*data, *window);
data++;
window--;