[llvm-branch-commits] [libc] [llvm] [libc] Make next-type functions use the emulated float128 type (PR #217575)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Aug 27 08:55:31 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/nextafterf128.h libc/shared/math/nextdownf128.h libc/shared/math/nextupf128.h libc/src/__support/math/nextafterf128.h libc/src/__support/math/nextdownf128.h libc/src/__support/math/nextupf128.h libc/src/math/generic/nextafterf128.cpp libc/src/math/generic/nextdownf128.cpp libc/src/math/generic/nextupf128.cpp libc/src/math/nextafterf128.h libc/src/math/nextdownf128.h libc/src/math/nextupf128.h libc/test/shared/shared_math_constexpr_test.cpp libc/test/shared/shared_math_test.cpp libc/test/src/math/NextAfterTest.h libc/test/src/math/nextafterf128_test.cpp libc/test/src/math/smoke/nextafterf128_test.cpp libc/test/src/math/smoke/nextdownf128_test.cpp libc/test/src/math/smoke/nextupf128_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/test/shared/shared_math_test.cpp b/libc/test/shared/shared_math_test.cpp
index 07802e0e3..724ea3d31 100644
--- a/libc/test/shared/shared_math_test.cpp
+++ b/libc/test/shared/shared_math_test.cpp
@@ -583,7 +583,7 @@ TEST(LlvmLibcSharedMathTest, AllLongDouble) {
 TEST(LlvmLibcSharedMathTest, AllEmuFloat128) {
   using FPBits = LIBC_NAMESPACE::fputil::FPBits<Float128>;
   Float128 neg_min_denormal = FPBits::min_subnormal(Sign::NEG).get_val();
-  Float128 min_denormal = FPBits::min_subnormal(Sign ::POS).get_val();
+  Float128 min_denormal = FPBits::min_subnormal(Sign::POS).get_val();
   EXPECT_FP_EQ(Float128(0.0),
                LIBC_NAMESPACE::shared::atan2f128(Float128(0.0), Float128(0.0)));
   EXPECT_FP_EQ(Float128(0.0), LIBC_NAMESPACE::shared::ceilf128(Float128(0.0)));
@@ -704,7 +704,7 @@ TEST(LlvmLibcSharedMathTest, AllFloat128) {
   EXPECT_FP_EQ(float128(0.0), setpayloadsigf128_res);
 
   float128 neg_min_denormal = FPBits::min_subnormal(Sign::NEG).get_val();
-  float128 min_denormal = FPBits::min_subnormal(Sign ::POS).get_val();
+  float128 min_denormal = FPBits::min_subnormal(Sign::POS).get_val();
 
 #ifdef LIBC_TYPES_HAS_FLOAT16
   EXPECT_FP_EQ(10.0f16, LIBC_NAMESPACE::shared::f16fmaf128(

``````````

</details>


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


More information about the llvm-branch-commits mailing list