[libc-commits] [libc] [llvm] [libc][math] Refactor fdiv family to header-only (PR #182192)
via libc-commits
libc-commits at lists.llvm.org
Sat Apr 25 12:06:48 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/shared/math/fdiv.h libc/shared/math/fdivf128.h libc/shared/math/fdivl.h libc/src/__support/math/fdiv.h libc/src/__support/math/fdivf128.h libc/src/__support/math/fdivl.h libc/shared/math.h libc/src/math/generic/fdiv.cpp libc/src/math/generic/fdivf128.cpp libc/src/math/generic/fdivl.cpp libc/test/shared/shared_math_constexpr_test.cpp libc/test/shared/shared_math_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_constexpr_test.cpp b/libc/test/shared/shared_math_constexpr_test.cpp
index 695fcad3a..93050d14c 100644
--- a/libc/test/shared/shared_math_constexpr_test.cpp
+++ b/libc/test/shared/shared_math_constexpr_test.cpp
@@ -77,7 +77,7 @@ static_assert(0.0 ==
LIBC_NAMESPACE::shared::ddivf128(float128(0.0), float128(1.0)));
static_assert(0.0 ==
LIBC_NAMESPACE::shared::dmulf128(float128(0.0), float128(1.0)));
-static_assert(0.0f ==
+static_assert(0.0f ==
LIBC_NAMESPACE::shared::fdivf128(float128(0.0), float128(1.0)));
static_assert(float128(0.0) ==
LIBC_NAMESPACE::shared::floorf128(float128(0.0)));
``````````
</details>
https://github.com/llvm/llvm-project/pull/182192
More information about the libc-commits
mailing list