diff --git a/include/common.h b/include/common.h index ed8d335c..fd3b52a0 100644 --- a/include/common.h +++ b/include/common.h @@ -52,5 +52,6 @@ #endif #define bit(x) (1 << x) +#define bits(h,l) (((1 << (h + 1)) - 1) & ~((1 << l) - 1)) #endif /* COMMON_H */