USRP Hardware Driver and USRP Manual  Version: 003.010.002.HEAD-0-gbd6e21dc
UHD and USRP Manual
uhd::math Namespace Reference

Namespaces

 fp_compare
 

Functions

UHD_INLINE bool frequencies_are_equal (double lhs, double rhs)
 
template<typename float_t >
UHD_INLINE float_t log2 (float_t x)
 Portable log2() More...
 

Detailed Description

Contains useful mathematical functions, classes, and constants, which should be used in UHD when portable / std options are not available.

Function Documentation

◆ frequencies_are_equal()

UHD_INLINE bool uhd::math::frequencies_are_equal ( double  lhs,
double  rhs 
)

◆ log2()

template<typename float_t >
UHD_INLINE float_t uhd::math::log2 ( float_t  x)

Portable log2()