Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Veksler <Mihails.Vekslers@zabbix.com>2021-10-01 11:40:10 +0300
committerMichael Veksler <Mihails.Vekslers@zabbix.com>2021-10-01 11:40:26 +0300
commite04fc0b0611dc5e85619396827f120ca53b13e59 (patch)
tree7ce782c8871a3cbdea6822097969d37ebc502919 /include/zbxalgo.h
parent4ad35c670b6c692a43a1a736e21fe19ca7e04188 (diff)
.......PS. [ZBXNEXT-6879] fixed multiple PR notes
Diffstat (limited to 'include/zbxalgo.h')
-rw-r--r--include/zbxalgo.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/zbxalgo.h b/include/zbxalgo.h
index 933fb87ce12..6117287faa8 100644
--- a/include/zbxalgo.h
+++ b/include/zbxalgo.h
@@ -90,6 +90,16 @@ typedef void (*zbx_clean_func_t)(void *data);
if ((a) > (b)) \
return +1
+#define ZBX_RETURN_IF_DBL_NOT_EQUAL(a, b) \
+ \
+ if (FAIL == zbx_double_compare(a, b)) \
+ { \
+ if ((a) < (b)) \
+ return -1; \
+ else \
+ return +1; \
+ }
+
int is_prime(int n);
int next_prime(int n);