[libc-commits] [libc] [libc][math][c23] Add fmodf16 C23 math function (PR #94629)
via libc-commits
libc-commits at lists.llvm.org
Fri Jun 7 15:21:42 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 dd1cd02a438dc372e1f8457096d01fabb93c9ced bc2bc7608bc4a33df4bfd860f56b85e1bd72c178 -- libc/src/math/fmodf16.h libc/src/math/generic/fmodf16.cpp libc/test/src/math/performance_testing/fmodf16_perf.cpp libc/test/src/math/smoke/fmodf16_test.cpp libc/src/__support/FPUtil/FPBits.h libc/src/__support/FPUtil/generic/FMod.h libc/test/src/math/performance_testing/BinaryOpSingleOutputPerf.h libc/test/src/math/smoke/FModTest.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libc/test/src/math/performance_testing/BinaryOpSingleOutputPerf.h b/libc/test/src/math/performance_testing/BinaryOpSingleOutputPerf.h
index 861840e87f..3027932c70 100644
--- a/libc/test/src/math/performance_testing/BinaryOpSingleOutputPerf.h
+++ b/libc/test/src/math/performance_testing/BinaryOpSingleOutputPerf.h
@@ -66,7 +66,8 @@ public:
runner(otherFunc);
timer.stop();
- double other_average = static_cast<double>(timer.nanoseconds()) / N / rounds;
+ double other_average =
+ static_cast<double>(timer.nanoseconds()) / N / rounds;
log << "-- Other function --\n";
log << " Total time : " << timer.nanoseconds() << " ns \n";
log << " Average runtime : " << other_average << " ns/op \n";
``````````
</details>
https://github.com/llvm/llvm-project/pull/94629
More information about the libc-commits
mailing list