[libc-commits] [libc] [libc][math] Move CR/RN expf to float_eval_cr_rn namespace (PR #237614)
via libc-commits
libc-commits at lists.llvm.org
Sat Oct 31 12:23:15 PDT 2026
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 origin/main HEAD --extensions cpp,h -- libc/src/__support/math/expf.h libc/src/__support/math/expf_float_eval.h libc/src/__support/math/expf_float_utils.h libc/test/src/math/exhaustive/expf_test.cpp libc/test/src/math/expf_test.cpp libc/test/src/math/smoke/expf_test.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libc/test/src/math/exhaustive/expf_test.cpp b/libc/test/src/math/exhaustive/expf_test.cpp
index c547358a3..04bfaaf1b 100644
--- a/libc/test/src/math/exhaustive/expf_test.cpp
+++ b/libc/test/src/math/exhaustive/expf_test.cpp
@@ -64,8 +64,8 @@ static float expf_float_eval_cr_rn(float x) {
using LlvmLibcExpfFloatCrRnExhaustiveTest =
LlvmLibcUnaryOpAgainstBaselineExhaustiveMathTest<
- float, LIBC_NAMESPACE::math::double_eval::expf,
- expf_float_eval_cr_rn, 0>;
+ float, LIBC_NAMESPACE::math::double_eval::expf, expf_float_eval_cr_rn,
+ 0>;
TEST_F(LlvmLibcExpfFloatCrRnExhaustiveTest, PositiveRange) {
test_full_range(mpfr::RoundingMode::Nearest, POS_START, POS_STOP);
``````````
</details>
https://github.com/llvm/llvm-project/pull/237614
More information about the libc-commits
mailing list