diff options
author | Aleksandrs Saveljevs <git-no-reply@zabbix.com> | 2015-11-11 18:40:31 +0300 |
---|---|---|
committer | Aleksandrs Saveljevs <git-no-reply@zabbix.com> | 2015-11-11 18:40:31 +0300 |
commit | 63246dea13fe5ad33c3de19bc3c2f58ea126cd13 (patch) | |
tree | 2c4a9e4ba1a0abae0eb57d6f01e2c7536d686e4a /include/zbxtypes.h | |
parent | bcd271adfd05f5f568044b55d8a68b5445609f63 (diff) | |
parent | ef2bb8f6984fe299326248b7c5bfdf57a4435533 (diff) |
.......... [ZBXNEXT-1263] updated to the latest trunk (fixed conflicts with ZBX-1916 in dbconfig.c)
Diffstat (limited to 'include/zbxtypes.h')
-rw-r--r-- | include/zbxtypes.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/zbxtypes.h b/include/zbxtypes.h index 6c3e9e6bc99..f682f49b4ef 100644 --- a/include/zbxtypes.h +++ b/include/zbxtypes.h @@ -167,4 +167,7 @@ zbx_uint128_t; #define ZBX_SIZE_T_ALIGN8(size) (((size) + 7) & ~(size_t)7) +/* macro to test if a signed value has been assigned to unsigned type (char, short, int, long long) */ +#define ZBX_IS_TOP_BIT_SET(x) (0 != ((__UINT64_C(1) << ((sizeof(x) << 3) - 1)) & (x))) + #endif |