[libcxx-commits] [libcxx] [libc++] Vectorize mismatch (PR #73255)
via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Nov 23 09:17:10 PST 2023
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 3114bd32e758b0f25cfa3dee5fa520e45f8fe491 f5a4e3b1408ae234546163f9221016233278335c -- libcxx/benchmarks/algorithms/mismatch.bench.cpp libcxx/include/__algorithm/vectorization.h libcxx/include/__algorithm/mismatch.h libcxx/include/experimental/__simd/abi_tag.h libcxx/include/experimental/__simd/aligned_tag.h libcxx/include/experimental/__simd/declaration.h libcxx/include/experimental/__simd/internal_declaration.h libcxx/include/experimental/__simd/reference.h libcxx/include/experimental/__simd/simd.h libcxx/include/experimental/__simd/simd_mask.h libcxx/include/experimental/__simd/utility.h libcxx/include/experimental/__simd/vec_ext.h libcxx/test/std/algorithms/alg.nonmodifying/mismatch/mismatch.pass.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/include/experimental/__simd/vec_ext.h b/libcxx/include/experimental/__simd/vec_ext.h
index ab414c136d..24cb5a8824 100644
--- a/libcxx/include/experimental/__simd/vec_ext.h
+++ b/libcxx/include/experimental/__simd/vec_ext.h
@@ -102,7 +102,7 @@ struct __mask_operations<_Tp, simd_abi::__vec_ext<_Np>> {
} else
# endif
# ifdef __SSE2__
- if constexpr (__vec_size == 16) {
+ if constexpr (__vec_size == 16) {
return _mm_movemask_epi8((__m128i)__mask.__data) == 0xffffU;
} else
# endif
``````````
</details>
https://github.com/llvm/llvm-project/pull/73255
More information about the libcxx-commits
mailing list