[clang] Implementing `asfloat` using `bit_cast` (PR #108686)

via cfe-commits cfe-commits at lists.llvm.org
Sat Sep 14 09:21:38 PDT 2024


================
@@ -361,6 +361,23 @@ bool any(double3);
 _HLSL_BUILTIN_ALIAS(__builtin_hlsl_any)
 bool any(double4);
 
+//===----------------------------------------------------------------------===//
+// asfloat builtins
+//===----------------------------------------------------------------------===//
+
+/// \fn uint asfloat(T Val)
+/// \brief Interprets the bit pattern of x as an unsigned integer.
----------------
joaosaffran wrote:

Missed that, thanks for pointing out

https://github.com/llvm/llvm-project/pull/108686


More information about the cfe-commits mailing list