Question in initUndistortRectifyMap source code

that looks like a micro-optimization of a matrix-vector product where repeated multiplication, by an increasing y, is replaced by repeated additions instead.