[libc-commits] [libc] [libc][AArch64] Make mathvec/aarch64/expf.cpp compile big-endian (PR #218945)
via libc-commits
libc-commits at lists.llvm.org
Wed Aug 26 08:01:06 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/mathvec/aarch64/common.h libc/src/mathvec/aarch64/expf.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/src/mathvec/aarch64/common.h b/libc/src/mathvec/aarch64/common.h
index 68be773b6..1bade946c 100644
--- a/libc/src/mathvec/aarch64/common.h
+++ b/libc/src/mathvec/aarch64/common.h
@@ -44,11 +44,9 @@ using AdvSIMDFP64Vector = LIBC_NAMESPACE::cpp::simd<double, 2>;
// Use the gcc language extension of defining a vector using an initializer
// list, which allows the whole vector to be statically defined in const data.
#define V2_SPLAT_TYPE(TYPE_PREFIX) TYPE_PREFIX##x2_t
-#define V2_SPLAT_INITIALIZER(LANE) \
- { LANE, LANE }
+#define V2_SPLAT_INITIALIZER(LANE) {LANE, LANE}
#define V4_SPLAT_TYPE(TYPE_PREFIX) TYPE_PREFIX##x4_t
-#define V4_SPLAT_INITIALIZER(LANE) \
- { LANE, LANE, LANE, LANE }
+#define V4_SPLAT_INITIALIZER(LANE) {LANE, LANE, LANE, LANE}
#define MAKE_SPLAT_VECTOR(VEC, FN_SUFFIX) VEC
#else
``````````
</details>
https://github.com/llvm/llvm-project/pull/218945
More information about the libc-commits
mailing list