From eac84f1b7f3b652bc46a1370c8f68aa5b2477330 Mon Sep 17 00:00:00 2001 From: Michael Dickens Date: Thu, 6 Dec 2018 13:17:06 -0500 Subject: various: use "std::abs" instead of "std::fabs" + better compiler compatibility + let the compiler figure out the actual function IO signature that makes sense, instead of forcing float. --- host/lib/usrp/x300/x300_dboard_iface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/lib/usrp/x300') diff --git a/host/lib/usrp/x300/x300_dboard_iface.cpp b/host/lib/usrp/x300/x300_dboard_iface.cpp index 3fc5921c6..6986ee8ab 100644 --- a/host/lib/usrp/x300/x300_dboard_iface.cpp +++ b/host/lib/usrp/x300/x300_dboard_iface.cpp @@ -56,7 +56,7 @@ void x300_dboard_iface::set_clock_rate(unit_t unit, double rate) if (unit == UNIT_BOTH) throw uhd::runtime_error("UNIT_BOTH not supported."); // Just return if the requested rate is already set - if (std::fabs(_clock_rates[unit] - rate) < std::numeric_limits::epsilon()) + if (std::abs(_clock_rates[unit] - rate) < std::numeric_limits::epsilon()) return; switch(unit) -- cgit v1.2.3