diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2010-03-25 23:03:42 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-03-25 23:03:42 +0000 |
commit | 2109a0278cd2cb9b079268a9f064390b7485033b (patch) | |
tree | 996474ee88fbe5154caa4d083d9e8cd24fb707a3 /firmware | |
parent | a8d1690ffec4a67fdcb0836fd91989fd1dbf5a7a (diff) | |
download | rockbox-2109a0278cd2cb9b079268a9f064390b7485033b.tar.gz rockbox-2109a0278cd2cb9b079268a9f064390b7485033b.zip |
Accept expressions in CACHE_OVERLAP() macro
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25337 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/export/system.h | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
315 | /* Pad a size so the buffer can be aligned later */ | 315 | /* Pad a size so the buffer can be aligned later */ |
316 | #define CACHE_PAD(x) ((x) + CACHEALIGN_SIZE - 1) | 316 | #define CACHE_PAD(x) ((x) + CACHEALIGN_SIZE - 1) |
317 | /* Number of bytes in the last cacheline assuming buffer of size x is aligned */ | 317 | /* Number of bytes in the last cacheline assuming buffer of size x is aligned */ |
318 | #define CACHE_OVERLAP(x) (x & (CACHEALIGN_SIZE - 1)) | 318 | #define CACHE_OVERLAP(x) ((x) & (CACHEALIGN_SIZE - 1)) |
319 | 319 | ||
320 | #ifdef NEEDS_STORAGE_ALIGN | 320 | #ifdef NEEDS_STORAGE_ALIGN |
321 | #define STORAGE_ALIGN_DOWN(x) CACHEALIGN_DOWN(x) | 321 | #define STORAGE_ALIGN_DOWN(x) CACHEALIGN_DOWN(x) |