Popcnt vectorization

Hi Simon,

Same as in the other pull request, added the missing masks

Best regards,
Diego
Yes, should be better. But I don't know what is the best thing to put in the "else" case then