[libc-commits] [libc] [libc][FPUtil] Make hardware helpers usable in constant expressions (PR #242283)
via libc-commits
libc-commits at lists.llvm.org
Sun Nov 15 03:28:12 PST 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 -- libc/src/__support/FPUtil/FEnvImpl.h libc/src/__support/FPUtil/FMA.h libc/src/__support/FPUtil/Hypot.h libc/src/__support/FPUtil/PolyEval.h libc/src/__support/FPUtil/aarch64/FEnvImpl.h libc/src/__support/FPUtil/aarch64/fenv_darwin_impl.h libc/src/__support/FPUtil/aarch64/nearest_integer.h libc/src/__support/FPUtil/aarch64/sqrt.h libc/src/__support/FPUtil/arm/FEnvImpl.h libc/src/__support/FPUtil/arm/sqrt.h libc/src/__support/FPUtil/double_double.h libc/src/__support/FPUtil/dyadic_float.h libc/src/__support/FPUtil/generic/FMA.h libc/src/__support/FPUtil/generic/sqrt.h libc/src/__support/FPUtil/hexagon/FEnvImpl.h libc/src/__support/FPUtil/multiply_add.h libc/src/__support/FPUtil/nearest_integer.h libc/src/__support/FPUtil/riscv/FEnvImpl.h libc/src/__support/FPUtil/riscv/sqrt.h libc/src/__support/FPUtil/sqrt.h libc/src/__support/FPUtil/x86_64/FEnvImpl.h libc/src/__support/FPUtil/x86_64/nearest_integer.h libc/src/__support/FPUtil/x86_64/sqrt.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/src/__support/FPUtil/PolyEval.h b/libc/src/__support/FPUtil/PolyEval.h
index 911600393..2a03dfe8e 100644
--- a/libc/src/__support/FPUtil/PolyEval.h
+++ b/libc/src/__support/FPUtil/PolyEval.h
@@ -48,9 +48,9 @@ polyeval(const T &x, const T &a0, const Ts &...a) {
}
template <typename T, typename... Ts>
-LIBC_INLINE LIBC_CONSTEXPR_DEFAULT cpp::enable_if_t<
- (sizeof(T) <= sizeof(void *)), T>
-polyeval(T x, T a0, Ts... a) {
+LIBC_INLINE
+ LIBC_CONSTEXPR_DEFAULT cpp::enable_if_t<(sizeof(T) <= sizeof(void *)), T>
+ polyeval(T x, T a0, Ts... a) {
return multiply_add(x, polyeval(x, a...), a0);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/242283
More information about the libc-commits
mailing list