[libc-commits] [libc] [libc][math][c23] Add entrypoints and tests for setpayloadsig{, f, f128} (PR #102413)

via libc-commits libc-commits at lists.llvm.org
Wed Aug 7 19:14:07 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 408d82d352eb98e2d0a804c66d359cd7a49228fe 603643e8a9cd1684ab331f299e6a61ab3c88c699 --extensions cpp,h -- libc/src/math/generic/setpayloadsig.cpp libc/src/math/generic/setpayloadsigf.cpp libc/src/math/generic/setpayloadsigf128.cpp libc/src/math/setpayloadsig.h libc/src/math/setpayloadsigf.h libc/src/math/setpayloadsigf128.h libc/test/src/math/smoke/setpayloadsig_test.cpp libc/test/src/math/smoke/setpayloadsigf128_test.cpp libc/test/src/math/smoke/setpayloadsigf_test.cpp
``````````

</details>

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

``````````diff
diff --git a/libc/src/math/generic/setpayloadsigf128.cpp b/libc/src/math/generic/setpayloadsigf128.cpp
index d98e4d1fc8..97f6a36e22 100644
--- a/libc/src/math/generic/setpayloadsigf128.cpp
+++ b/libc/src/math/generic/setpayloadsigf128.cpp
@@ -13,7 +13,7 @@
 
 namespace LIBC_NAMESPACE_DECL {
 
-LLVM_LIBC_FUNCTION(int, setpayloadsigf128, (float128 *res, float128 pl)) {
+LLVM_LIBC_FUNCTION(int, setpayloadsigf128, (float128 * res, float128 pl)) {
   return static_cast<int>(fputil::setpayload</*IsSignaling=*/true>(*res, pl));
 }
 

``````````

</details>


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


More information about the libc-commits mailing list