forked from len0rd/rockbox
Accept expressions in CACHE_OVERLAP() macro
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25337 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
a8d1690ffe
commit
2109a0278c
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue