[clang] [llvm] [HLSL][DXIL] Implementation of round intrinsic (PR #83570)

Farzon Lotfi via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 1 08:36:42 PST 2024


================
@@ -831,6 +831,40 @@ uint64_t3 reversebits(uint64_t3);
 _HLSL_BUILTIN_ALIAS(__builtin_elementwise_bitreverse)
 uint64_t4 reversebits(uint64_t4);
 
+//===----------------------------------------------------------------------===//
+// frac builtins
+//===----------------------------------------------------------------------===//
+
+/// \fn T round(T x)
+/// \brief Rounds the specified value to the nearest integer. Halfway cases are
+/// rounded to the nearest even. \a x parameter. \param x The specified input
----------------
farzonl wrote:

i see clang format was doing this. I'm change this sting up a bit so that it doesn't collapse the lines. 

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


More information about the cfe-commits mailing list