mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -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
|
|
@ -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