[clang] [llvm] [HLSL][DXIL] Implementation of round intrinsic (PR #83570)
S. Bharadwaj Yadavalli via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 1 08:13:30 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
----------------
bharadwajy wrote:
```suggestion
/// rounded to the nearest even value.
/// \param x The specified input
```
Typically `\param` command starts on a new line.
https://github.com/llvm/llvm-project/pull/83570
More information about the cfe-commits
mailing list