aboutsummaryrefslogtreecommitdiff
path: root/test/common/test_common_macros.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/common/test_common_macros.h')
-rw-r--r--test/common/test_common_macros.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/common/test_common_macros.h b/test/common/test_common_macros.h
new file mode 100644
index 000000000..405f626e9
--- /dev/null
+++ b/test/common/test_common_macros.h
@@ -0,0 +1,15 @@
+/* SPDX-License-Identifier: BSD-3-Clause
+ * Copyright (c) 2021 Nokia
+ */
+
+#ifndef TEST_COMMON_MACROS_H_
+#define TEST_COMMON_MACROS_H_
+
+/*
+ * Common macros for validation tests
+ */
+
+/* Check if 'x' is a power of two value */
+#define TEST_CHECK_POW2(x) ((((x) - 1) & (x)) == 0)
+
+#endif