From 2109a0278cd2cb9b079268a9f064390b7485033b Mon Sep 17 00:00:00 2001 From: Rafaël Carré Date: Thu, 25 Mar 2010 23:03:42 +0000 Subject: Accept expressions in CACHE_OVERLAP() macro git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25337 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/system.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'firmware/export') diff --git a/firmware/export/system.h b/firmware/export/system.h index fee188802b..7dd01b5c93 100644 --- a/firmware/export/system.h +++ b/firmware/export/system.h @@ -315,7 +315,7 @@ static inline void cpucache_flush(void) /* Pad a size so the buffer can be aligned later */ #define CACHE_PAD(x) ((x) + CACHEALIGN_SIZE - 1) /* Number of bytes in the last cacheline assuming buffer of size x is aligned */ -#define CACHE_OVERLAP(x) (x & (CACHEALIGN_SIZE - 1)) +#define CACHE_OVERLAP(x) ((x) & (CACHEALIGN_SIZE - 1)) #ifdef NEEDS_STORAGE_ALIGN #define STORAGE_ALIGN_DOWN(x) CACHEALIGN_DOWN(x) -- cgit v1.2.3