aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/types
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/types')
-rw-r--r--host/lib/types/ranges.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/host/lib/types/ranges.cpp b/host/lib/types/ranges.cpp
index f7fbc0f92..16edeccca 100644
--- a/host/lib/types/ranges.cpp
+++ b/host/lib/types/ranges.cpp
@@ -7,8 +7,8 @@
#include <uhd/exception.hpp>
#include <uhd/types/ranges.hpp>
-#include <boost/math/special_functions/round.hpp>
#include <algorithm>
+#include <cmath>
#include <sstream>
using namespace uhd;
@@ -148,8 +148,7 @@ double meta_range_t::clip(double value, bool clip_step) const
if (value <= r.stop()) {
if (not clip_step or r.step() == 0)
return value;
- return boost::math::round((value - r.start()) / r.step()) * r.step()
- + r.start();
+ return std::round((value - r.start()) / r.step()) * r.step() + r.start();
}
// continue on to the next range
last_stop = r.stop();