aboutsummaryrefslogtreecommitdiffstats
path: root/Transceiver52M/sigProcLib.h
diff options
context:
space:
mode:
authorThomas Tsou <tom@tsou.cc>2013-11-09 02:40:18 -0500
committerThomas Tsou <tom@tsou.cc>2013-11-15 23:35:07 -0500
commit6f4906e375999c242c6e84e1e59cf478490763ed (patch)
tree8fe5b424f60c41268b95fbc58ca387c06af59124 /Transceiver52M/sigProcLib.h
parent0a3dc4c21028f36f02528c9a486de229f786b272 (diff)
Transceiver52M: Dynamically allocate convolution input vectors
This prevents the use of a copy constructor in the downlink modulator and prevents a secondary memory allocation during the convolution. Avoid both cases by dynamically allocating with preloaded head room. The latter provides enough memory before the first sample in the burst to cover the length of the filter taps. Signed-off-by: Thomas Tsou <tom@tsou.cc>
Diffstat (limited to 'Transceiver52M/sigProcLib.h')
-rw-r--r--Transceiver52M/sigProcLib.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Transceiver52M/sigProcLib.h b/Transceiver52M/sigProcLib.h
index 516d352..ebe7519 100644
--- a/Transceiver52M/sigProcLib.h
+++ b/Transceiver52M/sigProcLib.h
@@ -95,6 +95,9 @@ class signalVector: public Vector<complex>
symmetry = NONE;
};
+ /** start index */
+ int getStartIndex() const { return mStart - mData; };
+
/** symmetry operators */
Symmetry getSymmetry() const { return symmetry;};
void setSymmetry(Symmetry wSymmetry) { symmetry = wSymmetry;};