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

Function __CLZ

bsp/efm32/Libraries/CMSIS/Include/arm_math.h:475–488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

473
474
475 __STATIC_INLINE uint32_t __CLZ(q31_t data)
476 {
477 uint32_t count = 0;
478 uint32_t mask = 0x80000000;
479
480 while((data & mask) == 0)
481 {
482 count += 1u;
483 mask = mask >> 1u;
484 }
485
486 return (count);
487
488 }
489
490#endif
491

Callers 4

arm_recip_q31Function · 0.70
arm_recip_q15Function · 0.70
BURTC_DivToLog2Function · 0.50
CMU_DivToLog2Function · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected