Skip to content

Commit e334a1a

Browse files
Fix size used for vectorization check in BitArray (#111558) (#111564)
Co-authored-by: Eirik Tsarpalis <[email protected]>
1 parent 0290a8b commit e334a1a

File tree

1 file changed

+1
-1
lines changed
  • src/libraries/System.Collections/src/System/Collections

1 file changed

+1
-1
lines changed

src/libraries/System.Collections/src/System/Collections/BitArray.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,7 @@ public unsafe void CopyTo(Array array, int index)
885885
}
886886
}
887887
}
888-
else if (Ssse3.IsSupported && ((uint)m_length >= Vector512<byte>.Count * 2u))
888+
else if (Ssse3.IsSupported && ((uint)m_length >= Vector128<byte>.Count * 2u))
889889
{
890890
Vector128<byte> lowerShuffleMask = lowerShuffleMask_CopyToBoolArray;
891891
Vector128<byte> upperShuffleMask = upperShuffleMask_CopyToBoolArray;

0 commit comments

Comments
 (0)