Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
Z_POW2_CEIL() tests

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.
 

Detailed Description

Test the Z_POW2_CEIL() macro.

Function Documentation

◆ test_pow2_ceil_x()

static void test_pow2_ceil_x ( unsigned long  test_value,
unsigned long  expected_result 
)
static

#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.

Variable Documentation

◆ static_array1

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.