diff options
author | Chris Robinson <[email protected]> | 2023-05-07 22:37:06 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-05-07 22:37:06 -0700 |
commit | 947f87a25390bdb2b4b22952c1ad55a56fe280e4 (patch) | |
tree | 5c670984fa3face5fb5c28028269abcc096ce380 /common/alnumbers.h | |
parent | 5a7f1640c801bc23d8b40ef49b49ac42aff1d74e (diff) |
Mark some global constexpr variables inline
Diffstat (limited to 'common/alnumbers.h')
-rw-r--r-- | common/alnumbers.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/common/alnumbers.h b/common/alnumbers.h index 800b1f2a..e92d7b87 100644 --- a/common/alnumbers.h +++ b/common/alnumbers.h @@ -13,21 +13,21 @@ namespace detail_ { } // detail_ template<typename T> -constexpr auto pi_v = detail_::as_fp<T>(3.141592653589793238462643383279502884L); +inline constexpr auto pi_v = detail_::as_fp<T>(3.141592653589793238462643383279502884L); template<typename T> -constexpr auto inv_pi_v = detail_::as_fp<T>(0.318309886183790671537767526745028724L); +inline constexpr auto inv_pi_v = detail_::as_fp<T>(0.318309886183790671537767526745028724L); template<typename T> -constexpr auto sqrt2_v = detail_::as_fp<T>(1.414213562373095048801688724209698079L); +inline constexpr auto sqrt2_v = detail_::as_fp<T>(1.414213562373095048801688724209698079L); template<typename T> -constexpr auto sqrt3_v = detail_::as_fp<T>(1.732050807568877293527446341505872367L); +inline constexpr auto sqrt3_v = detail_::as_fp<T>(1.732050807568877293527446341505872367L); -constexpr auto pi = pi_v<double>; -constexpr auto inv_pi = inv_pi_v<double>; -constexpr auto sqrt2 = sqrt2_v<double>; -constexpr auto sqrt3 = sqrt3_v<double>; +inline constexpr auto pi = pi_v<double>; +inline constexpr auto inv_pi = inv_pi_v<double>; +inline constexpr auto sqrt2 = sqrt2_v<double>; +inline constexpr auto sqrt3 = sqrt3_v<double>; } // namespace numbers |