Home
last modified time | relevance | path

Searched refs:inv_pi (Results 1 – 8 of 8) sorted by relevance

/llvm-project-15.0.7/libcxx/test/std/numerics/numbers/
H A Dillformed.verify.cpp18 int inv_pi{std::numbers::inv_pi_v<int>}; variable
H A Dvalue.pass.cpp35 assert(std::numbers::inv_pi == 0x1.45f306dc9c883p-2); in tests()
H A Dspecialize.pass.cpp47 assert(d4 == std::numbers::inv_pi); in tests()
H A Ddefined.pass.cpp18 [[maybe_unused]] const double* dd4{&std::numbers::inv_pi}; in tests()
/llvm-project-15.0.7/libcxx/include/
H A Dnumbers49 inline constexpr double inv_pi = inv_pi_v<double>;
118 inline constexpr double inv_pi = inv_pi_v<double>;
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DMathExtras.h64 … inv_pi = .31830988618379067154, // (0x1.45f306bc9c883P-2) https://oeis.org/A049541 variable
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPULegalizerInfo.cpp2438 auto OneOver2Pi = B.buildFConstant(Ty, 0.5 * numbers::inv_pi); in legalizeSinCos()
H A DSIISelLowering.cpp9272 SDValue OneOver2Pi = DAG.getConstantFP(0.5 * numbers::inv_pi, DL, VT); in LowerTrig()