[flang-commits] [flang] [llvm] [flang] Optimize `acospi` precision (PR #152869)

Connector Switch via flang-commits flang-commits at lists.llvm.org
Mon Aug 11 07:46:20 PDT 2025


================
@@ -74,6 +74,8 @@ constexpr float ef          = 0x1.5bf0a8P+1F, // (2.71828183) https://oeis.org/A
                 sqrt3f      = 0x1.bb67aeP+0F, // (1.73205081) https://oeis.org/A002194
                 inv_sqrt3f  = 0x1.279a74P-1F, // (.577350269)
                 phif        = 0x1.9e377aP+0F; // (1.61803399) https://oeis.org/A001622
+constexpr const char *pis     = "3.141592653589793238462643383279502884",
+                     *inv_pis = "0.318309886183790671537767526745028724";
----------------
c8ef wrote:

Done.

https://github.com/llvm/llvm-project/pull/152869


More information about the flang-commits mailing list