[libc-commits] [libc] [libc] Enables MPFR for float80 and adds tests for it (PR #223800)

via libc-commits libc-commits at lists.llvm.org
Fri Sep 18 13:03:55 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 h,cpp -- libc/test/src/__support/FPUtil/float80_test.cpp libc/utils/MPFRWrapper/MPCommon.cpp libc/utils/MPFRWrapper/MPCommon.h --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/test/src/__support/FPUtil/float80_test.cpp b/libc/test/src/__support/FPUtil/float80_test.cpp
index 562ebc200..dffea501c 100644
--- a/libc/test/src/__support/FPUtil/float80_test.cpp
+++ b/libc/test/src/__support/FPUtil/float80_test.cpp
@@ -141,9 +141,9 @@ TEST(LlvmLibcFloat80Test, MPFRConversion) {
   using LIBC_NAMESPACE::testing::mpfr::MPFRNumber;
 
   Float80 values[] = {
-      Float80(0.0f),  Float80(-0.0f), Float80(1.0f),  Float80(-1.0f),
-      Float80(2.0f),  Float80(0.5f),  Float80(100.0), Float80(12345.6789),
-      Float80(1e10f),
+      Float80(0.0f),  Float80(-0.0f),      Float80(1.0f),
+      Float80(-1.0f), Float80(2.0f),       Float80(0.5f),
+      Float80(100.0), Float80(12345.6789), Float80(1e10f),
   };
 
   for (Float80 val : values) {

``````````

</details>


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


More information about the libc-commits mailing list