X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=kernel%2Flib%2Fzlib_deflate%2Fdefutil.h;h=a8c370897c9f4ee641373ba9245a5d833de07683;hb=e09b41010ba33a20a87472ee821fa407a5b8da36;hp=b640b6402e99e3a74db809012a4138c4cef48457;hpb=9ca8dbcc65cfc63d6f5ef3312a33184e1d726e00;p=kvmfornfv.git diff --git a/kernel/lib/zlib_deflate/defutil.h b/kernel/lib/zlib_deflate/defutil.h index b640b6402..a8c370897 100644 --- a/kernel/lib/zlib_deflate/defutil.h +++ b/kernel/lib/zlib_deflate/defutil.h @@ -292,22 +292,6 @@ void zlib_tr_stored_type_only (deflate_state *); put_byte(s, (uch)((ush)(w) >> 8)); \ } -/* =========================================================================== - * Reverse the first len bits of a code, using straightforward code (a faster - * method would use a table) - * IN assertion: 1 <= len <= 15 - */ -static inline unsigned bi_reverse(unsigned code, /* the value to invert */ - int len) /* its bit length */ -{ - register unsigned res = 0; - do { - res |= code & 1; - code >>= 1, res <<= 1; - } while (--len > 0); - return res >> 1; -} - /* =========================================================================== * Flush the bit buffer, keeping at most 7 bits in it. */