This reduces the size from 12 to 2 bytes. It does assume an efficient population count instruction, which is not guaranteed. Signed-off-by: Jeff Epler <jepler@gmail.com>