remove unnecessary variable. unroll loop for better code size.
unroll loop for better code size

gcc remove 29 bytes here
remove unnecessary variable