[libc-commits] [libc] [libc][NFC] Make EXP_MANT_MASK an implementation detail (PR #75621)

via libc-commits libc-commits at lists.llvm.org
Fri Dec 15 08:57:25 PST 2023


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 2103de0c4cced5d06165a8a8a84cec89c8ab3be0 2f65694086912908c6ac5f76cf2dccc2fcc06014 -- libc/src/__support/FPUtil/FPBits.h libc/src/__support/FPUtil/FloatProperties.h libc/src/__support/FPUtil/x86_64/LongDoubleBits.h libc/src/math/generic/acoshf.cpp libc/src/math/generic/asinhf.cpp libc/src/math/generic/atanhf.cpp libc/src/math/generic/exp.cpp libc/src/math/generic/exp10.cpp libc/src/math/generic/exp2.cpp libc/src/math/generic/expm1.cpp libc/src/math/generic/inv_trigf_utils.h libc/src/math/generic/powf.cpp libc/src/math/generic/sinhf.cpp libc/src/math/generic/tanhf.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/libc/src/math/generic/exp10.cpp b/libc/src/math/generic/exp10.cpp
index 07df55d1ad..3c6e29b374 100644
--- a/libc/src/math/generic/exp10.cpp
+++ b/libc/src/math/generic/exp10.cpp
@@ -225,7 +225,7 @@ double set_exceptional(double x) {
   FPBits xbits(x);
 
   uint64_t x_u = xbits.uintval();
-  uint64_t x_abs = FloatProp::abs( x_u);
+  uint64_t x_abs = FloatProp::abs(x_u);
 
   // |x| < log10(1 + 2^-53)
   if (x_abs <= 0x3c8bcb7b1526e50e) {
diff --git a/libc/src/math/generic/expm1.cpp b/libc/src/math/generic/expm1.cpp
index 3114eeb056..00ae6743e6 100644
--- a/libc/src/math/generic/expm1.cpp
+++ b/libc/src/math/generic/expm1.cpp
@@ -223,7 +223,7 @@ double set_exceptional(double x) {
   FPBits xbits(x);
 
   uint64_t x_u = xbits.uintval();
-  uint64_t x_abs = FloatProp::abs( x_u);
+  uint64_t x_abs = FloatProp::abs(x_u);
 
   // |x| <= 2^-53.
   if (x_abs <= 0x3ca0'0000'0000'0000ULL) {

``````````

</details>


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


More information about the libc-commits mailing list