mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-23 07:03:08 +00:00
utils: Fix BIT() signedness
Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
parent
425daaedbd
commit
326ba6fb33
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@
|
|||
} while (0)
|
||||
#endif
|
||||
|
||||
#define BIT(x) (1L << (x))
|
||||
#define BIT(x) (1UL << (x))
|
||||
#define MASK(x) (BIT(x) - 1)
|
||||
#define GENMASK(msb, lsb) ((BIT((msb + 1) - (lsb)) - 1) << (lsb))
|
||||
#define _FIELD_LSB(field) ((field) & ~(field - 1))
|
||||
|
|
Loading…
Reference in a new issue