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/tests/math_test.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'host/tests/math_test.cpp') diff --git a/host/tests/math_test.cpp b/host/tests/math_test.cpp index ffdcbb086..575cfe071 100644 --- a/host/tests/math_test.cpp +++ b/host/tests/math_test.cpp @@ -9,11 +9,8 @@ #include #include -// NOTE: This is not the only math test case, see e.g. special tests -// for fp comparison. - -BOOST_AUTO_TEST_CASE(test_log2) +// We need an empty test +BOOST_AUTO_TEST_CASE(test_) { - double y = uhd::math::log2(16.0); - BOOST_CHECK_EQUAL(y, 4.0); + BOOST_CHECK_EQUAL(true, true); } -- cgit v1.2.3