diff options
author | Michael Dickens <mlk@alum.mit.edu> | 2018-12-06 13:17:06 -0500 |
---|---|---|
committer | Brent Stapleton <brent.stapleton@ettus.com> | 2018-12-12 19:23:21 -0800 |
commit | eac84f1b7f3b652bc46a1370c8f68aa5b2477330 (patch) | |
tree | eff83a226bcec0d0725cd238d9f76826060f7916 /host/lib/usrp/x300 | |
parent | 865151108279e1b3cb25d288335d76dc3eef7e4e (diff) | |
download | uhd-eac84f1b7f3b652bc46a1370c8f68aa5b2477330.tar.gz uhd-eac84f1b7f3b652bc46a1370c8f68aa5b2477330.tar.bz2 uhd-eac84f1b7f3b652bc46a1370c8f68aa5b2477330.zip |
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.
Diffstat (limited to 'host/lib/usrp/x300')
-rw-r--r-- | host/lib/usrp/x300/x300_dboard_iface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<double>::epsilon()) + if (std::abs(_clock_rates[unit] - rate) < std::numeric_limits<double>::epsilon()) return; switch(unit) |