[libc-commits] [libc] [libc][math] Add setpayloadl function. (PR #102408)

via libc-commits libc-commits at lists.llvm.org
Wed Aug 7 18:16:44 PDT 2024


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 04e7eaf91f3e9b6830feb2e08bb5b0ddb14c3174 02ea6c143b2d1f055edc0e7c9e2b6e589fa7754c --extensions h,cpp -- libc/src/math/generic/setpayloadl.cpp libc/src/math/setpayloadl.h libc/test/src/math/smoke/setpayloadl_test.cpp
``````````

</details>

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

``````````diff
diff --git a/libc/src/math/generic/setpayloadl.cpp b/libc/src/math/generic/setpayloadl.cpp
index fd06338047..486f3f9272 100644
--- a/libc/src/math/generic/setpayloadl.cpp
+++ b/libc/src/math/generic/setpayloadl.cpp
@@ -13,7 +13,7 @@
 
 namespace LIBC_NAMESPACE_DECL {
 
-LLVM_LIBC_FUNCTION(int, setpayloadl, (long double *res, long double  pl)) {
+LLVM_LIBC_FUNCTION(int, setpayloadl, (long double *res, long double pl)) {
   return static_cast<int>(fputil::setpayload</*IsSignaling=*/false>(*res, pl));
 }
 

``````````

</details>


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


More information about the libc-commits mailing list