[openib-general] [PATCH 4 of 20] Define BITS_PER_BYTE

Bryan O'Sullivan bos at pathscale.com
Wed Dec 28 16:31:23 PST 2005


This can make some arithmetic expressions clearer.

Signed-off-by: Bryan O'Sullivan <bos at pathscale.com>

diff -r b792638cc4bc -r a3a00f637da6 include/linux/types.h
--- a/include/linux/types.h	Wed Dec 28 14:19:42 2005 -0800
+++ b/include/linux/types.h	Wed Dec 28 14:19:42 2005 -0800
@@ -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>



More information about the general mailing list