Home
last modified time | relevance | path

Searched refs:log2 (Results 1 – 4 of 4) sorted by relevance

/hal_silabs-3.6.0/gecko/emlib/inc/
Dem_cmu_fpga.h669 uint32_t log2; in CMU_DivToLog2() local
675 log2 = (31U - __CLZ(div)); in CMU_DivToLog2()
677 return log2; in CMU_DivToLog2()
730 uint32_t log2; in CMU_PrescToLog2() local
736 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()
Dem_cmu.h3472 uint32_t log2;
3478 log2 = 31UL - __CLZ(div);
3480 return log2;
3631 uint32_t log2; in CMU_PrescToLog2() local
3638 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()
/hal_silabs-3.6.0/gecko/common/inc/
Dsl_common.h373 __STATIC_INLINE uint32_t SL_Log2ToDiv(uint32_t log2) in SL_Log2ToDiv() argument
375 EFM_ASSERT(log2 < 32U); in SL_Log2ToDiv()
376 return 1UL << log2; in SL_Log2ToDiv()
/hal_silabs-3.6.0/gecko/emlib/src/
Dem_burtc.c62 uint32_t log2; in divToLog2() local
68 log2 = (31UL - __CLZ(div)); in divToLog2()
70 return log2; in divToLog2()