From 9d51413843f0f85b25fdc1e3a68d1dc8c4e6771a Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Mon, 2 Nov 2015 14:08:15 -0800 Subject: docs: Remove some doxygen warnings by minor refactorings --- host/include/uhd/utils/byteswap.ipp | 12 ++++++++---- host/include/uhd/utils/math.hpp | 4 ++-- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/host/include/uhd/utils/byteswap.ipp b/host/include/uhd/utils/byteswap.ipp index 5b2a7252f..f6c9407b6 100644 --- a/host/include/uhd/utils/byteswap.ipp +++ b/host/include/uhd/utils/byteswap.ipp @@ -101,7 +101,9 @@ **********************************************************************/ #include -template UHD_INLINE T uhd::ntohx(T num){ +namespace uhd { + +template UHD_INLINE T ntohx(T num){ #ifdef BOOST_BIG_ENDIAN return num; #else @@ -109,7 +111,7 @@ template UHD_INLINE T uhd::ntohx(T num){ #endif } -template UHD_INLINE T uhd::htonx(T num){ +template UHD_INLINE T htonx(T num){ #ifdef BOOST_BIG_ENDIAN return num; #else @@ -117,7 +119,7 @@ template UHD_INLINE T uhd::htonx(T num){ #endif } -template UHD_INLINE T uhd::wtohx(T num){ +template UHD_INLINE T wtohx(T num){ #ifdef BOOST_BIG_ENDIAN return uhd::byteswap(num); #else @@ -125,7 +127,7 @@ template UHD_INLINE T uhd::wtohx(T num){ #endif } -template UHD_INLINE T uhd::htowx(T num){ +template UHD_INLINE T htowx(T num){ #ifdef BOOST_BIG_ENDIAN return uhd::byteswap(num); #else @@ -133,4 +135,6 @@ template UHD_INLINE T uhd::htowx(T num){ #endif } +} /* namespace uhd */ + #endif /* INCLUDED_UHD_UTILS_BYTESWAP_IPP */ diff --git a/host/include/uhd/utils/math.hpp b/host/include/uhd/utils/math.hpp index ef7bfb6b7..088983167 100644 --- a/host/include/uhd/utils/math.hpp +++ b/host/include/uhd/utils/math.hpp @@ -34,8 +34,8 @@ namespace math { /*! * Numeric limits of certain types. * - * There are many sources for getting these, including std::numeric_limts, - * , , and Boost. The option is preferable as it + * There are many sources for getting these, including std::numeric_limits, + * ``, ``, and Boost. The `` option is preferable as it * gives us fixed-width constants, but unfortunately is new as of C++11. * Since this isn't available on many systems, we need to use one of the * other options. We will use the Boost option, here, since we use Boost -- cgit v1.2.3