Simplify fast_dot.