Update of /cvsroot/linux-vax/kernel-2.4/arch/ppc/boot/lib
In directory usw-pr-cvs1:/tmp/cvs-serv25860/ppc/boot/lib
Added Files:
Makefile zlib.c
Log Message:
synch 2.4.15 commit 43
--- NEW FILE ---
#
# Makefile for some libs needed by zImage.
#
L_TARGET := zlib.a
obj-y := zlib.o
include $(TOPDIR)/Rules.make
--- NEW FILE ---
/*
* BK Id: SCCS/s.zlib.c 1.8 05/18/01 15:17:24 cort
*/
/*
* This file is derived from various .h and .c files from the zlib-0.95
* distribution by Jean-loup Gailly and Mark Adler, with some additions
* by Paul Mackerras to aid in implementing Deflate compression and
* decompression for PPP packets. See zlib.h for conditions of
* distribution and use.
*
* Changes that have been made include:
* - changed functions not used outside this file to "local"
* - added minCompression parameter to deflateInit2
* - added Z_PACKET_FLUSH (see zlib.h for details)
* - added inflateIncomp
*
*/
/*+++++*/
[...2111 lines suppressed...]
unsigned long s2 = (adler >> 16) & 0xffff;
int k;
if (buf == Z_NULL) return 1L;
while (len > 0) {
k = len < NMAX ? len : NMAX;
len -= k;
while (k >= 16) {
DO16(buf);
k -= 16;
}
if (k != 0) do {
DO1(buf);
} while (--k);
s1 %= BASE;
s2 %= BASE;
}
return (s2 << 16) | s1;
}
|