aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp1/usrp1_impl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/usrp/usrp1/usrp1_impl.cpp')
-rw-r--r--host/lib/usrp/usrp1/usrp1_impl.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/host/lib/usrp/usrp1/usrp1_impl.cpp b/host/lib/usrp/usrp1/usrp1_impl.cpp
index 6ed1a6a69..d88b6af8e 100644
--- a/host/lib/usrp/usrp1/usrp1_impl.cpp
+++ b/host/lib/usrp/usrp1/usrp1_impl.cpp
@@ -16,8 +16,8 @@
#include <boost/filesystem.hpp>
#include <boost/format.hpp>
#include <boost/lexical_cast.hpp>
-#include <boost/math/special_functions/round.hpp>
#include <chrono>
+#include <cmath>
#include <cstdio>
#include <functional>
@@ -533,8 +533,8 @@ void usrp1_impl::set_enb_rx_dc_offset(const std::string& db, const bool enb)
std::complex<double> usrp1_impl::set_rx_dc_offset(
const std::string& db, const std::complex<double>& offset)
{
- const int32_t i_off = boost::math::iround(offset.real() * (1ul << 31));
- const int32_t q_off = boost::math::iround(offset.imag() * (1ul << 31));
+ const int32_t i_off = static_cast<int32_t>(std::lround(offset.real() * (1ul << 31)));
+ const int32_t q_off = static_cast<int32_t>(std::lround(offset.imag() * (1ul << 31)));
if (db == "A") {
_iface->poke32(FR_ADC_OFFSET_0, i_off);