mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-10 21:55:10 -05:00
Replace 1UL in BIT_N with 1U to avoid turning it into a 64-bit operation on 64-bit sim targets.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21197 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
d2eb5d2901
commit
c76d940c06
2 changed files with 2 additions and 2 deletions
|
|
@ -267,7 +267,7 @@ static inline uint32_t swap_odd_even32(uint32_t value)
|
|||
#endif /* !SIMULATOR */
|
||||
|
||||
#ifndef BIT_N
|
||||
#define BIT_N(n) (1UL << (n))
|
||||
#define BIT_N(n) (1U << (n))
|
||||
#endif
|
||||
|
||||
/* Declare this as HIGHEST_IRQ_LEVEL if they don't differ */
|
||||
|
|
|
|||
|
|
@ -129,7 +129,7 @@ static inline uint32_t swap_odd_even32(uint32_t value)
|
|||
extern const unsigned bit_n_table[32];
|
||||
#define BIT_N(n) ( \
|
||||
__builtin_constant_p(n) \
|
||||
? (1LU << (n)) \
|
||||
? (1U << (n)) \
|
||||
: bit_n_table[n] \
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue