fn vec_cmp_impl