aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/tune_helper.cpp
diff options
context:
space:
mode:
authorNick Foster <nick@nerdnetworks.org>2010-07-26 11:48:23 -0700
committerNick Foster <nick@nerdnetworks.org>2010-07-26 11:48:23 -0700
commit8d18814cc33cc9a703da5e7eeee00a0d2499074b (patch)
treebaa9d51e6fe867de91662ed9542cfe0bd881b9b8 /host/lib/usrp/tune_helper.cpp
parent5ba60fa140d2f6e96aea1394554232809b3eeae9 (diff)
parentf86c25317b457b280c697fc47905c79bdbbc0c93 (diff)
downloaduhd-8d18814cc33cc9a703da5e7eeee00a0d2499074b.tar.gz
uhd-8d18814cc33cc9a703da5e7eeee00a0d2499074b.tar.bz2
uhd-8d18814cc33cc9a703da5e7eeee00a0d2499074b.zip
Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into codec_gains
Diffstat (limited to 'host/lib/usrp/tune_helper.cpp')
-rw-r--r--host/lib/usrp/tune_helper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/usrp/tune_helper.cpp b/host/lib/usrp/tune_helper.cpp
index c5cce3ecf..e516477d3 100644
--- a/host/lib/usrp/tune_helper.cpp
+++ b/host/lib/usrp/tune_helper.cpp
@@ -16,10 +16,10 @@
//
#include <uhd/usrp/tune_helper.hpp>
-#include <uhd/utils/algorithm.hpp>
#include <uhd/usrp/subdev_props.hpp>
#include <uhd/usrp/dsp_props.hpp>
#include <uhd/usrp/dboard_iface.hpp> //unit_t
+#include <boost/math/special_functions/sign.hpp>
#include <cmath>
using namespace uhd;
@@ -46,7 +46,7 @@ static tune_result_t tune_xx_subdev_and_dxc(
double delta_freq = std::fmod(target_freq - actual_inter_freq, dxc_sample_rate);
bool outside_of_nyquist = std::abs(delta_freq) > dxc_sample_rate/2.0;
double target_dxc_freq = (outside_of_nyquist)?
- std::signum(delta_freq)*dxc_sample_rate - delta_freq : -delta_freq;
+ boost::math::sign(delta_freq)*dxc_sample_rate - delta_freq : -delta_freq;
//invert the sign on the dxc freq given the following conditions
if (unit == dboard_iface::UNIT_TX) target_dxc_freq *= -1.0;