summaryrefslogtreecommitdiffstats
path: root/lib/zlib_deflate/defutil.h
diff options
context:
space:
mode:
authoryalin wang <yalin.wang2010@gmail.com>2015-09-10 00:39:18 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2015-09-10 22:29:01 +0200
commit8b235f2f16a472b8cfc10e8ef1286fcd3331e033 (patch)
tree833e552d3da36089d23727f25b6e2b133d769eb3 /lib/zlib_deflate/defutil.h
parentlib/decompress_unlzma: Do a NULL check for pointer (diff)
downloadlinux-8b235f2f16a472b8cfc10e8ef1286fcd3331e033.tar.xz
linux-8b235f2f16a472b8cfc10e8ef1286fcd3331e033.zip
zlib_deflate/deftree: remove bi_reverse()
Remove bi_reverse() and use generic bitrev32() instead - it should have better performance on some platforms. Signed-off-by: yalin wang <yalin.wang2010@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/zlib_deflate/defutil.h')
-rw-r--r--lib/zlib_deflate/defutil.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/zlib_deflate/defutil.h b/lib/zlib_deflate/defutil.h
index b640b6402e99..a8c370897c9f 100644
--- a/lib/zlib_deflate/defutil.h
+++ b/lib/zlib_deflate/defutil.h
@@ -293,22 +293,6 @@ void zlib_tr_stored_type_only (deflate_state *);
}
/* ===========================================================================
- * 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.
*/
static inline void bi_flush(deflate_state *s)