diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2010-05-14 08:44:07 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2010-05-14 08:44:07 +0000 |
commit | d665c926528219cc01be33658e8897a1472db827 (patch) | |
tree | cffe979fed0a85e1ce59581dc4fb59fc2aad9619 /firmware/export/system.h | |
parent | 8cce39bb9f3368ddb324f7b757a62c573d16cc55 (diff) | |
download | rockbox-d665c926528219cc01be33658e8897a1472db827.tar.gz rockbox-d665c926528219cc01be33658e8897a1472db827.zip |
Cache align the pitch detector audiobuffer where needed. Some other misc. changes to try to make sure everything builds.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26011 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/system.h')
-rw-r--r-- | firmware/export/system.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/export/system.h b/firmware/export/system.h index 3984ebeb11..bd31c03028 100644 --- a/firmware/export/system.h +++ b/firmware/export/system.h | |||
@@ -295,10 +295,14 @@ static inline void cpucache_flush(void) | |||
295 | } | 295 | } |
296 | #endif | 296 | #endif |
297 | 297 | ||
298 | #ifndef CACHEALIGN_SIZE /* could be elsewhere for a particular reason */ | ||
298 | #ifdef CACHEALIGN_BITS | 299 | #ifdef CACHEALIGN_BITS |
299 | /* 2^CACHEALIGN_BITS = the byte size */ | 300 | /* 2^CACHEALIGN_BITS = the byte size */ |
300 | #define CACHEALIGN_SIZE (1u << CACHEALIGN_BITS) | 301 | #define CACHEALIGN_SIZE (1u << CACHEALIGN_BITS) |
302 | #else | ||
303 | #define CACHEALIGN_SIZE sizeof(int) | ||
301 | #endif | 304 | #endif |
305 | #endif /* CACHEALIGN_SIZE */ | ||
302 | 306 | ||
303 | #ifdef PROC_NEEDS_CACHEALIGN | 307 | #ifdef PROC_NEEDS_CACHEALIGN |
304 | /* Cache alignment attributes and sizes are enabled */ | 308 | /* Cache alignment attributes and sizes are enabled */ |