Compare Bytes
Posted: Sun Apr 24, 2022 7:52 pm
Hello,
I'm looking for a SIMD command (SSE or AVX) to compare
single bytes in a ymm0, ymm1 Register or in memory.
I find VPCMPEQB, can i do it with this command?
The bytes can be on different place in the register.
I will get the number of bytes that's equal.
Example:
20, 96, 12, 67, 150, 55, 1, 123...
73, 1, 80, 45, 20, 123, 210, 21...
Here i have 3 equal bytes as result.
How can i do this?
Interfind
I'm looking for a SIMD command (SSE or AVX) to compare
single bytes in a ymm0, ymm1 Register or in memory.
I find VPCMPEQB, can i do it with this command?
The bytes can be on different place in the register.
I will get the number of bytes that's equal.
Example:
20, 96, 12, 67, 150, 55, 1, 123...
73, 1, 80, 45, 20, 123, 210, 21...
Here i have 3 equal bytes as result.
How can i do this?
Interfind