summaryrefslogtreecommitdiffstats
path: root/host/lib
diff options
context:
space:
mode:
authorNick Foster <nick@nerdnetworks.org>2010-07-28 16:17:22 -0700
committerNick Foster <nick@nerdnetworks.org>2010-07-28 16:17:22 -0700
commit1c46ebf0d7108f1e3dd72fd7fc31f4e143615a43 (patch)
treed9ad4bb28fdf1365129918564c7e295ee1a01581 /host/lib
parent8784cf70df692066f224ddf58d624b148ea98301 (diff)
downloaduhd-1c46ebf0d7108f1e3dd72fd7fc31f4e143615a43.tar.gz
uhd-1c46ebf0d7108f1e3dd72fd7fc31f4e143615a43.tar.bz2
uhd-1c46ebf0d7108f1e3dd72fd7fc31f4e143615a43.zip
use int not rint.
Diffstat (limited to 'host/lib')
-rw-r--r--host/lib/gain_group.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/host/lib/gain_group.cpp b/host/lib/gain_group.cpp
index d5d7730fd..1be09dee2 100644
--- a/host/lib/gain_group.cpp
+++ b/host/lib/gain_group.cpp
@@ -25,8 +25,6 @@
#include <vector>
#include <iostream>
-#define rint(x) boost::math::iround(x)
-
using namespace uhd;
static const bool verbose = false;
@@ -85,7 +83,7 @@ public:
BOOST_FOREACH(const gain_fcns_t &fcns, all_fcns){
const gain_range_t range = fcns.get_range();
gain_bucket.push_back(
- max_step*rint(std::clip(gain_left_to_distribute, range.min, range.max)/max_step)
+ max_step*int(std::clip(gain_left_to_distribute, range.min, range.max)/max_step)
);
gain_left_to_distribute -= gain_bucket.back();
}