From 2494afccc4d1e0dbd085c5b7ed5518815281b422 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Wed, 23 Jun 2010 04:34:18 +0000 Subject: 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 --- apps/buffering.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'apps/buffering.c') 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; -- cgit v1.1