1
0
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:
Heiko Schocher
2015-09-07 13:43:52 +02:00
committed by Tom Rini
parent 9d2f6a9ae7
commit 92a3188d7d
16 changed files with 2 additions and 27 deletions

View File

@@ -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