aboutsummaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2016-04-22 09:44:20 -0700
committerMartin Braun <martin.braun@ettus.com>2016-04-22 11:14:37 -0700
commitaae93861a042e18b34871e36e8e66004f777396a (patch)
treeb45fd38668dcf11d7349fc98b658d209605c6241 /host/include
parent31d5c223ed6e0ca5569042fa1dfbcd0f18194d86 (diff)
downloaduhd-aae93861a042e18b34871e36e8e66004f777396a.tar.gz
uhd-aae93861a042e18b34871e36e8e66004f777396a.tar.bz2
uhd-aae93861a042e18b34871e36e8e66004f777396a.zip
math: Fixed floating point comparison for custom delta
Reviewed-By: Derek Kozel <derek.kozel@ettus.com>
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/utils/fp_compare_delta.ipp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/include/uhd/utils/fp_compare_delta.ipp b/host/include/uhd/utils/fp_compare_delta.ipp
index 49cbc281b..292ef4bf6 100644
--- a/host/include/uhd/utils/fp_compare_delta.ipp
+++ b/host/include/uhd/utils/fp_compare_delta.ipp
@@ -27,7 +27,7 @@ namespace uhd { namespace math { namespace fp_compare {
template<typename float_t> UHD_INLINE
float_t fp_compare_select_delta(float_t lhs_delta, float_t rhs_delta) {
- return ((lhs_delta < rhs_delta) ? lhs_delta : rhs_delta);
+ return ((lhs_delta > rhs_delta) ? lhs_delta : rhs_delta);
}
template<> UHD_INLINE