Zephyr Project API 3.7.0-rc1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
pow2.c File Reference
#include <zephyr/ztest.h>
#include <zephyr/kernel.h>

Functions

static void test_pow2_ceil_x (unsigned long test_value, unsigned long expected_result)
 Verify run-time non-constant results.
 
 ZTEST (pow2, test_pow2_ceil)
 
void * common_setup (void)
 
 ZTEST_SUITE (pow2, NULL, common_setup, NULL, NULL, NULL)
 

Variables

char static_array1 [Z_POW2_CEIL(1)]
 Verify compile-time constant results.
 
char static_array2 [Z_POW2_CEIL(2)]
 
char static_array3 [Z_POW2_CEIL(3)]
 
char static_array4 [Z_POW2_CEIL(4)]
 
char static_array5 [Z_POW2_CEIL(5)]
 
char static_array7 [Z_POW2_CEIL(7)]
 
char static_array8 [Z_POW2_CEIL(8)]
 
char static_array9 [Z_POW2_CEIL(9)]
 

Function Documentation

◆ ZTEST()

ZTEST ( pow2  ,
test_pow2_ceil   
)

◆ ZTEST_SUITE()

ZTEST_SUITE ( pow2  ,
NULL  ,
common_setup  ,
NULL  ,
NULL  ,
NULL   
)

Variable Documentation

◆ static_array2

char static_array2[Z_POW2_CEIL(2)]

◆ static_array3

char static_array3[Z_POW2_CEIL(3)]

◆ static_array4

char static_array4[Z_POW2_CEIL(4)]

◆ static_array5

char static_array5[Z_POW2_CEIL(5)]

◆ static_array7

char static_array7[Z_POW2_CEIL(7)]

◆ static_array8

char static_array8[Z_POW2_CEIL(8)]

◆ static_array9

char static_array9[Z_POW2_CEIL(9)]