unroll loop for better code size

gcc remove 29 bytes here
Merge pull request #123 from treymarc/patch-9

unroll loop for better code size