I have two __m256i
vectors (each containing chars), and I want to find out if they are completely identical or not. All I need is true
if all bits are equal, and 0
otherwise.
What's the most efficient way of doing that? Here's the code loading the arrays:
char * a1 = "abcdefhgabcdefhgabcdefhgabcdefhg";
__m256i r1 = _mm256_load_si256((__m256i *) a1);
char * a2 = "abcdefhgabcdefhgabcdefhgabcdefhg";
__m256i r2 = _mm256_load_si256((__m256i *) a2);