From 2f5663dfe9bb9e8f6c85869b0aa1e76f0efede72 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 22 Sep 2016 10:26:12 +0200 Subject: [PATCH] common: introduce BIT_U16 --- src/suricata-common.h | 1 + 1 file changed, 1 insertion(+) 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))