[clang] [llvm] Adding splitdouble HLSL function (PR #109331)
Chris B via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 27 18:54:47 PDT 2024
================
@@ -422,6 +422,55 @@ template <typename T> constexpr uint asuint(T F) {
return __detail::bit_cast<uint, T>(F);
}
+//===----------------------------------------------------------------------===//
+// asuint splitdouble builtins
+//===----------------------------------------------------------------------===//
+
+/// \fn void asuint(double D, out uint lowbits, out int highbits)
+/// \brief Split and interprets the lowbits and highbits of double D into uints.
+/// \param D The input double.
+/// \param lowbits The output lowbits of D.
+/// \param highbits The highbits lowbits D.
+#if __is_target_arch(dxil)
----------------
llvm-beanz wrote:
This header is included by clang when compiling HLSL sources, not when building Clang.
https://github.com/llvm/llvm-project/pull/109331
More information about the cfe-commits
mailing list