Be carefull the algorithm ReadFileInChunksAndCompareAvx2 is not correct you must move into oh1 and oh2 otherwise you are always comparing the same segment.
I would fix the last loop with :
var totalProcessed = 0; while (totalProcessed < count1) { var result = Avx2.CompareEqual(Avx.LoadVector256(oh1+ totalProcessed), Avx.LoadVector256(oh2+totalProcessed)); if (Avx2.MoveMask(result) != -1) { return false; } totalProcessed += Vector256<byte>.Count; }
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Be carefull the algorithm ReadFileInChunksAndCompareAvx2 is not correct you must move into oh1 and oh2 otherwise you are always comparing the same segment.
I would fix the last loop with :