[clang] [llvm] [HLSL] Move `radians` implementation to header files (PR #215379)
Kaitlin Peng via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 11 09:58:25 PDT 2026
================
@@ -13,6 +13,8 @@ namespace hlsl {
namespace __detail {
+constexpr double pi = 3.141592653589793L;
----------------
kmpeng wrote:
DXC uses M_PI from cmath which is also double precision - I think it spells out more digits (...23846), but they're past what double can represent so these both end up being the same double. I can spell out as much as M_PI does though for consistency.
https://github.com/llvm/llvm-project/pull/215379
More information about the cfe-commits
mailing list