[clang] [HLSL] Implement the `ldexp` intrinsic (PR #138182)

via cfe-commits cfe-commits at lists.llvm.org
Thu May 1 12:06:17 PDT 2025


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff HEAD~1 HEAD --extensions h -- clang/lib/Headers/hlsl/hlsl_intrinsic_helpers.h clang/lib/Headers/hlsl/hlsl_intrinsics.h
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/lib/Headers/hlsl/hlsl_intrinsics.h b/clang/lib/Headers/hlsl/hlsl_intrinsics.h
index ffeb09bb4..b26ebbcbe 100644
--- a/clang/lib/Headers/hlsl/hlsl_intrinsics.h
+++ b/clang/lib/Headers/hlsl/hlsl_intrinsics.h
@@ -308,7 +308,8 @@ fmod(__detail::HLSL_FIXED_VECTOR<float, N> X,
 //===----------------------------------------------------------------------===//
 
 /// \fn T ldexp(T X, T Exp)
-/// \brief Returns the result of multiplying \a X by two, raised to the power of \a Exp.
+/// \brief Returns the result of multiplying \a X by two, raised to the power of
+/// \a Exp.
 /// \param X [in] The specified value.
 /// \param Exp [in] The specified exponent.
 ///

``````````

</details>


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


More information about the cfe-commits mailing list