aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/rfnoc/duc_block_control.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/rfnoc/duc_block_control.cpp')
-rw-r--r--host/lib/rfnoc/duc_block_control.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/rfnoc/duc_block_control.cpp b/host/lib/rfnoc/duc_block_control.cpp
index 87f6500a2..12937ac21 100644
--- a/host/lib/rfnoc/duc_block_control.cpp
+++ b/host/lib/rfnoc/duc_block_control.cpp
@@ -16,7 +16,7 @@
#include <uhdlib/usrp/cores/dsp_core_utils.hpp>
#include <uhdlib/utils/compat_check.hpp>
#include <uhdlib/utils/math.hpp>
-#include <boost/math/special_functions/round.hpp>
+#include <cmath>
#include <set>
#include <string>
@@ -504,7 +504,7 @@ private:
const double compensation_factor = 1. / dsp_gain;
// Convert to fixpoint
const double target_factor = FIXPOINT_SCALING * compensation_factor;
- const int32_t actual_factor = boost::math::iround(target_factor);
+ const int32_t actual_factor = static_cast<int32_t>(std::lround(target_factor));
// Write DUC with scaling correction for CIC and DDS that maximizes
// dynamic range
_duc_reg_iface.poke32(SR_SCALE_IQ_ADDR, actual_factor, chan);