LLVM: llvm::numbers Namespace Reference (original) (raw)

Mathematical constants. More...

Variables
template<typename T, typename = std::enable_if_t<std::is_floating_point_v>>
constexpr T e_v = T(0x1.5bf0a8b145769P+1)
template<typename T, typename = std::enable_if_t<std::is_floating_point_v>>
constexpr T egamma_v = T(0x1.2788cfc6fb619P-1)
template<typename T, typename = std::enable_if_t<std::is_floating_point_v>>
constexpr T ln2_v = T(0x1.62e42fefa39efP-1)
template<typename T, typename = std::enable_if_t<std::is_floating_point_v>>
constexpr T ln10_v = T(0x1.26bb1bbb55516P+1)
template<typename T, typename = std::enable_if_t<std::is_floating_point_v>>
constexpr T log2e_v = T(0x1.71547652b82feP+0)
template<typename T, typename = std::enable_if_t<std::is_floating_point_v>>
constexpr T log10e_v = T(0x1.bcb7b1526e50eP-2)
template<typename T, typename = std::enable_if_t<std::is_floating_point_v>>
constexpr T pi_v = T(0x1.921fb54442d18P+1)
template<typename T, typename = std::enable_if_t<std::is_floating_point_v>>
constexpr T inv_pi_v = T(0x1.45f306dc9c883P-2)
template<typename T, typename = std::enable_if_t<std::is_floating_point_v>>
constexpr T inv_sqrtpi_v = T(0x1.20dd750429b6dP-1)
template<typename T, typename = std::enable_if_t<std::is_floating_point_v>>
constexpr T sqrt2_v = T(0x1.6a09e667f3bcdP+0)
template<typename T, typename = std::enable_if_t<std::is_floating_point_v>>
constexpr T inv_sqrt2_v = T(0x1.6a09e667f3bcdP-1)
template<typename T, typename = std::enable_if_t<std::is_floating_point_v>>
constexpr T sqrt3_v = T(0x1.bb67ae8584caaP+0)
template<typename T, typename = std::enable_if_t<std::is_floating_point_v>>
constexpr T inv_sqrt3_v = T(0x1.279a74590331cP-1)
template<typename T, typename = std::enable_if_t<std::is_floating_point_v>>
constexpr T phi_v = T(0x1.9e3779b97f4a8P+0)
constexpr double e = e_v
constexpr double egamma = egamma_v
constexpr double ln2 = ln2_v
constexpr double ln10 = ln10_v
constexpr double log2e = log2e_v
constexpr double log10e = log10e_v
constexpr double pi = pi_v
constexpr double inv_pi = inv_pi_v
constexpr double inv_sqrtpi = inv_sqrtpi_v
constexpr double sqrt2 = sqrt2_v
constexpr double inv_sqrt2 = inv_sqrt2_v
constexpr double sqrt3 = sqrt3_v
constexpr double inv_sqrt3 = inv_sqrt3_v
constexpr double phi = phi_v
constexpr float ef = e_v<float>
constexpr float egammaf = egamma_v<float>
constexpr float ln2f = ln2_v<float>
constexpr float ln10f = ln10_v<float>
constexpr float log2ef = log2e_v<float>
constexpr float log10ef = log10e_v<float>
constexpr float pif = pi_v<float>
constexpr float inv_pif = inv_pi_v<float>
constexpr float inv_sqrtpif = inv_sqrtpi_v<float>
constexpr float sqrt2f = sqrt2_v<float>
constexpr float inv_sqrt2f = inv_sqrt2_v<float>
constexpr float sqrt3f = sqrt3_v<float>
constexpr float inv_sqrt3f = inv_sqrt3_v<float>
constexpr float phif = phi_v<float>
template<typename T, typename = std::enable_if_t<std::is_floating_point_v>>
constexpr T sqrtpi_v = T(0x1.c5bf891b4ef6bP+0)
constexpr double sqrtpi = sqrtpi_v
constexpr float sqrtpif = sqrtpi_v<float>
constexpr const char * pis = "3.141592653589793238462643383279502884"
constexpr const char * inv_pis = "0.318309886183790671537767526745028724"

Mathematical constants.

e

double llvm:🔢:e = e_v inlineconstexpr

e_v

template<typename T, typename = std::enable_if_t<std::is_floating_point_v>>

T llvm:🔢:e_v = T(0x1.5bf0a8b145769P+1) inlineconstexpr

ef

egamma

double llvm:🔢:egamma = egamma_v inlineconstexpr

egamma_v

