LLVM 20.0.0git
|
Mathematical constants. More...
Variables | |
constexpr double | e = 2.7182818284590452354 |
constexpr double | egamma = .57721566490153286061 |
constexpr double | ln2 = .69314718055994530942 |
constexpr double | ln10 = 2.3025850929940456840 |
constexpr double | log2e = 1.4426950408889634074 |
constexpr double | log10e = .43429448190325182765 |
constexpr double | pi = 3.1415926535897932385 |
constexpr double | inv_pi = .31830988618379067154 |
constexpr double | sqrtpi = 1.7724538509055160273 |
constexpr double | inv_sqrtpi = .56418958354775628695 |
constexpr double | sqrt2 = 1.4142135623730950488 |
constexpr double | inv_sqrt2 = .70710678118654752440 |
constexpr double | sqrt3 = 1.7320508075688772935 |
constexpr double | inv_sqrt3 = .57735026918962576451 |
constexpr double | phi = 1.6180339887498948482 |
constexpr float | ef = 2.71828183F |
constexpr float | egammaf = .577215665F |
constexpr float | ln2f = .693147181F |
constexpr float | ln10f = 2.30258509F |
constexpr float | log2ef = 1.44269504F |
constexpr float | log10ef = .434294482F |
constexpr float | pif = 3.14159265F |
constexpr float | inv_pif = .318309886F |
constexpr float | sqrtpif = 1.77245385F |
constexpr float | inv_sqrtpif = .564189584F |
constexpr float | sqrt2f = 1.41421356F |
constexpr float | inv_sqrt2f = .707106781F |
constexpr float | sqrt3f = 1.73205081F |
constexpr float | inv_sqrt3f = .577350269F |
constexpr float | phif = 1.61803399F |
Mathematical constants.
|
constexpr |
Definition at line 47 of file MathExtras.h.
|
constexpr |
Definition at line 62 of file MathExtras.h.
constexpr double llvm::numbers::egamma = .57721566490153286061 |
Definition at line 48 of file MathExtras.h.
constexpr float llvm::numbers::egammaf = .577215665F |
Definition at line 63 of file MathExtras.h.
constexpr double llvm::numbers::inv_pi = .31830988618379067154 |
Definition at line 54 of file MathExtras.h.
Referenced by llvm::AMDGPULegalizerInfo::legalizeSinCos().
constexpr float llvm::numbers::inv_pif = .318309886F |
Definition at line 69 of file MathExtras.h.
constexpr double llvm::numbers::inv_sqrt2 = .70710678118654752440 |
Definition at line 58 of file MathExtras.h.
constexpr float llvm::numbers::inv_sqrt2f = .707106781F |
Definition at line 73 of file MathExtras.h.
constexpr double llvm::numbers::inv_sqrt3 = .57735026918962576451 |
Definition at line 60 of file MathExtras.h.
constexpr float llvm::numbers::inv_sqrt3f = .577350269F |
Definition at line 75 of file MathExtras.h.
constexpr double llvm::numbers::inv_sqrtpi = .56418958354775628695 |
Definition at line 56 of file MathExtras.h.
constexpr float llvm::numbers::inv_sqrtpif = .564189584F |
Definition at line 71 of file MathExtras.h.
constexpr double llvm::numbers::ln10 = 2.3025850929940456840 |
Definition at line 50 of file MathExtras.h.
Referenced by llvm::AMDGPULegalizerInfo::legalizeFlogUnsafe(), and llvm::AMDGPUTargetLowering::LowerFLOGUnsafe().
constexpr float llvm::numbers::ln10f = 2.30258509F |
Definition at line 65 of file MathExtras.h.
Referenced by expandLog10Intrinsic().
constexpr double llvm::numbers::ln2 = .69314718055994530942 |
Definition at line 49 of file MathExtras.h.
Referenced by llvm::AMDGPULegalizerInfo::legalizeFlogUnsafe(), llvm::log2(), and llvm::AMDGPUTargetLowering::LowerFLOGUnsafe().
constexpr float llvm::numbers::ln2f = .693147181F |
Definition at line 64 of file MathExtras.h.
Referenced by expandLog(), and expandLog10Intrinsic().
constexpr double llvm::numbers::log10e = .43429448190325182765 |
Definition at line 52 of file MathExtras.h.
constexpr float llvm::numbers::log10ef = .434294482F |
Definition at line 67 of file MathExtras.h.
constexpr double llvm::numbers::log2e = 1.4426950408889634074 |
Definition at line 51 of file MathExtras.h.
Referenced by llvm::AMDGPULegalizerInfo::legalizeFExpUnsafe(), and llvm::AMDGPUTargetLowering::lowerFEXPUnsafe().
constexpr float llvm::numbers::log2ef = 1.44269504F |
Definition at line 66 of file MathExtras.h.
Referenced by expandExp(), expandExpIntrinsic(), llvm::AMDGPULegalizerInfo::legalizeFExp(), and llvm::AMDGPUTargetLowering::lowerFEXP().
constexpr double llvm::numbers::phi = 1.6180339887498948482 |
Definition at line 61 of file MathExtras.h.
constexpr float llvm::numbers::phif = 1.61803399F |
Definition at line 76 of file MathExtras.h.
constexpr double llvm::numbers::pi = 3.1415926535897932385 |
Definition at line 53 of file MathExtras.h.
constexpr float llvm::numbers::pif = 3.14159265F |
Definition at line 68 of file MathExtras.h.
constexpr double llvm::numbers::sqrt2 = 1.4142135623730950488 |
Definition at line 57 of file MathExtras.h.
constexpr float llvm::numbers::sqrt2f = 1.41421356F |
Definition at line 72 of file MathExtras.h.
constexpr double llvm::numbers::sqrt3 = 1.7320508075688772935 |
Definition at line 59 of file MathExtras.h.
constexpr float llvm::numbers::sqrt3f = 1.73205081F |
Definition at line 74 of file MathExtras.h.
constexpr double llvm::numbers::sqrtpi = 1.7724538509055160273 |
Definition at line 55 of file MathExtras.h.
constexpr float llvm::numbers::sqrtpif = 1.77245385F |
Definition at line 70 of file MathExtras.h.