summaryrefslogtreecommitdiffhomepage
path: root/util.h
diff options
context:
space:
mode:
authorRoland Stigge <stigge@antcom.de>2019-02-17 14:53:33 +0100
committerRoland Stigge <stigge@antcom.de>2019-02-17 14:53:33 +0100
commit308a53c389cdc2631860f434989cd57efbf91145 (patch)
tree2eadba9413a881045caedd589cc9aec7fda40134 /util.h
parentfef594c82518a8fe4c96794852c1fc849c0ed3b3 (diff)
Implemented Tuner
Diffstat (limited to 'util.h')
-rw-r--r--util.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/util.h b/util.h
new file mode 100644
index 0000000..1d64a80
--- /dev/null
+++ b/util.h
@@ -0,0 +1,15 @@
+#pragma once
+
+#include <complex>
+#include <vector>
+
+namespace RIT {
+
+int bitreverse(int i, int size);
+
+bool is_power_of_two(unsigned int n);
+
+std::vector<double> magnitudes(const std::vector<std::complex<double>>& v);
+
+} // namespace RIT
+