@@ -44,14 +44,15 @@ using common_sint =
44
44
namespace numbers {
45
45
// TODO: Track C++20 std::numbers.
46
46
// TODO: Favor using the hexadecimal FP constants (requires C++17).
47
- constexpr double e = 2.7182818284590452354 , // (0x1.5bf0a8b145749P+1) https://oeis.org/A001113
47
+ // clang-format off
48
+ constexpr double e = 2.7182818284590452354 , // (0x1.5bf0a8b145769P+1) https://oeis.org/A001113
48
49
egamma = .57721566490153286061 , // (0x1.2788cfc6fb619P-1) https://oeis.org/A001620
49
50
ln2 = .69314718055994530942 , // (0x1.62e42fefa39efP-1) https://oeis.org/A002162
50
- ln10 = 2.3025850929940456840 , // (0x1.24bb1bbb55516P +1) https://oeis.org/A002392
51
+ ln10 = 2.3025850929940456840 , // (0x1.26bb1bbb55516P +1) https://oeis.org/A002392
51
52
log2e = 1.4426950408889634074 , // (0x1.71547652b82feP+0)
52
53
log10e = .43429448190325182765 , // (0x1.bcb7b1526e50eP-2)
53
54
pi = 3.1415926535897932385 , // (0x1.921fb54442d18P+1) https://oeis.org/A000796
54
- inv_pi = .31830988618379067154 , // (0x1.45f306bc9c883P -2) https://oeis.org/A049541
55
+ inv_pi = .31830988618379067154 , // (0x1.45f306dc9c883P -2) https://oeis.org/A049541
55
56
sqrtpi = 1.7724538509055160273 , // (0x1.c5bf891b4ef6bP+0) https://oeis.org/A002161
56
57
inv_sqrtpi = .56418958354775628695 , // (0x1.20dd750429b6dP-1) https://oeis.org/A087197
57
58
sqrt2 = 1.4142135623730950488 , // (0x1.6a09e667f3bcdP+0) https://oeis.org/A00219
@@ -74,6 +75,7 @@ constexpr float ef = 2.71828183F, // (0x1.5bf0a8P+1) https://oeis.org/A
74
75
sqrt3f = 1 .73205081F , // (0x1.bb67aeP+0) https://oeis.org/A002194
75
76
inv_sqrt3f = .577350269F , // (0x1.279a74P-1)
76
77
phif = 1 .61803399F ; // (0x1.9e377aP+0) https://oeis.org/A001622
78
+ // clang-format on
77
79
} // namespace numbers
78
80
79
81
// / Create a bitmask with the N right-most bits set to 1, and all other
0 commit comments