diff options
author | Lei Wen <adrian.wenl@gmail.com> | 2012-09-28 04:26:44 +0000 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2012-09-29 07:26:08 -0700 |
commit | 7a32b98dacfa2da6dace2ae1d9eff08932eec61a (patch) | |
tree | 2a3b21801bfed546dcfdb8b3c3417ed5348b184d /lib/zlib/trees.c | |
parent | e9a128d8e907071d45f08c878ddacc6362554eee (diff) | |
download | u-boot-imx-7a32b98dacfa2da6dace2ae1d9eff08932eec61a.zip u-boot-imx-7a32b98dacfa2da6dace2ae1d9eff08932eec61a.tar.gz u-boot-imx-7a32b98dacfa2da6dace2ae1d9eff08932eec61a.tar.bz2 |
lib: zlib: include deflate into zlib build
Add a new config CONFIG_GZIP_ENABLED, if enabled, the uboot bin would
include zlib's deflate method which could be used for compressing.
Signed-off-by: Lei Wen <leiwen@marvell.com>
Diffstat (limited to 'lib/zlib/trees.c')
-rw-r--r-- | lib/zlib/trees.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/zlib/trees.c b/lib/zlib/trees.c index 56e9bb1..a0078d0 100644 --- a/lib/zlib/trees.c +++ b/lib/zlib/trees.c @@ -1168,14 +1168,14 @@ local int detect_data_type(s) * method would use a table) * IN assertion: 1 <= len <= 15 */ -local unsigned bi_reverse(code, len) - unsigned code; /* the value to invert */ +local unsigned bi_reverse(value, len) + unsigned value; /* the value to invert */ int len; /* its bit length */ { register unsigned res = 0; do { - res |= code & 1; - code >>= 1, res <<= 1; + res |= value & 1; + value >>= 1, res <<= 1; } while (--len > 0); return res >> 1; } |