From f86ce74ffd4e4703a78fa7eb972e0bef40e78e16 Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Tue, 11 Apr 2017 16:09:19 -0700 Subject: [PATCH] Add BITS_PER_LONG define Signed-off-by: Zach Brown --- utils/src/util.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/src/util.h b/utils/src/util.h index ee6516e7..89ec4b4f 100644 --- a/utils/src/util.h +++ b/utils/src/util.h @@ -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