calculate has_bits with no if --> setne instead of branch