[libc-commits] [libc] [libc][math][c23] Add entrypoints for totalorder{f, l, f128} (PR #100593)

via libc-commits libc-commits at lists.llvm.org
Thu Jul 25 09:39:19 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 8e43acbfedf53ded43ec693ddaaf518cb7416c1c d6cabe36cd0aed95fa9e0172166caf3bb17f7f1c --extensions cpp,h -- libc/src/math/generic/totalorder.cpp libc/src/math/generic/totalorderf.cpp libc/src/math/generic/totalorderf128.cpp libc/src/math/generic/totalorderl.cpp libc/src/math/totalorder.h libc/src/math/totalorderf.h libc/src/math/totalorderf128.h libc/src/math/totalorderl.h libc/test/src/math/smoke/totalorder_test.cpp libc/test/src/math/smoke/totalorderf128_test.cpp libc/test/src/math/smoke/totalorderf_test.cpp libc/test/src/math/smoke/totalorderl_test.cpp
``````````

</details>

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

``````````diff
diff --git a/libc/src/math/generic/totalorderf128.cpp b/libc/src/math/generic/totalorderf128.cpp
index 956f8c9e8c..83d77686d2 100644
--- a/libc/src/math/generic/totalorderf128.cpp
+++ b/libc/src/math/generic/totalorderf128.cpp
@@ -13,7 +13,8 @@
 
 namespace LIBC_NAMESPACE_DECL {
 
-LLVM_LIBC_FUNCTION(int, totalorderf128, (const float128 *x, const float128 *y)) {
+LLVM_LIBC_FUNCTION(int, totalorderf128,
+                   (const float128 *x, const float128 *y)) {
   return static_cast<int>(fputil::totalorder(*x, *y));
 }
 
diff --git a/libc/src/math/generic/totalorderl.cpp b/libc/src/math/generic/totalorderl.cpp
index f3fa2b2c01..1aae1c6cd0 100644
--- a/libc/src/math/generic/totalorderl.cpp
+++ b/libc/src/math/generic/totalorderl.cpp
@@ -13,7 +13,8 @@
 
 namespace LIBC_NAMESPACE_DECL {
 
-LLVM_LIBC_FUNCTION(int, totalorderl, (const long double *x, const long double *y)) {
+LLVM_LIBC_FUNCTION(int, totalorderl,
+                   (const long double *x, const long double *y)) {
   return static_cast<int>(fputil::totalorder(*x, *y));
 }
 
diff --git a/libc/src/math/totalorderf.h b/libc/src/math/totalorderf.h
index 6806f4dc78..f649dc937e 100644
--- a/libc/src/math/totalorderf.h
+++ b/libc/src/math/totalorderf.h
@@ -1,4 +1,5 @@
-//===-- Implementation header for totalorderf --------------------*- C++ -*-===//
+//===-- Implementation header for totalorderf --------------------*- C++
+//-*-===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.

``````````

</details>


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


More information about the libc-commits mailing list