Searched refs:log2 (Results 1 – 4 of 4) sorted by relevance
669 uint32_t log2; in CMU_DivToLog2() local675 log2 = (31U - __CLZ(div)); in CMU_DivToLog2()677 return log2; in CMU_DivToLog2()730 uint32_t log2; in CMU_PrescToLog2() local736 log2 = 31UL - __CLZ(presc + (uint32_t) 1); in CMU_PrescToLog2()739 EFM_ASSERT(presc == (SL_Log2ToDiv(log2) - 1U)); in CMU_PrescToLog2()741 return log2; in CMU_PrescToLog2()
3472 uint32_t log2;3478 log2 = 31UL - __CLZ(div);3480 return log2;3631 uint32_t log2; in CMU_PrescToLog2() local3638 log2 = 31UL - __CLZ(presc + (uint32_t) 1); in CMU_PrescToLog2()3641 EFM_ASSERT(presc == (SL_Log2ToDiv(log2) - 1U)); in CMU_PrescToLog2()3643 return log2; in CMU_PrescToLog2()
373 __STATIC_INLINE uint32_t SL_Log2ToDiv(uint32_t log2) in SL_Log2ToDiv() argument375 EFM_ASSERT(log2 < 32U); in SL_Log2ToDiv()376 return 1UL << log2; in SL_Log2ToDiv()
62 uint32_t log2; in divToLog2() local68 log2 = (31UL - __CLZ(div)); in divToLog2()70 return log2; in divToLog2()