diff options
Diffstat (limited to 'host/lib/rfnoc')
| -rw-r--r-- | host/lib/rfnoc/ddc_block_control.cpp | 4 | ||||
| -rw-r--r-- | host/lib/rfnoc/duc_block_control.cpp | 4 | 
2 files changed, 4 insertions, 4 deletions
| diff --git a/host/lib/rfnoc/ddc_block_control.cpp b/host/lib/rfnoc/ddc_block_control.cpp index 91c53a5e9..3326d4e46 100644 --- a/host/lib/rfnoc/ddc_block_control.cpp +++ b/host/lib/rfnoc/ddc_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> @@ -520,7 +520,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 = std::lround(target_factor);          // Write DDC with scaling correction for CIC and DDS that maximizes          // dynamic range          _ddc_reg_iface.poke32(SR_SCALE_IQ_ADDR, actual_factor, chan); 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); | 
