Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
sw::math::constexpr_math Namespace Reference

Namespaces

namespace  detail

Functions

constexpr double exp (double x)
constexpr float exp (float x)
constexpr double exp2 (double x)
constexpr float exp2 (float x)
constexpr double log (double x)
constexpr float log (float x)
constexpr double log2 (double x)
constexpr float log2 (float x)
constexpr double pow (double x, int n)
constexpr float pow (float x, int n)
constexpr double pow (double x, double y)
constexpr float pow (float x, float y)
constexpr double sqrt (double a)
constexpr float sqrt (float a)

Function Documentation

◆ exp() [1/2]

double sw::math::constexpr_math::exp ( double x)
constexpr

◆ exp() [2/2]

float sw::math::constexpr_math::exp ( float x)
constexpr

◆ exp2() [1/2]

double sw::math::constexpr_math::exp2 ( double x)
constexpr

◆ exp2() [2/2]

float sw::math::constexpr_math::exp2 ( float x)
constexpr

◆ log() [1/2]

double sw::math::constexpr_math::log ( double x)
constexpr

◆ log() [2/2]

float sw::math::constexpr_math::log ( float x)
constexpr

◆ log2() [1/2]

double sw::math::constexpr_math::log2 ( double x)
constexpr

◆ log2() [2/2]

float sw::math::constexpr_math::log2 ( float x)
constexpr

◆ pow() [1/4]

double sw::math::constexpr_math::pow ( double x,
double y )
constexpr

◆ pow() [2/4]

double sw::math::constexpr_math::pow ( double x,
int n )
constexpr

◆ pow() [3/4]

float sw::math::constexpr_math::pow ( float x,
float y )
constexpr

◆ pow() [4/4]

float sw::math::constexpr_math::pow ( float x,
int n )
constexpr

◆ sqrt() [1/2]

double sw::math::constexpr_math::sqrt ( double a)
constexpr

◆ sqrt() [2/2]

float sw::math::constexpr_math::sqrt ( float a)
constexpr