From: Victor Julien Date: Mon, 29 Aug 2016 11:14:51 +0000 (+0200) Subject: common: introduce macro for bit declarations X-Git-Tag: suricata-3.1.2~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c6ffe5653db6a6f423a29891c25fe65397fab24;p=thirdparty%2Fsuricata.git common: introduce macro for bit declarations --- 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 */