Home
last modified time | relevance | path

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

/hal_silabs-latest/simplicity_sdk/platform/service/sleeptimer/src/
Dsli_sleeptimer_hal.h170 uint32_t log2; in sleeptimer_hal_presc_to_log2() local
177 log2 = 31UL - __CLZ(presc + (uint32_t) 1); in sleeptimer_hal_presc_to_log2()
180 EFM_ASSERT(presc == (SL_Log2ToDiv(log2) - 1U)); in sleeptimer_hal_presc_to_log2()
182 return log2; in sleeptimer_hal_presc_to_log2()
/hal_silabs-latest/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-latest/simplicity_sdk/platform/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.h3473 uint32_t log2;
3479 log2 = 31UL - __CLZ(div);
3481 return log2;
3632 uint32_t log2; in CMU_PrescToLog2() local
3639 log2 = 31UL - __CLZ(presc + (uint32_t) 1); in CMU_PrescToLog2()
3642 EFM_ASSERT(presc == (SL_Log2ToDiv(log2) - 1U)); in CMU_PrescToLog2()
3644 return log2; in CMU_PrescToLog2()
/hal_silabs-latest/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-latest/gecko/emlib/src/
Dem_burtc.c62 uint32_t log2; in divToLog2() local
68 log2 = (31UL - __CLZ(div)); in divToLog2()
70 return log2; in divToLog2()
/hal_silabs-latest/simplicity_sdk/platform/common/inc/
Dsl_common.h390 __STATIC_INLINE uint32_t SL_Log2ToDiv(uint32_t log2) in SL_Log2ToDiv() argument
392 EFM_ASSERT(log2 < 32U); in SL_Log2ToDiv()
393 return 1UL << log2; in SL_Log2ToDiv()
/hal_silabs-latest/simplicity_sdk/platform/emlib/src/
Dem_burtc.c62 uint32_t log2; in divToLog2() local
68 log2 = (31UL - __CLZ(div)); in divToLog2()
70 return log2; in divToLog2()