diff options
| author | Rafaël Carré <rafael.carre@gmail.com> | 2010-06-23 04:34:18 +0000 |
|---|---|---|
| committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-06-23 04:34:18 +0000 |
| commit | 2494afccc4d1e0dbd085c5b7ed5518815281b422 (patch) | |
| tree | 4ad37b2a4800ce99687fcb9d5eb0877c888eaa55 /apps/buffering.c | |
| parent | 6281d8e21434878a72e63bf917f6c5520f9fb2c1 (diff) | |
| download | rockbox-2494afccc4d1e0dbd085c5b7ed5518815281b422.zip rockbox-2494afccc4d1e0dbd085c5b7ed5518815281b422.tar.gz rockbox-2494afccc4d1e0dbd085c5b7ed5518815281b422.tar.bz2 rockbox-2494afccc4d1e0dbd085c5b7ed5518815281b422.tar.xz | |
playback.c: don't assume cacheline size is 16 bytes
ideally all targets should define CACHEALIGN_BITS, for now we default it
to 16 bytes if it's not specified
Since the buffer is already aligned in playback.c no need to align it
again in buffering.c
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27073 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/buffering.c')
| -rw-r--r-- | apps/buffering.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/buffering.c b/apps/buffering.c index c2cecdd..489a450 100644 --- a/apps/buffering.c +++ b/apps/buffering.c @@ -1577,8 +1577,7 @@ bool buffering_reset(char *buf, size_t buflen) return false; buffer = buf; - /* Preserve alignment when wrapping around */ - buffer_len = STORAGE_ALIGN_DOWN(buflen); + buffer_len = buflen; guard_buffer = buf + buflen; buf_widx = 0; |