[xtensa-cvscommit] linux/arch/xtensa/boot/lib Makefile,NONE,1.1 zlib.c,NONE,1.1
Brought to you by:
zankel
|
From: <za...@us...> - 2003-05-03 00:22:23
|
Update of /cvsroot/xtensa/linux/arch/xtensa/boot/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv23831
Added Files:
Makefile zlib.c
Log Message:
Added two files that were missing in my last submission.
--- NEW FILE: Makefile ---
#
# Makefile for some libs needed by zImage.
#
L_TARGET := zlib.a
obj-y := zlib.o
zlib.a: zlib.o
include $(TOPDIR)/Rules.make
--- NEW FILE: zlib.c ---
/*
* 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;
}
|