From 1e2f457ee118f55d753a4c124315ab17f8eb5f1b Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Thu, 22 Jul 2010 23:27:57 -0700 Subject: usrp: fix the N/2 cordic tune issue, use boost math sign inplace of my signum --- host/include/uhd/utils/algorithm.hpp | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'host/include') diff --git a/host/include/uhd/utils/algorithm.hpp b/host/include/uhd/utils/algorithm.hpp index b52edc6b5..54bc78494 100644 --- a/host/include/uhd/utils/algorithm.hpp +++ b/host/include/uhd/utils/algorithm.hpp @@ -111,17 +111,6 @@ namespace std{ std::equal(boost::begin(range1), boost::end(range1), boost::begin(range2)); } - /*! - * A templated signum implementation. - * \param n the comparable to process - * \return -1 when n negative, +1 when n positive, otherwise 0 - */ - template inline int signum(T n){ - if (n < 0) return -1; - if (n > 0) return +1; - return 0; - } - /*! * A templated clip implementation. * \param val the value to clip between an upper and lower limit -- cgit v1.2.3