Home
last modified time | relevance | path

Searched refs:u32_count_leading_zeros (Results 1 – 3 of 3) sorted by relevance

/Zephyr-latest/include/zephyr/sys/
Dmath_extras_impl.h188 static inline int u32_count_leading_zeros(uint32_t x) in u32_count_leading_zeros() function
193 static inline int u32_count_leading_zeros(uint32_t x) in u32_count_leading_zeros() function
214 return 32 + u32_count_leading_zeros((uint32_t)x); in u64_count_leading_zeros()
216 return u32_count_leading_zeros(x >> 32); in u64_count_leading_zeros()
Dmath_extras.h132 static int u32_count_leading_zeros(uint32_t x);
/Zephyr-latest/tests/unit/math_extras/
Dtests.inc139 zassert_equal(u32_count_leading_zeros(0), 32);
140 zassert_equal(u32_count_leading_zeros(1), 31);
141 zassert_equal(u32_count_leading_zeros(0xf00f), 16);
142 zassert_equal(u32_count_leading_zeros(0xf00ff00f), 0);
143 zassert_equal(u32_count_leading_zeros(0xffffffff), 0);