> So when I saw this, I even wondered why it needed a comment or > reference at all. I thought table-in-a-constant was a standard trick > everybody knows. I wouldn't go that far. > Isn't "The constant 0x6996 has bits set in exactly the positions > corresponding to four-bit numbers with odd parity." enough? As I wrote in the mail before, I want to aid users who wonder if they can replace an existing implementation with this generic helper although it looks different.
Attachment:
signature.asc
Description: PGP signature