[libc-commits] [libc] [libc][math] adds `nanf128` (PR #85201)

via libc-commits libc-commits at lists.llvm.org
Thu Mar 14 01:57:41 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 2582965c160486f9e3b0680f1cebc5ffdef9620c 64f967943cc2abc383955aa7e1ce2831e1d56b0f -- libc/src/math/generic/nanf128.cpp libc/src/math/nanf128.h libc/test/src/math/smoke/nanf128_test.cpp libc/src/__support/UInt.h libc/src/__support/str_to_float.h libc/src/__support/str_to_integer.h
``````````

</details>

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

``````````diff
diff --git a/libc/test/src/math/smoke/nanf128_test.cpp b/libc/test/src/math/smoke/nanf128_test.cpp
index f90f052ec2..1f752c75db 100644
--- a/libc/test/src/math/smoke/nanf128_test.cpp
+++ b/libc/test/src/math/smoke/nanf128_test.cpp
@@ -17,8 +17,8 @@ public:
   using FPBits128 = LIBC_NAMESPACE::fputil::FPBits<float128>;
   using StorageType = FPBits128::StorageType;
 
-  const UInt128 QUIET_NAN = FPBits128::quiet_nan(
-      LIBC_NAMESPACE::fputil::Sign::POS, 0).uintval();
+  const UInt128 QUIET_NAN =
+      FPBits128::quiet_nan(LIBC_NAMESPACE::fputil::Sign::POS, 0).uintval();
 
   const UInt128 ONE = UInt128(1);
   const UInt128 ZERO = UInt128(0);

``````````

</details>


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


More information about the libc-commits mailing list