Code Review
/
o-du
/
l2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
[Epic-ID: ODUHIGH-516][Task-ID: ODUHIGH-527] Implementation of E2 Node Configuration...
[o-du/l2.git]
/
src
/
cm
/
cm_math.c
diff --git
a/src/cm/cm_math.c
b/src/cm/cm_math.c
index
3a2e272
..
4167831
100755
(executable)
--- 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 "ssi.h" /* system services interface */
#include "cm_math.h"
-#include "cm_math.x"
-
#include <stdlib.h>
#include <stdlib.h>
-
#include <math.h>
#include <math.h>
-
#ifdef SS_FLOAT
/*
*
#ifdef SS_FLOAT
/*
*
@@
-161,6
+157,24
@@
F64 cmLog10(F64 x)
} /* end of cmLog10 */
#endif /* SS_FLOAT */
} /* 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
**********************************************************************/
/**********************************************************************
End of file
**********************************************************************/