summaryrefslogtreecommitdiff
path: root/DSP/DSP_Lib_TestSuite/RefLibs/src/StatisticsFunctions
diff options
context:
space:
mode:
Diffstat (limited to 'DSP/DSP_Lib_TestSuite/RefLibs/src/StatisticsFunctions')
-rw-r--r--DSP/DSP_Lib_TestSuite/RefLibs/src/StatisticsFunctions/StatisticsFunctions.c8
-rw-r--r--DSP/DSP_Lib_TestSuite/RefLibs/src/StatisticsFunctions/rms.c2
2 files changed, 9 insertions, 1 deletions
diff --git a/DSP/DSP_Lib_TestSuite/RefLibs/src/StatisticsFunctions/StatisticsFunctions.c b/DSP/DSP_Lib_TestSuite/RefLibs/src/StatisticsFunctions/StatisticsFunctions.c
new file mode 100644
index 0000000..426c3f7
--- /dev/null
+++ b/DSP/DSP_Lib_TestSuite/RefLibs/src/StatisticsFunctions/StatisticsFunctions.c
@@ -0,0 +1,8 @@
+
+#include "max.c"
+#include "mean.c"
+#include "min.c"
+#include "power.c"
+#include "rms.c"
+#include "std.c"
+#include "var.c"
diff --git a/DSP/DSP_Lib_TestSuite/RefLibs/src/StatisticsFunctions/rms.c b/DSP/DSP_Lib_TestSuite/RefLibs/src/StatisticsFunctions/rms.c
index 7b91163..58393ca 100644
--- a/DSP/DSP_Lib_TestSuite/RefLibs/src/StatisticsFunctions/rms.c
+++ b/DSP/DSP_Lib_TestSuite/RefLibs/src/StatisticsFunctions/rms.c
@@ -21,7 +21,7 @@ void ref_rms_q31(
q31_t * pResult)
{
uint32_t i;
- q63_t sumsq=0;
+ uint64_t sumsq = 0; /* accumulator (can get never negative. changed type from q63 to uint64 */
q63_t tmp1;
q31_t tmp2;