From 67fb5415f78a3198030a6285d1ccc641044f149b Mon Sep 17 00:00:00 2001 From: Dave Hooper Date: Sat, 25 Apr 2009 11:25:13 +0000 Subject: 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 --- apps/codecs/lib/asm_mcf5249.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'apps/codecs/lib/asm_mcf5249.h') 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--; -- cgit v1.2.3