Definitely in the real of super high efficiency because that code is extremely unreadable.
For fun, I would have XOR’d the two byte representations and just summed the 1’s to get the total.
Definitely in the real of super high efficiency because that code is extremely unreadable.
For fun, I would have XOR’d the two byte representations and just summed the 1’s to get the total.