LLVM 22.0.0git
|
Mathematical constants. More...
Variables | |
template<typename T, typename = std::enable_if_t<std::is_floating_point_v<T>>> | |
constexpr T | e_v = T(0x1.5bf0a8b145769P+1) |
template<typename T, typename = std::enable_if_t<std::is_floating_point_v<T>>> | |
constexpr T | egamma_v = T(0x1.2788cfc6fb619P-1) |
template<typename T, typename = std::enable_if_t<std::is_floating_point_v<T>>> | |
constexpr T | ln2_v = T(0x1.62e42fefa39efP-1) |
template<typename T, typename = std::enable_if_t<std::is_floating_point_v<T>>> | |
constexpr T | ln10_v = T(0x1.26bb1bbb55516P+1) |
template<typename T, typename = std::enable_if_t<std::is_floating_point_v<T>>> | |
constexpr T | log2e_v = T(0x1.71547652b82feP+0) |
template<typename T, typename = std::enable_if_t<std::is_floating_point_v<T>>> | |
constexpr T | log10e_v = T(0x1.bcb7b1526e50eP-2) |
template<typename T, typename = std::enable_if_t<std::is_floating_point_v<T>>> | |
constexpr T | pi_v = T(0x1.921fb54442d18P+1) |
template<typename T, typename = std::enable_if_t<std::is_floating_point_v<T>>> | |
constexpr T | inv_pi_v = T(0x1.45f306dc9c883P-2) |
template<typename T, typename = std::enable_if_t<std::is_floating_point_v<T>>> | |
constexpr T | inv_sqrtpi_v = T(0x1.20dd750429b6dP-1) |
template<typename T, typename = std::enable_if_t<std::is_floating_point_v<T>>> | |
constexpr T | sqrt2_v = T(0x1.6a09e667f3bcdP+0) |
template<typename T, typename = std::enable_if_t<std::is_floating_point_v<T>>> | |
constexpr T | inv_sqrt2_v = T(0x1.6a09e667f3bcdP-1) |
template<typename T, typename = std::enable_if_t<std::is_floating_point_v<T>>> | |
constexpr T | sqrt3_v = T(0x1.bb67ae8584caaP+0) |
template<typename T, typename = std::enable_if_t<std::is_floating_point_v<T>>> | |
constexpr T | inv_sqrt3_v = T(0x1.279a74590331cP-1) |
template<typename T, typename = std::enable_if_t<std::is_floating_point_v<T>>> | |
constexpr T | phi_v = T(0x1.9e3779b97f4a8P+0) |
constexpr double | e = e_v<double> |
constexpr double | egamma = egamma_v<double> |
constexpr double | ln2 = ln2_v<double> |
constexpr double | ln10 = ln10_v<double> |
constexpr double | log2e = log2e_v<double> |
constexpr double | log10e = log10e_v<double> |
constexpr double | pi = pi_v<double> |
constexpr double | inv_pi = inv_pi_v<double> |
constexpr double | inv_sqrtpi = inv_sqrtpi_v<double> |
constexpr double | sqrt2 = sqrt2_v<double> |
constexpr double | inv_sqrt2 = inv_sqrt2_v<double> |
constexpr double | sqrt3 = sqrt3_v<double> |
constexpr double | inv_sqrt3 = inv_sqrt3_v<double> |
constexpr double | phi = phi_v<double> |
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<T>>> | |
constexpr T | sqrtpi_v = T(0x1.c5bf891b4ef6bP+0) |
constexpr double | sqrtpi = sqrtpi_v<double> |
constexpr float | sqrtpif = sqrtpi_v<float> |
constexpr const char * | pis = "3.141592653589793238462643383279502884" |
constexpr const char * | inv_pis = "0.318309886183790671537767526745028724" |
Mathematical constants.
|
inlineconstexpr |
Definition at line 61 of file STLForwardCompat.h.
|
inlineconstexpr |
Definition at line 33 of file STLForwardCompat.h.
|
inlineconstexpr |
Definition at line 47 of file MathExtras.h.
|
inlineconstexpr |
Definition at line 62 of file STLForwardCompat.h.
|
inlineconstexpr |
Definition at line 35 of file STLForwardCompat.h.
|
inlineconstexpr |
Definition at line 48 of file MathExtras.h.
|
inlineconstexpr |
Definition at line 68 of file STLForwardCompat.h.
Referenced by expandDegreesIntrinsic(), and llvm::AMDGPULegalizerInfo::legalizeSinCos().
|
inlineconstexpr |
Definition at line 47 of file STLForwardCompat.h.
|
inlineconstexpr |
Definition at line 54 of file MathExtras.h.
Definition at line 71 of file MathExtras.h.
|
inlineconstexpr |
Definition at line 71 of file STLForwardCompat.h.
|
inlineconstexpr |
Definition at line 53 of file STLForwardCompat.h.
|
inlineconstexpr |
Definition at line 57 of file MathExtras.h.
|
inlineconstexpr |
Definition at line 73 of file STLForwardCompat.h.
|
inlineconstexpr |
Definition at line 57 of file STLForwardCompat.h.
|
inlineconstexpr |
Definition at line 59 of file MathExtras.h.
|
inlineconstexpr |
Definition at line 69 of file STLForwardCompat.h.
|
inlineconstexpr |
Definition at line 49 of file STLForwardCompat.h.
|
inlineconstexpr |
Definition at line 55 of file MathExtras.h.
|
inlineconstexpr |
Definition at line 64 of file STLForwardCompat.h.
Referenced by llvm::AMDGPULegalizerInfo::legalizeFlogUnsafe(), and llvm::AMDGPUTargetLowering::LowerFLOGUnsafe().
|
inlineconstexpr |
Definition at line 39 of file STLForwardCompat.h.
|
inlineconstexpr |
Definition at line 50 of file MathExtras.h.
Referenced by expandLog10Intrinsic().
|
inlineconstexpr |
Definition at line 63 of file STLForwardCompat.h.
Referenced by llvm::AMDGPULegalizerInfo::legalizeFlogUnsafe(), llvm::log2(), and llvm::AMDGPUTargetLowering::LowerFLOGUnsafe().
|
inlineconstexpr |
Definition at line 37 of file STLForwardCompat.h.
|
inlineconstexpr |
Definition at line 49 of file MathExtras.h.
Referenced by expandLog(), expandLog10Intrinsic(), and expandLogIntrinsic().
|
inlineconstexpr |
Definition at line 66 of file STLForwardCompat.h.
|
inlineconstexpr |
Definition at line 43 of file STLForwardCompat.h.
|
inlineconstexpr |
Definition at line 52 of file MathExtras.h.
|
inlineconstexpr |
Definition at line 65 of file STLForwardCompat.h.
Referenced by llvm::AMDGPULegalizerInfo::legalizeFExpUnsafe(), and llvm::AMDGPUTargetLowering::lowerFEXPUnsafe().
|
inlineconstexpr |
Definition at line 41 of file STLForwardCompat.h.
|
inlineconstexpr |
Definition at line 51 of file MathExtras.h.
Referenced by expandExp(), expandExpIntrinsic(), llvm::AMDGPULegalizerInfo::legalizeFExp(), and llvm::AMDGPUTargetLowering::lowerFEXP().
|
inlineconstexpr |
Definition at line 74 of file STLForwardCompat.h.
|
inlineconstexpr |
Definition at line 59 of file STLForwardCompat.h.
|
inlineconstexpr |
Definition at line 60 of file MathExtras.h.
|
inlineconstexpr |
Definition at line 67 of file STLForwardCompat.h.
Referenced by expandAtan2Intrinsic(), and expandRadiansIntrinsic().
|
inlineconstexpr |
Definition at line 45 of file STLForwardCompat.h.
|
inlineconstexpr |
Definition at line 53 of file MathExtras.h.
Definition at line 70 of file MathExtras.h.
|
inlineconstexpr |
Definition at line 70 of file STLForwardCompat.h.
|
inlineconstexpr |
Definition at line 51 of file STLForwardCompat.h.
|
inlineconstexpr |
Definition at line 56 of file MathExtras.h.
|
inlineconstexpr |
Definition at line 72 of file STLForwardCompat.h.
|
inlineconstexpr |
Definition at line 55 of file STLForwardCompat.h.
|
inlineconstexpr |
Definition at line 58 of file MathExtras.h.
|
inlineconstexpr |
Definition at line 65 of file MathExtras.h.
|
inlineconstexpr |
Definition at line 64 of file MathExtras.h.
|
inlineconstexpr |
Definition at line 66 of file MathExtras.h.