projects
/
oweals
/
u-boot_mod.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1faa723
)
Another helper macro moved to include/linux/bitops.h
author
Piotr Dymacz
<pepe2k@gmail.com>
Wed, 11 Nov 2015 23:04:32 +0000
(
00:04
+0100)
committer
Piotr Dymacz
<pepe2k@gmail.com>
Wed, 11 Nov 2015 23:04:32 +0000
(
00:04
+0100)
u-boot/include/linux/bitops.h
patch
|
blob
|
history
diff --git
a/u-boot/include/linux/bitops.h
b/u-boot/include/linux/bitops.h
index 91b113adadb784be39f069aed60e3c81c861893a..6849219fa94e000ba9fa0c74f5c94bb38d478535 100755
(executable)
--- a/
u-boot/include/linux/bitops.h
+++ b/
u-boot/include/linux/bitops.h
@@
-4,8
+4,9
@@
/*
* Helper macros
*/
-#define BIT(_x) (1 << (_x))
-#define BITS(_start, _bits) (((1UL << (_bits)) - 1) << _start)
+#define BIT(_x) (1 << (_x))
+#define BITS(_start, _bits) (((1UL << (_bits)) - 1) << _start)
+#define CHECK_BIT(_var, _pos) ((_var) & (1 << (_pos)))
/*
* ffs: find first bit set. This is defined the same way as