[libc-commits] [libc] [llvm] [libc][math] Refactor rint-nearbyint family to header-only (PR #195577)
via libc-commits
libc-commits at lists.llvm.org
Sun May 3 19:37:19 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/nearbyint.h libc/shared/math/nearbyintbf16.h libc/shared/math/nearbyintf.h libc/shared/math/nearbyintf128.h libc/shared/math/nearbyintf16.h libc/shared/math/nearbyintl.h libc/shared/math/rint.h libc/shared/math/rintbf16.h libc/shared/math/rintf.h libc/shared/math/rintf128.h libc/shared/math/rintf16.h libc/shared/math/rintl.h libc/src/__support/math/nearbyint.h libc/src/__support/math/nearbyintbf16.h libc/src/__support/math/nearbyintf.h libc/src/__support/math/nearbyintf128.h libc/src/__support/math/nearbyintf16.h libc/src/__support/math/nearbyintl.h libc/src/__support/math/rint.h libc/src/__support/math/rintbf16.h libc/src/__support/math/rintf.h libc/src/__support/math/rintf128.h libc/src/__support/math/rintf16.h libc/src/__support/math/rintl.h libc/shared/math.h libc/src/__support/math/atanhf16.h libc/src/math/generic/nearbyint.cpp libc/src/math/generic/nearbyintbf16.cpp libc/src/math/generic/nearbyintf.cpp libc/src/math/generic/nearbyintf128.cpp libc/src/math/generic/nearbyintf16.cpp libc/src/math/generic/nearbyintl.cpp libc/src/math/generic/rint.cpp libc/src/math/generic/rintbf16.cpp libc/src/math/generic/rintf.cpp libc/src/math/generic/rintf128.cpp libc/src/math/generic/rintf16.cpp libc/src/math/generic/rintl.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/src/__support/math/atanhf16.h b/libc/src/__support/math/atanhf16.h
index fd9b0377f..304cded3e 100644
--- a/libc/src/__support/math/atanhf16.h
+++ b/libc/src/__support/math/atanhf16.h
@@ -1,8 +1,9 @@
-//w==-- Implementation header for atanhf16 ----------------------*- C++ -*-===//
+// w==-- Implementation header for atanhf16 ----------------------*- C++
+// -*-===//
//
-// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
-// See https://llvm.org/LICENSE.txt for license information.
-// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM
+// Exceptions. See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
``````````
</details>
https://github.com/llvm/llvm-project/pull/195577
More information about the libc-commits
mailing list