From 188fbb17cfd18c87f60ec56f62476f97ef2779bb Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Sat, 19 Jun 2021 00:06:52 +0200 Subject: uhd: Remove all occurences of boost::math::*round() Its behaviour is almost identical to std::lround, which we use instead. The only downside of std::lround is that it always returns a long, which we don't always need. We thus add some casts for those cases to make the compiler happy. --- host/lib/include/uhdlib/usrp/common/max287x.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'host/lib/include/uhdlib') diff --git a/host/lib/include/uhdlib/usrp/common/max287x.hpp b/host/lib/include/uhdlib/usrp/common/max287x.hpp index 8aa7e947e..de3db9b4b 100644 --- a/host/lib/include/uhdlib/usrp/common/max287x.hpp +++ b/host/lib/include/uhdlib/usrp/common/max287x.hpp @@ -18,8 +18,8 @@ #include #include #include -#include #include +#include #include #include #include @@ -584,7 +584,7 @@ double max287x::set_frequency( N = int((vco_freq / pfd_freq) / fb_divisor); // Fractional-N calculation - FRAC = int(boost::math::round(((vco_freq / pfd_freq) / fb_divisor - N) * MOD)); + FRAC = int(std::lround(((vco_freq / pfd_freq) / fb_divisor - N) * MOD)); if (is_int_n) { if (FRAC -- cgit v1.2.3