Re:A neat XOR trick
by dahfizz on Tuesday December 13, 2022 @08:01AM
(#33968269)
The point is that each character represents a single bit in the mask, so it's easy to count the whole number of characters using popcount. If you XOR in the characters directly you can no longer easily count which characters are in the set.
[ Parent
| on HN ]
There are no comments on this comment yet.