From a74a3d0bcbde10a4e6f1640be5fc6b5e632151f4 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Fri, 16 Dec 2011 10:54:26 -0800 Subject: uhd: performance speed up for tx waveforms, no iterative libmath per sample --- host/examples/tx_waveforms.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 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: -- cgit v1.2.3