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/include/uhd/utils/math.hpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'host/include') diff --git a/host/include/uhd/utils/math.hpp b/host/include/uhd/utils/math.hpp index e9f8efb57..8606923fa 100644 --- a/host/include/uhd/utils/math.hpp +++ b/host/include/uhd/utils/math.hpp @@ -223,15 +223,6 @@ UHD_INLINE bool frequencies_are_equal(double lhs, double rhs) == fp_compare::fp_compare_delta(rhs, FREQ_COMPARISON_DELTA_HZ)); } -//! Portable log2() -template UHD_INLINE float_t log2(float_t x) -{ - // C++11 defines std::log2(), when that's universally supported - // we can switch over. - return std::log(x) / std::log(float_t(2)); -} - - } // namespace math } // namespace uhd -- cgit v1.2.3