[libc-commits] [libc] [libc] fix -Wconversion (PR #77384)
Nick Desaulniers via libc-commits
libc-commits at lists.llvm.org
Mon Jan 8 16:17:16 PST 2024
================
@@ -233,7 +233,8 @@ template <> LIBC_INLINE uint32_t neq<__m512i>(CPtr p1, CPtr p2, size_t offset) {
const auto a = load<__m512i>(p1, offset);
const auto b = load<__m512i>(p2, offset);
const uint64_t xored = _mm512_cmpneq_epi8_mask(a, b);
- return (xored >> 32) | (xored & 0xFFFFFFFF);
+ return static_cast<uint32_t>(xored >> 32) |
+ static_cast<uint32_t>(xored & 0xFFFFFFFF));
----------------
nickdesaulniers wrote:
extra `)`
https://github.com/llvm/llvm-project/pull/77384
More information about the libc-commits
mailing list