Zephyr Project API 3.7.0
A Scalable Open Source RTOS
|
Test the Z_POW2_CEIL() macro. More...
Functions | |
static void | test_pow2_ceil_x (unsigned long test_value, unsigned long expected_result) |
Verify run-time non-constant results. | |
Variables | |
char | static_array1 [Z_POW2_CEIL(1)] |
Verify compile-time constant results. | |
Test the Z_POW2_CEIL() macro.
#include <tests/kernel/common/src/pow2.c>
Verify run-time non-constant results.
Check if run-time non-constant results are as expected. Use a volatile variable to prevent compiler optimizations.
char static_array1[Z_POW2_CEIL(1)] |
#include <tests/kernel/common/src/pow2.c>
Verify compile-time constant results.
Check if static array allocations are sized as expected.