[libc-commits] [libc] [libc][math][c23] Improve performance of fadd using double arithmetic (PR #112055)
via libc-commits
libc-commits at lists.llvm.org
Fri Oct 11 15:21:24 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 8b46d40221f3c302e9c28e3ad7c79767f905a862 eb246298eccd0653d659be629e619bc8eff3251b --extensions cpp -- libc/test/src/math/performance_testing/fadd_perf.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libc/test/src/math/performance_testing/fadd_perf.cpp b/libc/test/src/math/performance_testing/fadd_perf.cpp
index b903595d26..a6a282ba7f 100644
--- a/libc/test/src/math/performance_testing/fadd_perf.cpp
+++ b/libc/test/src/math/performance_testing/fadd_perf.cpp
@@ -16,7 +16,8 @@ float fadd_placeholder_binary(double x, double y) {
}
int main() {
- BINARY_OP_SINGLE_OUTPUT_PERF_EX(float, double, myFunc, fadd_placeholder_binary, DOUBLE_ROUNDS, "fadd_perf.log")
- return 0;
+ BINARY_OP_SINGLE_OUTPUT_PERF_EX(float, double, myFunc,
+ fadd_placeholder_binary, DOUBLE_ROUNDS,
+ "fadd_perf.log")
+ return 0;
}
-
``````````
</details>
https://github.com/llvm/llvm-project/pull/112055
More information about the libc-commits
mailing list