~mirabilos/mksh/MAIN

Viewing all changes in revision 3283.

  • Committer: tg
  • Date: 2021-10-16 02:20:02 UTC
  • Revision ID: tg-20211016022002-sokrln6i60rqfrj0
unroll that loop to fix a bad off-by-one error

could have fixed it by changing the while (n--) after the goto utflead; to
a while (--n) but not only feels that wrong (others even worse), it’s also
more performant this way (unrolled via Duff’s), knowing that n can only be
2/3 (or 4 with 21-bit UCS later) here (we should do more multibyte-induced
loops this way!)

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: