Searched refs:crc (Results 1 – 18 of 18) sorted by relevance
/PHP-5.6/ext/standard/ |
H A D | crc32.c | 32 register php_uint32 crc; in PHP_NAMED_FUNCTION() local 37 crc = crcinit^0xFFFFFFFF; in PHP_NAMED_FUNCTION() 40 crc = ((crc >> 8) & 0x00FFFFFF) ^ crc32tab[(crc ^ (*p)) & 0xFF ]; in PHP_NAMED_FUNCTION() 42 RETVAL_LONG(crc^0xFFFFFFFF); in PHP_NAMED_FUNCTION()
|
H A D | crc32.h | 28 #define CRC32(crc, ch) (crc = (crc >> 8) ^ crc32tab[(crc ^ (ch)) & 0xff]) argument
|
/PHP-5.6/ext/zip/lib/ |
H A D | zip_source_crc.c | 46 zip_uint32_t crc; member 73 ctx->crc = 0; in zip_source_crc() 92 ctx->crc = (zip_uint32_t)crc32(0, NULL, 0); in crc_read() 112 if ((st.valid & ZIP_STAT_CRC) && st.crc != ctx->crc) { in crc_read() 128 …ctx->crc = (zip_uint32_t)crc32(ctx->crc, (const Bytef *)data, (uInt)n); /* TODO: check for overflo… in crc_read() 145 st->crc = ctx->crc; in crc_read()
|
H A D | zip_string.c | 46 zip_uint32_t crc; in _zip_string_crc32() local 48 crc = (zip_uint32_t)crc32(0L, Z_NULL, 0); in _zip_string_crc32() 51 crc = (zip_uint32_t)crc32(crc, s->raw, s->length); in _zip_string_crc32() 53 return crc; in _zip_string_crc32()
|
H A D | zip_stat_index.c | 64 st->crc = de->crc; in zip_stat_index()
|
H A D | zip_stat_init.c | 46 st->crc = 0; in zip_stat_init()
|
H A D | zip_close.c | 427 de->crc = st.crc; in add_data() 528 uLong crc; in write_cdir() local 544 if (_zip_filerange_crc(out, cd_start, size, &crc, &za->error) < 0) in write_cdir() 547 snprintf(buf, sizeof(buf), "%08lX", (long)crc); in write_cdir()
|
H A D | zip_source_pkware.c | 161 if (header[HEADERLEN-1] != st.crc>>24 in decrypt_header()
|
H A D | zip_open.c | 419 if ((central->crc != local->crc) || (central->comp_size != local->comp_size) in _zip_headercomp() 424 || local->crc != 0 || local->comp_size != 0 || local->uncomp_size != 0)) in _zip_headercomp()
|
H A D | zip.h | 239 zip_uint32_t crc; /* crc of file data */ member
|
H A D | zip_dirent.c | 268 de->crc = 0; in _zip_dirent_init() 383 zde->crc = _zip_read4(&cur); in _zip_dirent_read() 716 _zip_write4(de->crc, fp); in _zip_dirent_write()
|
H A D | zipint.h | 325 zip_uint32_t crc; /* (cl) CRC-32 of uncompressed data */ member
|
/PHP-5.6/ext/zip/tests/ |
H A D | bug49072.phpt | 15 $r = $o->getStream('file1'); // this file has a wrong crc
|
/PHP-5.6/ext/phar/ |
H A D | zip.c | 805 php_uint32 crc = (php_uint32) ~0; in phar_zip_changed_apply() local 806 CRC32(crc, perms.perms[0]); in phar_zip_changed_apply() 807 CRC32(crc, perms.perms[1]); in phar_zip_changed_apply() 808 PHAR_SET_32(perms.crc32, ~crc); in phar_zip_changed_apply()
|
H A D | phar.c | 2400 php_uint32 crc = ~0; local 2467 CRC32(crc, php_stream_getc(fp)); 2472 if (~crc == crc32) {
|
/PHP-5.6/ext/pcre/pcrelib/ |
H A D | pcre_compile.c | 8912 int crc = memcmp(name, slot+IMM2_SIZE, IN_UCHARS(length)); in add_name() local 8913 if (crc == 0 && slot[IMM2_SIZE+length] != 0) in add_name() 8914 crc = -1; /* Current name is a substring */ in add_name() 8921 if (crc < 0) in add_name()
|
/PHP-5.6/ext/zip/ |
H A D | php_zip.c | 442 add_ascii_assoc_long(return_value, "crc", (long) (sb)->crc); \
|
/PHP-5.6/ext/fileinfo/tests/ |
H A D | magic | 10568 # 137 P N G \r \n ^Z \n [4-byte length] H E A D [HEAD data] [HEAD crc] ...
|
Completed in 86 milliseconds