VC1: simplify a calculation in a loop.