[libc-commits] [libc] [libc][math][c23] add entrypoints and tests for totalordermag{f, l, f128} (PR #100159)
via libc-commits
libc-commits at lists.llvm.org
Tue Jul 23 09:47:32 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 20fe2525ff97b73e9b6d4bc570682a64d4b58f6e 4d5f01a5a68a963010baea5b7c59aa54facdaa8d --extensions cpp,h -- libc/src/math/generic/totalordermag.cpp libc/src/math/generic/totalordermagf.cpp libc/src/math/generic/totalordermagf128.cpp libc/src/math/generic/totalordermagl.cpp libc/src/math/totalordermag.h libc/src/math/totalordermagf.h libc/src/math/totalordermagf128.h libc/src/math/totalordermagl.h libc/test/src/math/smoke/totalordermag_test.cpp libc/test/src/math/smoke/totalordermagf128_test.cpp libc/test/src/math/smoke/totalordermagf_test.cpp libc/test/src/math/smoke/totalordermagl_test.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libc/src/math/generic/totalordermag.cpp b/libc/src/math/generic/totalordermag.cpp
index d18f3591ee..34b0d2793b 100644
--- a/libc/src/math/generic/totalordermag.cpp
+++ b/libc/src/math/generic/totalordermag.cpp
@@ -13,8 +13,7 @@
namespace LIBC_NAMESPACE_DECL {
-LLVM_LIBC_FUNCTION(int, totalordermag,
- (const double *x, const double *y)) {
+LLVM_LIBC_FUNCTION(int, totalordermag, (const double *x, const double *y)) {
return static_cast<int>(fputil::totalordermag(*x, *y));
}
diff --git a/libc/src/math/generic/totalordermagf.cpp b/libc/src/math/generic/totalordermagf.cpp
index eec7c01d8f..6b93bac51d 100644
--- a/libc/src/math/generic/totalordermagf.cpp
+++ b/libc/src/math/generic/totalordermagf.cpp
@@ -13,8 +13,7 @@
namespace LIBC_NAMESPACE_DECL {
-LLVM_LIBC_FUNCTION(int, totalordermagf,
- (const float *x, const float *y)) {
+LLVM_LIBC_FUNCTION(int, totalordermagf, (const float *x, const float *y)) {
return static_cast<int>(fputil::totalordermag(*x, *y));
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/100159
More information about the libc-commits
mailing list