diff options
author | Bryan O'Sullivan <bos@pathscale.com> | 2006-02-01 11:05:15 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-02-01 16:53:13 (GMT) |
commit | f7589f28d7dd4586b4e90ac3b2a180409669053a (patch) | |
tree | c1f9967dfa36713bd9b2b372a9c6214ebf8dc48c /include/linux | |
parent | 493f01d1d0699ddafc30067d33fcc18d0b95b624 (diff) | |
download | linux-fsl-qoriq-f7589f28d7dd4586b4e90ac3b2a180409669053a.tar.xz |
[PATCH] Define BITS_PER_BYTE
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>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/types.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/types.h b/include/linux/types.h index 21b9ce8..54ae2d5 100644 --- 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> |