forked from len0rd/rockbox
Fix warnings and errors. Remove some added stuff that wasn't needed afterall.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14036 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
58fc279d26
commit
5832b59c85
9 changed files with 4 additions and 30 deletions
|
|
@ -43,10 +43,10 @@
|
|||
#define SYS_EVENT_CLS_PLUG 4
|
||||
/* make sure SYS_EVENT_CLS_BITS has enough range */
|
||||
|
||||
/* MSb->|S|c...c|i...i| */
|
||||
#define SYS_EVENT ((long)(~0ul ^ (~0ul >> 1)))
|
||||
/* Bit 31->|S|c...c|i...i| */
|
||||
#define SYS_EVENT ((long)(int)(1 << 31))
|
||||
#define SYS_EVENT_CLS_BITS (3)
|
||||
#define SYS_EVENT_CLS_SHIFT (sizeof (long)*8-SYS_EVENT_CLS_BITS-1)
|
||||
#define SYS_EVENT_CLS_SHIFT (31-SYS_EVENT_CLS_BITS)
|
||||
#define SYS_EVENT_CLS_MASK (((1l << SYS_EVENT_CLS_BITS)-1) << SYS_EVENT_SHIFT)
|
||||
#define MAKE_SYS_EVENT(cls, id) (SYS_EVENT | ((long)(cls) << SYS_EVENT_CLS_SHIFT) | (long)(id))
|
||||
/* Macros for extracting codes */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue