LLVM 20.0.0git
Variables
llvm::numbers Namespace Reference

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
 

Detailed Description

Mathematical constants.

Variable Documentation

◆ e

constexpr double llvm::numbers::e = 2.7182818284590452354
constexpr

Definition at line 47 of file MathExtras.h.

◆ ef

constexpr float llvm::numbers::ef = 2.71828183F
constexpr

Definition at line 62 of file MathExtras.h.

◆ egamma

constexpr double llvm::numbers::egamma = .57721566490153286061

Definition at line 48 of file MathExtras.h.

◆ egammaf

constexpr float llvm::numbers::egammaf = .577215665F

Definition at line 63 of file MathExtras.h.

◆ inv_pi

constexpr double llvm::numbers::inv_pi = .31830988618379067154

Definition at line 54 of file MathExtras.h.

Referenced by llvm::AMDGPULegalizerInfo::legalizeSinCos().

◆ inv_pif

constexpr float llvm::numbers::inv_pif = .318309886F

Definition at line 69 of file MathExtras.h.

◆ inv_sqrt2

constexpr double llvm::numbers::inv_sqrt2 = .70710678118654752440

Definition at line 58 of file MathExtras.h.

◆ inv_sqrt2f

constexpr float llvm::numbers::inv_sqrt2f = .707106781F

Definition at line 73 of file MathExtras.h.

◆ inv_sqrt3

constexpr double llvm::numbers::inv_sqrt3 = .57735026918962576451

Definition at line 60 of file MathExtras.h.

◆ inv_sqrt3f

constexpr float llvm::numbers::inv_sqrt3f = .577350269F

Definition at line 75 of file MathExtras.h.

◆ inv_sqrtpi

constexpr double llvm::numbers::inv_sqrtpi = .56418958354775628695

Definition at line 56 of file MathExtras.h.

◆ inv_sqrtpif

constexpr float llvm::numbers::inv_sqrtpif = .564189584F

Definition at line 71 of file MathExtras.h.

◆ ln10

constexpr double llvm::numbers::ln10 = 2.3025850929940456840

◆ ln10f

constexpr float llvm::numbers::ln10f = 2.30258509F

Definition at line 65 of file MathExtras.h.

Referenced by expandLog10Intrinsic().

◆ ln2

constexpr double llvm::numbers::ln2 = .69314718055994530942

◆ ln2f

constexpr float llvm::numbers::ln2f = .693147181F

Definition at line 64 of file MathExtras.h.

Referenced by expandLog(), and expandLog10Intrinsic().

◆ log10e

constexpr double llvm::numbers::log10e = .43429448190325182765

Definition at line 52 of file MathExtras.h.

◆ log10ef

constexpr float llvm::numbers::log10ef = .434294482F

Definition at line 67 of file MathExtras.h.

◆ log2e

constexpr double llvm::numbers::log2e = 1.4426950408889634074

◆ log2ef

constexpr float llvm::numbers::log2ef = 1.44269504F

◆ phi

constexpr double llvm::numbers::phi = 1.6180339887498948482

Definition at line 61 of file MathExtras.h.

◆ phif

constexpr float llvm::numbers::phif = 1.61803399F

Definition at line 76 of file MathExtras.h.

◆ pi

constexpr double llvm::numbers::pi = 3.1415926535897932385

Definition at line 53 of file MathExtras.h.

◆ pif

constexpr float llvm::numbers::pif = 3.14159265F

Definition at line 68 of file MathExtras.h.

◆ sqrt2

constexpr double llvm::numbers::sqrt2 = 1.4142135623730950488

Definition at line 57 of file MathExtras.h.

◆ sqrt2f

constexpr float llvm::numbers::sqrt2f = 1.41421356F

Definition at line 72 of file MathExtras.h.

◆ sqrt3

constexpr double llvm::numbers::sqrt3 = 1.7320508075688772935

Definition at line 59 of file MathExtras.h.

◆ sqrt3f

constexpr float llvm::numbers::sqrt3f = 1.73205081F

Definition at line 74 of file MathExtras.h.

◆ sqrtpi

constexpr double llvm::numbers::sqrtpi = 1.7724538509055160273

Definition at line 55 of file MathExtras.h.

◆ sqrtpif

constexpr float llvm::numbers::sqrtpif = 1.77245385F

Definition at line 70 of file MathExtras.h.