From: Victor Julien Date: Thu, 22 Sep 2016 08:26:12 +0000 (+0200) Subject: common: introduce BIT_U16 X-Git-Tag: suricata-3.2beta1~328 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f5663dfe9bb9e8f6c85869b0aa1e76f0efede72;p=thirdparty%2Fsuricata.git common: introduce BIT_U16 --- diff --git a/src/suricata-common.h b/src/suricata-common.h index 09887df58e..cb2c214837 100644 --- a/src/suricata-common.h +++ b/src/suricata-common.h @@ -305,6 +305,7 @@ #define MAX(x, y) (((x)<(y))?(y):(x)) #endif +#define BIT_U16(n) ((uint16_t)(1 << (n))) #define BIT_U32(n) (1UL << (n)) #define BIT_U64(n) (1ULL << (n))