diff options
Diffstat (limited to 'host/examples/txrx_loopback_to_file.cpp')
-rw-r--r-- | host/examples/txrx_loopback_to_file.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/host/examples/txrx_loopback_to_file.cpp b/host/examples/txrx_loopback_to_file.cpp index 39af6401b..0dc489063 100644 --- a/host/examples/txrx_loopback_to_file.cpp +++ b/host/examples/txrx_loopback_to_file.cpp @@ -15,9 +15,9 @@ #include <boost/algorithm/string.hpp> #include <boost/filesystem.hpp> #include <boost/format.hpp> -#include <boost/math/special_functions/round.hpp> #include <boost/program_options.hpp> #include <boost/thread/thread.hpp> +#include <cmath> #include <csignal> #include <fstream> #include <functional> @@ -438,8 +438,7 @@ int UHD_SAFE_MAIN(int argc, char* argv[]) // pre-compute the waveform values const wave_table_class wave_table(wave_type, ampl); - const size_t step = - boost::math::iround(wave_freq / tx_usrp->get_tx_rate() * wave_table_len); + const size_t step = std::lround(wave_freq / tx_usrp->get_tx_rate() * wave_table_len); size_t index = 0; // create a transmit streamer |