From 11c7e561fc29b56ade8ae6ec549b21c533540e8a Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 15 Jan 2019 14:42:05 -0800 Subject: math: Remove uhd::math::log2, replace with std::log2 Now that we're C++11, we can assume the existence of said symbol and need no more portability hacks. --- host/lib/usrp/common/ad936x_manager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'host/lib') diff --git a/host/lib/usrp/common/ad936x_manager.cpp b/host/lib/usrp/common/ad936x_manager.cpp index 87521e834..5c4cb51ae 100644 --- a/host/lib/usrp/common/ad936x_manager.cpp +++ b/host/lib/usrp/common/ad936x_manager.cpp @@ -10,6 +10,7 @@ #include #include #include +#include #include using namespace uhd; @@ -167,7 +168,7 @@ public: // We use shifts here instead of 2^x because exp2() is not available in all // compilers, also this guarantees no rounding issues. The type cast to int32_t // serves as floor(): - int32_t multiplier = (1 << int32_t(uhd::math::log2(max_tick_rate / lcm_rate))); + int32_t multiplier = (1 << int32_t(std::log2(max_tick_rate / lcm_rate))); if (multiplier == 2 and lcm_rate >= min_tick_rate) { // Don't bother (see above) multiplier = 1; -- cgit v1.2.3