[libc-commits] [libc] 1689bbe - [libc] fix up #77384

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Mon Jan 8 16:18:39 PST 2024


Author: Nick Desaulniers
Date: 2024-01-08T16:18:31-08:00
New Revision: 1689bbea17683129f41246110af1ebd32b98362f

URL: https://github.com/llvm/llvm-project/commit/1689bbea17683129f41246110af1ebd32b98362f
DIFF: https://github.com/llvm/llvm-project/commit/1689bbea17683129f41246110af1ebd32b98362f.diff

LOG: [libc] fix up #77384

Added: 
    

Modified: 
    libc/src/string/memory_utils/op_x86.h

Removed: 
    


################################################################################
diff  --git a/libc/src/string/memory_utils/op_x86.h b/libc/src/string/memory_utils/op_x86.h
index 3d2eb13fa302ad..1d2ae5cd15409d 100644
--- a/libc/src/string/memory_utils/op_x86.h
+++ b/libc/src/string/memory_utils/op_x86.h
@@ -234,7 +234,7 @@ template <> LIBC_INLINE uint32_t neq<__m512i>(CPtr p1, CPtr p2, size_t offset) {
   const auto b = load<__m512i>(p2, offset);
   const uint64_t xored = _mm512_cmpneq_epi8_mask(a, b);
   return static_cast<uint32_t>(xored >> 32) |
-         static_cast<uint32_t>(xored & 0xFFFFFFFF));
+         static_cast<uint32_t>(xored & 0xFFFFFFFF);
 }
 template <>
 LIBC_INLINE MemcmpReturnType cmp_neq<__m512i>(CPtr p1, CPtr p2, size_t offset) {


        


More information about the libc-commits mailing list