DISTRHO Plugin Framework
Functions
Math related functions

Functions

template<typename T >
static bool d_isEqual (const T &v1, const T &v2)
 
template<typename T >
static bool d_isNotEqual (const T &v1, const T &v2)
 
template<typename T >
static bool d_isZero (const T &value)
 
template<typename T >
static bool d_isNotZero (const T &value)
 
static uint32_t d_nextPowerOf2 (uint32_t size) noexcept
 

Detailed Description

Function Documentation

◆ d_isEqual()

template<typename T >
static bool d_isEqual ( const T &  v1,
const T &  v2 
)
inlinestatic

Safely compare two floating point numbers. Returns true if they match.

◆ d_isNotEqual()

template<typename T >
static bool d_isNotEqual ( const T &  v1,
const T &  v2 
)
inlinestatic

Safely compare two floating point numbers. Returns true if they don't match.

◆ d_isZero()

template<typename T >
static bool d_isZero ( const T &  value)
inlinestatic

Safely check if a floating point number is zero.

◆ d_isNotZero()

template<typename T >
static bool d_isNotZero ( const T &  value)
inlinestatic

Safely check if a floating point number is not zero.

◆ d_nextPowerOf2()

static uint32_t d_nextPowerOf2 ( uint32_t  size)
inlinestaticnoexcept

Get next power of 2.