projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
493f01d
)
[PATCH] Define BITS_PER_BYTE
author
Bryan O'Sullivan
<bos@pathscale.com>
Wed, 1 Feb 2006 11:05:15 +0000
(
03:05
-0800)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Wed, 1 Feb 2006 16:53:13 +0000
(08:53 -0800)
This can make the intent behind some arithmetic expressions clearer.
Signed-off-by: Bryan O'Sullivan <bos@pathscale.com>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/types.h
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/types.h
b/include/linux/types.h
index 21b9ce80364429abd04e9ef718834d0a6427eb15..54ae2d59e71bcd2b34c54a099dcb6773736b2bcb 100644
(file)
--- a/
include/linux/types.h
+++ b/
include/linux/types.h
@@
-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>