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:
Andrew Mahone 2009-06-06 00:58:57 +00:00
parent d2eb5d2901
commit c76d940c06
2 changed files with 2 additions and 2 deletions

View file

@ -267,7 +267,7 @@ static inline uint32_t swap_odd_even32(uint32_t value)
#endif /* !SIMULATOR */ #endif /* !SIMULATOR */
#ifndef BIT_N #ifndef BIT_N
#define BIT_N(n) (1UL << (n)) #define BIT_N(n) (1U << (n))
#endif #endif
/* Declare this as HIGHEST_IRQ_LEVEL if they don't differ */ /* Declare this as HIGHEST_IRQ_LEVEL if they don't differ */

View file

@ -129,7 +129,7 @@ static inline uint32_t swap_odd_even32(uint32_t value)
extern const unsigned bit_n_table[32]; extern const unsigned bit_n_table[32];
#define BIT_N(n) ( \ #define BIT_N(n) ( \
__builtin_constant_p(n) \ __builtin_constant_p(n) \
? (1LU << (n)) \ ? (1U << (n)) \
: bit_n_table[n] \ : bit_n_table[n] \
) )