aboutsummaryrefslogtreecommitdiff
path: root/test/common/test_common_macros.h
blob: 344ac8159211a1ce684fd76230a93a0ded49fefc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* Copyright (c) 2021, Nokia
 * All rights reserved.
 *
 * SPDX-License-Identifier:     BSD-3-Clause
 */

#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