From 5c6ffe5653db6a6f423a29891c25fe65397fab24 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Mon, 29 Aug 2016 13:14:51 +0200 Subject: [PATCH] common: introduce macro for bit declarations --- src/suricata-common.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/suricata-common.h b/src/suricata-common.h index 141e8671d9..da44d33520 100644 --- a/src/suricata-common.h +++ b/src/suricata-common.h @@ -301,6 +301,9 @@ #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 */ -- 2.47.2