summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-12-16 10:54:26 -0800
committerJosh Blum <josh@joshknows.com>2011-12-16 10:54:26 -0800
commita74a3d0bcbde10a4e6f1640be5fc6b5e632151f4 (patch)
treec1e2c9bc38b911ba0ef928a8c0e7c754b878f4a5
parentc490cdda00ebd7733c1633939b258225f3834e8e (diff)
downloaduhd-a74a3d0bcbde10a4e6f1640be5fc6b5e632151f4.tar.gz
uhd-a74a3d0bcbde10a4e6f1640be5fc6b5e632151f4.tar.bz2
uhd-a74a3d0bcbde10a4e6f1640be5fc6b5e632151f4.zip
uhd: performance speed up for tx waveforms, no iterative libmath per sample
-rw-r--r--host/examples/tx_waveforms.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/examples/tx_waveforms.cpp b/host/examples/tx_waveforms.cpp
index 6e5c53642..469e27621 100644
--- a/host/examples/tx_waveforms.cpp
+++ b/host/examples/tx_waveforms.cpp
@@ -76,7 +76,7 @@ public:
}
inline std::complex<float> operator()(const double theta) const{
- return _wave_table[unsigned(boost::math::iround(theta*wave_table_len))%wave_table_len];
+ return _wave_table[unsigned(theta*wave_table_len)%wave_table_len];
}
private: