From 1c46ebf0d7108f1e3dd72fd7fc31f4e143615a43 Mon Sep 17 00:00:00 2001 From: Nick Foster Date: Wed, 28 Jul 2010 16:17:22 -0700 Subject: use int not rint. --- host/lib/gain_group.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'host/lib') 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 #include -#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(); } -- cgit v1.2.3