Searched refs:crc (Results 1 - 7 of 7) sorted by relevance

/glassfish-3.1.2/persistence/cmp/enhancer/src/main/java/com/sun/jdo/api/persistence/enhancer/util/
H A DCRC32.java53 static int computeCRC(int crc, byte buf[], int len) { argument
57 crc = crc ^ 0xffffffff;
59 crc = CRCTable[(crc ^ ((int) buf[bufIndex++])) & 0xff] ^ (crc >>> 8);
60 crc = CRCTable[(crc ^ ((int) buf[bufIndex++])) & 0xff] ^ (crc >>> 8);
61 crc
[all...]
/glassfish-3.1.2/installer/src/cpp/share/launcher/zlib-1.1.4/
H A Dcrc32.c46 /* terms of polynomial defining this crc (except x^32): */
135 #define DO1(buf) crc = crc_table[((int)crc ^ (*buf++)) & 0xff] ^ (crc >> 8);
141 uLong ZEXPORT crc32(crc, buf, len)
142 uLong crc;
151 crc = crc ^ 0xffffffffL;
160 return crc ^ 0xffffffffL;
H A Dzcrc32.c56 /* terms of polynomial defining this crc (except x^32): */
145 #define DO1(buf) crc = crc_table[((int)crc ^ (*buf++)) & 0xff] ^ (crc >> 8);
151 uLong ZEXPORT crc32(crc, buf, len)
152 uLong crc;
161 crc = crc ^ 0xffffffffUL;
170 return crc ^ 0xffffffffUL;
H A Dgzio.c46 uLong crc; /* crc32 of uncompressed data */ member in struct:gz_stream
99 s->crc = crc32(0L, Z_NULL, 0);
305 if ((flags & HEAD_CRC) != 0) { /* skip the header crc */
360 Bytef *start = (Bytef*)buf; /* starting point for crc computation */
413 s->crc = crc32(s->crc, start, (uInt)(s->stream.next_out - start));
416 if (getLong(s) != s->crc) {
432 s->crc = crc32(0L, Z_NULL, 0);
438 s->crc = crc32(s->crc, star
[all...]
H A Dzlib.h838 ZEXTERN uLong ZEXPORT crc32 OF((uLong crc, const Bytef *buf, uInt len));
840 Update a running crc with the bytes buf[0..len-1] and return the updated
841 crc. If buf is NULL, this function returns the required initial value
842 for the crc. Pre- and post-conditioning (one's complement) is performed
846 uLong crc = crc32(0L, Z_NULL, 0);
849 crc = crc32(crc, buffer, length);
851 if (crc != original_crc) error();
/glassfish-3.1.2/installer/src/cpp/share/launcher/
H A Dzip_util.h82 #define LOCCRC(b) LG(b, 14) /* crc of uncompressed data */
91 #define EXTCRC(b) LG(b, 4) /* crc of uncompressed data */
103 #define CENCRC(b) LG(b, 16) /* crc of uncompressed data */
135 * - jzentry time and crc fields are signed even though they really
149 jint crc; /* crc of uncompressed data */ member in struct:jzentry
169 jint crc; member in struct:jzcell
H A Dzip_util.c421 zc->crc = CENCRC(cp);
715 ze->crc = zc->crc;

Completed in 38 milliseconds