More optimizations originally suggested by Manuel Nova: Use a sentinel value
authorRob Landley <rob@landley.net>
Thu, 18 Jan 2007 23:16:11 +0000 (18:16 -0500)
committerRob Landley <rob@landley.net>
Thu, 18 Jan 2007 23:16:11 +0000 (18:16 -0500)
commit813840c9d199bf9e26d23291cf23e22a68e8ad82
tree3ffb358ef236cc64755c207a45c03a89599c8279
parentc4a5521e452306bc9872df90d2556de68879b12e
More optimizations originally suggested by Manuel Nova: Use a sentinel value
for limit[] to move a test out of a loop.  Unroll a single-bit get_bits()
to avoid a function call in the common case on a hot path.  And one more
application of the old "two tests in one via typecasting and/or math" trick.
lib/bunzip.c