Home
last modified time | relevance | path

Searched refs:u32_count_trailing_zeros (Results 1 – 12 of 12) sorted by relevance

/Zephyr-latest/tests/unit/math_extras/
Dtests.inc160 zassert_equal(u32_count_trailing_zeros(0), 32);
161 zassert_equal(u32_count_trailing_zeros(1), 0);
162 zassert_equal(u32_count_trailing_zeros(6), 1);
163 zassert_equal(u32_count_trailing_zeros(0x00f00f00), 8);
164 zassert_equal(u32_count_trailing_zeros(0xf00ffc00), 10);
165 zassert_equal(u32_count_trailing_zeros(0xffffffff), 0);
166 zassert_equal(u32_count_trailing_zeros(0x80000000), 31);
/Zephyr-latest/include/zephyr/sys/
Dmath_extras_impl.h222 static inline int u32_count_trailing_zeros(uint32_t x) in u32_count_trailing_zeros() function
227 static inline int u32_count_trailing_zeros(uint32_t x) in u32_count_trailing_zeros() function
248 return u32_count_trailing_zeros((uint32_t)x); in u64_count_trailing_zeros()
250 return 32 + u32_count_trailing_zeros(x >> 32); in u64_count_trailing_zeros()
Dmath_extras.h156 static int u32_count_trailing_zeros(uint32_t x);
/Zephyr-latest/drivers/adc/
Dadc_smartbond_gpadc.c149 int current_channel = u32_count_trailing_zeros(data->channel_read_mask); in adc_context_start_sampling()
236 int current_channel = u32_count_trailing_zeros(data->channel_read_mask); in adc_smartbond_isr()
Dadc_smartbond_sdadc.c150 int current_channel = u32_count_trailing_zeros(data->channel_read_mask); in adc_context_start_sampling()
242 int current_channel = u32_count_trailing_zeros(data->channel_read_mask); in sdadc_smartbond_isr()
/Zephyr-latest/drivers/watchdog/
Dwdt_nrfx.c179 uint8_t i = u32_count_trailing_zeros(requests); in wdt_event_handler()
/Zephyr-latest/kernel/include/
Dpriority_q.h149 sys_dlist_t *l = &pq->queues[i * 32 + u32_count_trailing_zeros(pq->bitmask[i])]; in z_priq_mq_best()
/Zephyr-latest/drivers/timer/
Dnrf_grtc_timer.c412 chan = u32_count_trailing_zeros(grtc_chan_mask); in z_nrf_grtc_wakeup_prepare()
/Zephyr-latest/include/zephyr/net/
Dcoap.h775 int sz = u32_count_trailing_zeros(bytes) - 4; in coap_bytes_to_block_size()
/Zephyr-latest/kernel/
Dsched.c101 cpu = m == 0 ? 0 : u32_count_trailing_zeros(m); in thread_runq()
/Zephyr-latest/drivers/usb/udc/
Dudc_numaker.c1321 uint32_t ep_hw_idx = u32_count_trailing_zeros(epintsts); in numaker_udbd_isr()
/Zephyr-latest/drivers/usb/device/
Dusb_dc_numaker.c1188 uint32_t ep_hw_idx = u32_count_trailing_zeros(epintsts); in numaker_udbd_isr()