aboutsummaryrefslogtreecommitdiffstats
path: root/src/FrequencyInterleaver.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2024-11-05 16:45:35 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2024-11-05 16:47:06 +0100
commit7452ff0fd85da423a5be1fdc3873106160c6ccae (patch)
tree06216a157a17091ca0a7483d4b09923e35c502e3 /src/FrequencyInterleaver.cpp
parentf5214c20ae7fdbd4e00599c01bfb1321930fc805 (diff)
downloaddabmod-7452ff0fd85da423a5be1fdc3873106160c6ccae.tar.gz
dabmod-7452ff0fd85da423a5be1fdc3873106160c6ccae.tar.bz2
dabmod-7452ff0fd85da423a5be1fdc3873106160c6ccae.zip
Debug DEXTER FFT Acccelerator
Diffstat (limited to 'src/FrequencyInterleaver.cpp')
-rw-r--r--src/FrequencyInterleaver.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/FrequencyInterleaver.cpp b/src/FrequencyInterleaver.cpp
index 856e8d0..6f36dcb 100644
--- a/src/FrequencyInterleaver.cpp
+++ b/src/FrequencyInterleaver.cpp
@@ -61,7 +61,7 @@ FrequencyInterleaver::FrequencyInterleaver(size_t mode, bool fixedPoint) :
beta = 255;
break;
default:
- PDEBUG("Carriers: %zu\n", (d_carriers >> 1) << 1);
+ PDEBUG("Carriers: %zu\n", (m_carriers >> 1) << 1);
throw std::runtime_error("FrequencyInterleaver: invalid dab mode");
}
@@ -79,10 +79,10 @@ FrequencyInterleaver::FrequencyInterleaver(size_t mode, bool fixedPoint) :
&& perm <= (num - (num - m_carriers) / 2)
&& perm != (num / 2)) {
PDEBUG("i: %4zu, R: %4zu, d: %4zu, n: %4zu, k: %5zi, index: %zu\n",
- j, perm, perm, index - d_indexes, perm - num / 2,
+ j, perm, perm, index - m_indices, perm - num / 2,
perm > num / 2
? perm - (1 + (num / 2))
- : perm + (d_carriers - (num / 2)));
+ : perm + (m_carriers - (num / 2)));
*(index++) = perm > num / 2 ?
perm - (1 + (num / 2)) : perm + (m_carriers - (num / 2));
}
@@ -114,7 +114,7 @@ void do_process(Buffer* const dataIn, Buffer* dataOut,
}
for (size_t i = 0; i < sizeIn;) {
-// memset(out, 0, d_carriers * sizeof(T));
+// memset(out, 0, m_carriers * sizeof(T));
for (size_t j = 0; j < carriers; i += 4, j += 4) {
out[indices[j]] = in[i];
out[indices[j + 1]] = in[i + 1];