[libc-commits] [libc] [libc] Fix is_subnormal for Intel Extended Precision (PR #78592)
via libc-commits
libc-commits at lists.llvm.org
Thu Jan 18 07:01:02 PST 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 e6a6a90fe739d5f792645bf237eb0e540fad8c69 0ce391137b360970401761aa9ea9ce9e1294cfbc -- libc/src/__support/FPUtil/FPBits.h libc/src/__support/FPUtil/NormalFloat.h libc/src/__support/FPUtil/generic/FMA.h libc/src/__support/FPUtil/generic/sqrt.h libc/src/__support/FPUtil/generic/sqrt_80_bit_long_double.h libc/src/__support/FPUtil/x86_64/NextAfterLongDouble.h libc/utils/MPFRWrapper/MPFRUtils.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libc/src/__support/FPUtil/x86_64/NextAfterLongDouble.h b/libc/src/__support/FPUtil/x86_64/NextAfterLongDouble.h
index 6e3cc1d183..512f5de4e7 100644
--- a/libc/src/__support/FPUtil/x86_64/NextAfterLongDouble.h
+++ b/libc/src/__support/FPUtil/x86_64/NextAfterLongDouble.h
@@ -38,8 +38,7 @@ LIBC_INLINE long double nextafter(long double from, long double to) {
return to;
// Convert pseudo subnormal number to normal number.
- if (from_bits.get_implicit_bit() == 1 &&
- from_bits.is_subnormal()) {
+ if (from_bits.get_implicit_bit() == 1 && from_bits.is_subnormal()) {
from_bits.set_biased_exponent(1);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/78592
More information about the libc-commits
mailing list