template<typename T, typename = std::enable_if_t<std::is_floating_point_v>>

T llvm:🔢:egamma_v = T(0x1.2788cfc6fb619P-1) inlineconstexpr

egammaf

inv_pi

double llvm:🔢:inv_pi = inv_pi_v inlineconstexpr

inv_pi_v

template<typename T, typename = std::enable_if_t<std::is_floating_point_v>>

T llvm:🔢:inv_pi_v = T(0x1.45f306dc9c883P-2) inlineconstexpr

inv_pif

inv_pis

const char * llvm:🔢:inv_pis = "0.318309886183790671537767526745028724"

inv_sqrt2

double llvm:🔢:inv_sqrt2 = inv_sqrt2_v inlineconstexpr

inv_sqrt2_v

template<typename T, typename = std::enable_if_t<std::is_floating_point_v>>

T llvm:🔢:inv_sqrt2_v = T(0x1.6a09e667f3bcdP-1) inlineconstexpr

inv_sqrt2f

inv_sqrt3

double llvm:🔢:inv_sqrt3 = inv_sqrt3_v inlineconstexpr

inv_sqrt3_v

template<typename T, typename = std::enable_if_t<std::is_floating_point_v>>

T llvm:🔢:inv_sqrt3_v = T(0x1.279a74590331cP-1) inlineconstexpr

inv_sqrt3f

inv_sqrtpi

double llvm:🔢:inv_sqrtpi = inv_sqrtpi_v inlineconstexpr

inv_sqrtpi_v

template<typename T, typename = std::enable_if_t<std::is_floating_point_v>>

T llvm:🔢:inv_sqrtpi_v = T(0x1.20dd750429b6dP-1) inlineconstexpr

inv_sqrtpif

ln10

double llvm:🔢:ln10 = ln10_v inlineconstexpr

ln10_v

template<typename T, typename = std::enable_if_t<std::is_floating_point_v>>

T llvm:🔢:ln10_v = T(0x1.26bb1bbb55516P+1) inlineconstexpr

ln10f

ln2

double llvm:🔢:ln2 = ln2_v inlineconstexpr

ln2_v

template<typename T, typename = std::enable_if_t<std::is_floating_point_v>>

T llvm:🔢:ln2_v = T(0x1.62e42fefa39efP-1) inlineconstexpr

ln2f

log10e

double llvm:🔢:log10e = log10e_v inlineconstexpr

log10e_v

template<typename T, typename = std::enable_if_t<std::is_floating_point_v>>

T llvm:🔢:log10e_v = T(0x1.bcb7b1526e50eP-2) inlineconstexpr

log10ef

log2e

double llvm:🔢:log2e = log2e_v inlineconstexpr

log2e_v

template<typename T, typename = std::enable_if_t<std::is_floating_point_v>>

T llvm:🔢:log2e_v = T(0x1.71547652b82feP+0) inlineconstexpr

log2ef

phi

double llvm:🔢:phi = phi_v inlineconstexpr

phi_v

template<typename T, typename = std::enable_if_t<std::is_floating_point_v>>

T llvm:🔢:phi_v = T(0x1.9e3779b97f4a8P+0) inlineconstexpr

phif

pi

double llvm:🔢:pi = pi_v inlineconstexpr

pi_v

template<typename T, typename = std::enable_if_t<std::is_floating_point_v>>

T llvm:🔢:pi_v = T(0x1.921fb54442d18P+1) inlineconstexpr

pif

pis

const char* llvm:🔢:pis = "3.141592653589793238462643383279502884" constexpr

sqrt2

double llvm:🔢:sqrt2 = sqrt2_v inlineconstexpr

sqrt2_v

template<typename T, typename = std::enable_if_t<std::is_floating_point_v>>

T llvm:🔢:sqrt2_v = T(0x1.6a09e667f3bcdP+0) inlineconstexpr

sqrt2f

sqrt3

double llvm:🔢:sqrt3 = sqrt3_v inlineconstexpr

sqrt3_v

template<typename T, typename = std::enable_if_t<std::is_floating_point_v>>

T llvm:🔢:sqrt3_v = T(0x1.bb67ae8584caaP+0) inlineconstexpr

sqrt3f

sqrtpi

double llvm:🔢:sqrtpi = sqrtpi_v inlineconstexpr

sqrtpi_v

template<typename T, typename = std::enable_if_t<std::is_floating_point_v>>

T llvm:🔢:sqrtpi_v = T(0x1.c5bf891b4ef6bP+0) inlineconstexpr

sqrtpif