X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fcm%2Fcm_math.c;h=41678316e1bfcfb800b23d300090a6e98757905a;hb=64580b61ab517a3c1fc09b3e0dc32109b913b726;hp=3a2e272dae8980932f8ee9ea8abbc7ccb8fc941c;hpb=073b67b21b11eefdaa84a30029f374435c3e0fd0;p=o-du%2Fl2.git diff --git a/src/cm/cm_math.c b/src/cm/cm_math.c index 3a2e272da..41678316e 100755 --- a/src/cm/cm_math.c +++ b/src/cm/cm_math.c @@ -40,13 +40,9 @@ #include "ssi.h" /* system services interface */ #include "cm_math.h" -#include "cm_math.x" - #include - #include - #ifdef SS_FLOAT /* * @@ -161,6 +157,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 **********************************************************************/