================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits