aboutsummaryrefslogtreecommitdiffstats
path: root/host/tests
diff options
context:
space:
mode:
Diffstat (limited to 'host/tests')
-rw-r--r--host/tests/gain_group_test.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/host/tests/gain_group_test.cpp b/host/tests/gain_group_test.cpp
index 98a2516b8..f5239788c 100644
--- a/host/tests/gain_group_test.cpp
+++ b/host/tests/gain_group_test.cpp
@@ -6,13 +6,11 @@
//
#include <uhd/utils/gain_group.hpp>
-#include <boost/math/special_functions/round.hpp>
#include <boost/test/unit_test.hpp>
+#include <cmath>
#include <functional>
#include <iostream>
-#define rint(x) boost::math::iround(x)
-
using namespace uhd;
/***********************************************************************
@@ -34,7 +32,7 @@ public:
void set_value(double gain)
{
double step = get_range().step();
- _gain = step * rint(gain / step);
+ _gain = step * std::round(gain / step);
}
private:
@@ -57,7 +55,7 @@ public:
void set_value(double gain)
{
double step = get_range().step();
- _gain = step * rint(gain / step);
+ _gain = step * std::round(gain / step);
}
private: