patch-2.3.99-pre6 linux/fs/cramfs/inflate/inffast.c
Next file: linux/fs/cramfs/inflate/inffast.h
Previous file: linux/fs/cramfs/inflate/infcodes.h
Back to the patch index
Back to the overall index
- Lines: 56
- Date:
Wed Apr 12 09:47:29 2000
- Orig file:
v2.3.99-pre5/linux/fs/cramfs/inflate/inffast.c
- Orig date:
Tue Jan 4 13:57:17 2000
diff -u --recursive --new-file v2.3.99-pre5/linux/fs/cramfs/inflate/inffast.c linux/fs/cramfs/inflate/inffast.c
@@ -25,7 +25,7 @@
at least ten. The ten bytes are six bytes for the longest length/
distance pair plus four bytes for overloading the bit buffer. */
-int inflate_fast(bl, bd, tl, td, s, z)
+int cramfs_inflate_fast(bl, bd, tl, td, s, z)
uInt bl, bd;
inflate_huft *tl;
inflate_huft *td; /* need separate declaration for Borland C++ */
@@ -50,8 +50,8 @@
LOAD
/* initialize masks */
- ml = inflate_mask[bl];
- md = inflate_mask[bd];
+ ml = cramfs_inflate_mask[bl];
+ md = cramfs_inflate_mask[bd];
/* do until not enough input or output space for fast loop */
do { /* assume called with m >= 258 && n >= 10 */
@@ -70,7 +70,7 @@
{
/* get extra bits for length */
e &= 15;
- c = t->base + ((uInt)b & inflate_mask[e]);
+ c = t->base + ((uInt)b & cramfs_inflate_mask[e]);
DUMPBITS(e)
/* decode distance base of block to copy */
@@ -83,7 +83,7 @@
/* get extra bits to add to distance base */
e &= 15;
GRABBITS(e) /* get extra bits (up to 13) */
- d = t->base + ((uInt)b & inflate_mask[e]);
+ d = t->base + ((uInt)b & cramfs_inflate_mask[e]);
DUMPBITS(e)
/* do the copy */
@@ -115,7 +115,7 @@
else if ((e & 64) == 0)
{
t += t->base;
- e = (t += ((uInt)b & inflate_mask[e]))->exop;
+ e = (t += ((uInt)b & cramfs_inflate_mask[e]))->exop;
}
else
{
@@ -130,7 +130,7 @@
if ((e & 64) == 0)
{
t += t->base;
- if ((e = (t += ((uInt)b & inflate_mask[e]))->exop) == 0)
+ if ((e = (t += ((uInt)b & cramfs_inflate_mask[e]))->exop) == 0)
{
DUMPBITS(t->bits)
*q++ = (Byte)t->base;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)