MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_ilog2

Function rt_ilog2

components/drivers/include/drivers/misc.h:133–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131
132#ifndef rt_ilog2
133rt_inline int rt_ilog2(rt_ubase_t v)
134{
135 int l = 0;
136
137 while ((1UL << l) < v)
138 {
139 l++;
140 }
141
142 return l;
143}
144#endif /* !rt_ilog2 */
145
146#endif /* __MISC_H__ */

Callers 3

gicv3_its_irq_alloc_msiFunction · 0.85
its_map_releaseFunction · 0.85
its_table_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected