movebits: rewrite significant chunks of the algorithm syslinux-3.63-pre5
authorH. Peter Anvin <hpa@zytor.com>
Wed, 9 Apr 2008 17:56:09 +0000 (10:56 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Wed, 9 Apr 2008 17:56:09 +0000 (10:56 -0700)
commit214689c9eecb7704275cc30a09319bb9c608fe73
treea55347ef45758826a7233867163da55030b46738
parent8c7e976621b91708272ca3e02a25e99155bc2da8
movebits: rewrite significant chunks of the algorithm

Rewrite the algorithm to prefer entries which can be directly moved
into their target slots; this should reduce the number of descriptors
in most cases (although not necessarily *all* cases.)

Try to clean up the code some while we're at it... the code is
confusing enough as it is.
com32/lib/syslinux/movebits.c