提交 f7589f28 编写于 作者: B Bryan O'Sullivan 提交者: Linus Torvalds

[PATCH] Define BITS_PER_BYTE

This can make the intent behind some arithmetic expressions clearer.
Signed-off-by: NBryan O'Sullivan <bos@pathscale.com>
Signed-off-by: NAdrian Bunk <bunk@stusta.de>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 493f01d1
......@@ -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>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册