aboutsummaryrefslogtreecommitdiffstats
path: root/Transceiver52M/osmo-trx.cpp
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2017-03-15 18:09:35 +0100
committerTom Tsou <tom@tsou.cc>2017-05-19 17:12:45 +0000
commit7e07cf23464532ca156fe4ea4430928da2cbbff1 (patch)
tree8494a34c4eafe147c408f4da17b853e15b1754e1 /Transceiver52M/osmo-trx.cpp
parentdfe0aef184e5c98136a38f6c604a9f6171574671 (diff)
ssedetect: Add runtime CPU detection
The current implementation can select the SSE support level during compiletime only. This commit adds functionality to automatically detect and switch the SSE support level and automatically switch the Implementation if the CPU does not support the required SSE level. Change-Id: Iba74f8a6e4e921ff31e4bd9f0c7c881fe547423a
Diffstat (limited to 'Transceiver52M/osmo-trx.cpp')
-rw-r--r--Transceiver52M/osmo-trx.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/Transceiver52M/osmo-trx.cpp b/Transceiver52M/osmo-trx.cpp
index b07ffe8..2d35a60 100644
--- a/Transceiver52M/osmo-trx.cpp
+++ b/Transceiver52M/osmo-trx.cpp
@@ -32,6 +32,11 @@
#include <Logger.h>
#include <Configuration.h>
+extern "C" {
+#include "convolve.h"
+#include "convert.h"
+}
+
/* Samples-per-symbol for downlink path
* 4 - Uses precision modulator (more computation, less distortion)
* 1 - Uses minimized modulator (less computation, more distortion)
@@ -422,6 +427,9 @@ int main(int argc, char *argv[])
RadioDevice::InterfaceType iface = RadioDevice::NORMAL;
struct trx_config config;
+ convolve_init();
+ convert_init();
+
handle_options(argc, argv, &config);
setup_signal_handlers();