[libc-commits] [libc] [llvm] [libc] Make totalorder functions use the emulated float128 type (PR #221085)
via libc-commits
libc-commits at lists.llvm.org
Wed Sep 16 00:28:36 PDT 2026
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 origin/main HEAD --extensions cpp,h -- libc/shared/math/totalorderf128.h libc/shared/math/totalordermagf128.h libc/src/__support/math/totalorderf128.h libc/src/__support/math/totalordermagf128.h libc/src/math/generic/totalorderf128.cpp libc/src/math/generic/totalordermagf128.cpp libc/src/math/totalorderf128.h libc/src/math/totalordermagf128.h libc/test/shared/shared_math_constexpr_test.cpp libc/test/shared/shared_math_test.cpp libc/test/src/math/smoke/totalorderf128_test.cpp libc/test/src/math/smoke/totalordermagf128_test.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libc/src/__support/math/totalorderf128.h b/libc/src/__support/math/totalorderf128.h
index 42bc659fc..0128b5ab7 100644
--- a/libc/src/__support/math/totalorderf128.h
+++ b/libc/src/__support/math/totalorderf128.h
@@ -23,8 +23,7 @@ namespace math {
using LIBC_NAMESPACE::fputil::Float128;
-LIBC_INLINE constexpr int totalorderf128(const Float128 *x,
- const Float128 *y) {
+LIBC_INLINE constexpr int totalorderf128(const Float128 *x, const Float128 *y) {
return static_cast<int>(fputil::totalorder(*x, *y));
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/221085
More information about the libc-commits
mailing list