[micro optimization] unroll comparison