Library Overview
User Guide
xf::common::utils_hw
#include "xf_utils_hw/common.hpp"
Template to calculate power of 2.
Parameters:
template <int _N> struct PowerOf2 // fields static const unsigned value
static const unsigned value
value of 2^(_N)
Template to calculate Greatest Common Divisor ( GCD ) of two integers.
template < int _A, int _B > struct GCD // fields static const int value
static const int value
value of GCD of _A and _B
Template to calculate Least Common Multiple(LCM) of two integers.
template < int _A, int _B > struct LCM // fields static const int value
value of LCM of _A and _B