mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
[PATCH] Define BITS_PER_BYTE
This can make the intent behind some arithmetic expressions clearer. Signed-off-by: Bryan O'Sullivan <[email protected]> Signed-off-by: Adrian Bunk <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
1 parent
493f01d1d0
commit
f7589f28d7
1 file changed
+2
@@ -8,6 +8,8 @@
|
||||
(((bits)+BITS_PER_LONG-1)/BITS_PER_LONG)
|
||||
#define DECLARE_BITMAP(name,bits) \
|
||||
unsigned long name[BITS_TO_LONGS(bits)]
|
||||
|
||||
#define BITS_PER_BYTE 8
|
||||
#endif
|
||||
|
||||
#include <linux/posix_types.h>
|
||||
|
||||
Reference in new issue
Block a user