summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/generic.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/generic.h b/include/generic.h
index dbdadd2..964501f 100644
--- a/include/generic.h
+++ b/include/generic.h
@@ -113,6 +113,7 @@ inline T MIN(T a, T b) {
#define BX_(x) ((x) - (((x)>>1)&0x77777777) \
- (((x)>>2)&0x33333333) \
- (((x)>>3)&0x11111111))
+#define ISPOT(x) (((x)&(x-1))==0?1:0)
#include <sys/types.h>
#include <sys/stat.h>