Add BITS_PER_LONG define

Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
Zach Brown
2017-04-11 16:09:19 -07:00
parent a147239022
commit f86ce74ffd

View File

@@ -60,6 +60,8 @@ do { \
#define container_of(ptr, type, memb) \
((type *)((void *)(ptr) - offsetof(type, memb)))
#define BITS_PER_LONG (sizeof(long) * 8)
/*
* return -1,0,+1 based on the memcmp comparison of the minimum of their
* two lengths. If their min shared bytes are equal but the lengths