Michael Kuan says to Happy Web Developer
for idx=1; idx < STOP_AT; idx *= 2