Zephyr API Documentation 4.2.99
A Scalable Open Source RTOS
 4.2.99
ilog2.h File Reference

Provide ilog2() function. More...

#include <stdint.h>
#include <zephyr/toolchain.h>
#include <zephyr/arch/common/ffs.h>
#include <zephyr/sys/util.h>

Go to the source code of this file.

Macros

#define ilog2_compile_time_const_u32(n)
 Calculate the floor of log2 for compile time constant.
#define ilog2(n)
 Calculate integer log2.

Detailed Description

Provide ilog2() function.