summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorAndrew Mahone <andrew.mahone@gmail.com>2009-06-06 00:00:58 +0000
committerAndrew Mahone <andrew.mahone@gmail.com>2009-06-06 00:00:58 +0000
commitde7c5711c5d67e7e69386d6e35e42c8ce15de69b (patch)
tree22f58338387ae6ac662e43fe83ef60105f97d627 /firmware/export
parentfe72c890a76c1f227ef749adbdcf964bb166d74c (diff)
downloadrockbox-de7c5711c5d67e7e69386d6e35e42c8ce15de69b.tar.gz
rockbox-de7c5711c5d67e7e69386d6e35e42c8ce15de69b.zip
Add a system-wide BIT_N macro, implemented via an LUT on SH, and use it in the TAGCACHE_IS_* macros in place of per-set LUTs, removing duplication of data between those LUTs and the mask values used on other targets.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21195 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/system.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/export/system.h b/firmware/export/system.h
index b44600d2c2..489ed8dc12 100644
--- a/firmware/export/system.h
+++ b/firmware/export/system.h
@@ -266,6 +266,10 @@ static inline uint32_t swap_odd_even32(uint32_t value)
266 266
267#endif /* !SIMULATOR */ 267#endif /* !SIMULATOR */
268 268
269#ifndef TEST_BIT_N
270#define TEST_BIT_N(n, mask) ((1UL << (n)) & (mask))
271#endif
272
269/* Declare this as HIGHEST_IRQ_LEVEL if they don't differ */ 273/* Declare this as HIGHEST_IRQ_LEVEL if they don't differ */
270#ifndef DISABLE_INTERRUPTS 274#ifndef DISABLE_INTERRUPTS
271#define DISABLE_INTERRUPTS HIGHEST_IRQ_LEVEL 275#define DISABLE_INTERRUPTS HIGHEST_IRQ_LEVEL