diff options
author | Martin Braun <martin.braun@ettus.com> | 2019-01-15 14:42:05 -0800 |
---|---|---|
committer | Brent Stapleton <brent.stapleton@ettus.com> | 2019-01-18 09:37:12 -0800 |
commit | 11c7e561fc29b56ade8ae6ec549b21c533540e8a (patch) | |
tree | a346b7bd7e561efbb8d61de59c4ac2dec4c18d0b /host/include | |
parent | eb1f8f160b803bae60c2af7be35e42ece3b8a62b (diff) | |
download | uhd-11c7e561fc29b56ade8ae6ec549b21c533540e8a.tar.gz uhd-11c7e561fc29b56ade8ae6ec549b21c533540e8a.tar.bz2 uhd-11c7e561fc29b56ade8ae6ec549b21c533540e8a.zip |
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.
Diffstat (limited to 'host/include')
-rw-r--r-- | host/include/uhd/utils/math.hpp | 9 |
1 files changed, 0 insertions, 9 deletions
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<double>(rhs, FREQ_COMPARISON_DELTA_HZ)); } -//! Portable log2() -template <typename float_t> 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 |