<JIRA ID: ODUHIGH-332 : Change in TBS calculation part as per TS 38.214 section 5...
[o-du/l2.git] / src / cm / cm_math.c
index 3a2e272..3c65dd6 100755 (executable)
@@ -161,6 +161,24 @@ F64 cmLog10(F64 x)
 } /* end of cmLog10 */
 #endif /* SS_FLOAT */
 
+/*
+*
+*       Fun:   cmLog
+*
+*       Desc:  common primitive for computing the base 2 logrithm of x.
+*
+*       Ret:   log2(x)
+*
+*       Notes: None
+*
+*       File:  cm_math.c
+*
+*/
+float cmLog2(uint32_t x)
+{
+   return ((float) log2(x));
+}
+
 /**********************************************************************
          End of file
 **********************************************************************/