[libc-commits] [libc] [libc][math][c23] Add ffma{, l, f128} and fdiv{, l, f128} C23 math functions #101089 (PR #101253)

via libc-commits libc-commits at lists.llvm.org
Thu Aug 1 14:11:02 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 289c0491791c4377af1a818b531d83c0cbb06525 1a069f1321a90fd670b3d41a1f1fd6a31da51cea --extensions cpp,h -- libc/src/math/fdiv.h libc/src/math/fdivf128.h libc/src/math/fdivl.h libc/src/math/ffma.h libc/src/math/ffmaf128.h libc/src/math/ffmal.h libc/src/math/generic/fdiv.cpp libc/src/math/generic/fdivf128.cpp libc/src/math/generic/fdivl.cpp libc/src/math/generic/ffma.cpp libc/src/math/generic/ffmaf128.cpp libc/src/math/generic/ffmal.cpp libc/test/src/math/fdiv_test.cpp libc/test/src/math/fdivl_test.cpp libc/test/src/math/ffma_test.cpp libc/test/src/math/ffmal_test.cpp libc/test/src/math/smoke/fdiv_test.cpp libc/test/src/math/smoke/fdivf128_test.cpp libc/test/src/math/smoke/fdivl_test.cpp libc/test/src/math/smoke/ffma_test.cpp libc/test/src/math/smoke/ffmaf128_test.cpp libc/test/src/math/smoke/ffmal_test.cpp libc/test/src/math/smoke/DivTest.h libc/utils/MPFRWrapper/MPFRUtils.cpp
``````````

</details>

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

``````````diff
diff --git a/libc/utils/MPFRWrapper/MPFRUtils.cpp b/libc/utils/MPFRWrapper/MPFRUtils.cpp
index 1872d8b943..707af00c7b 100644
--- a/libc/utils/MPFRWrapper/MPFRUtils.cpp
+++ b/libc/utils/MPFRWrapper/MPFRUtils.cpp
@@ -1086,10 +1086,8 @@ template void
 explain_ternary_operation_one_output_error(Operation,
                                            const TernaryInput<long double> &,
                                            long double, double, RoundingMode);
-template void
-explain_ternary_operation_one_output_error(Operation,
-                                           const TernaryInput<double> &, float,
-                                           double, RoundingMode);
+template void explain_ternary_operation_one_output_error(
+    Operation, const TernaryInput<double> &, float, double, RoundingMode);
 
 template void explain_ternary_operation_one_output_error(
     Operation, const TernaryInput<long double> &, double, double, RoundingMode);

``````````

</details>


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


More information about the libc-commits mailing list