]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
common: introduce macro for bit declarations
authorVictor Julien <victor@inliniac.net>
Mon, 29 Aug 2016 11:14:51 +0000 (13:14 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 29 Aug 2016 11:35:40 +0000 (13:35 +0200)
src/suricata-common.h

index 141e8671d961a522fb708cac2168968085ec5d47..da44d33520fef220793d82410d4e7e780d8b28bc 100644 (file)
 #define MAX(x, y) (((x)<(y))?(y):(x))
 #endif
 
+#define BIT_U32(n) (1UL  << (n))
+#define BIT_U64(n) (1ULL << (n))
+
 typedef enum PacketProfileDetectId_ {
     PROF_DETECT_MPM,
     PROF_DETECT_MPM_PACKET,         /* PKT MPM */