[libc-commits] [libc] [libc] Add config option for fast math optimizations (PR #98029)

via libc-commits libc-commits at lists.llvm.org
Mon Jul 8 07:42:06 PDT 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 d3a5589684baed14e82e57ca31fd4e988cb1436d 6c0aea67a770bb5896e18d6a15e5efbca1a0e77b -- libc/src/math/generic/tan.cpp
``````````

</details>

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

``````````diff
diff --git a/libc/src/math/generic/tan.cpp b/libc/src/math/generic/tan.cpp
index d153cc53ac..78d71c16c1 100644
--- a/libc/src/math/generic/tan.cpp
+++ b/libc/src/math/generic/tan.cpp
@@ -159,7 +159,7 @@ LLVM_LIBC_FUNCTION(double, tan, (double x)) {
       if (LIBC_UNLIKELY(x == 0.0))
         return x;
 
-      // For |x| < 2^-27, |tan(x) - x| < ulp(x)/2.
+        // For |x| < 2^-27, |tan(x) - x| < ulp(x)/2.
 #ifdef LIBC_TARGET_CPU_HAS_FMA
       return fputil::multiply_add(x, 0x1.0p-54, x);
 #else

``````````

</details>


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


More information about the libc-commits mailing list