mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 17:22:22 +02:00
bitops: introduce BIT() definition
introduce BIT() definition, used in at91_udc gadget driver. Signed-off-by: Heiko Schocher <hs@denx.de> [remove all other occurrences of BIT(x) definition] Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com> Acked-by: Stefan Roese <sr@denx.de> Acked-by: Anatolij Gustschin <agust@denx.de>
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
|
||||
#include <asm/types.h>
|
||||
|
||||
#define BIT(nr) (1UL << (nr))
|
||||
|
||||
/*
|
||||
* ffs: find first bit set. This is defined the same way as
|
||||
* the libc and compiler builtin ffs routines, therefore
|
||||
|
Reference in New Issue
Block a user