Home
last modified time | relevance | path

Searched refs:crc (Results 1 – 19 of 19) sorted by relevance

/PHP-7.2/ext/standard/
H A Dcrc32.c32 register uint32_t crc; in PHP_NAMED_FUNCTION() local
38 crc = crcinit^0xFFFFFFFF; in PHP_NAMED_FUNCTION()
41 crc = ((crc >> 8) & 0x00FFFFFF) ^ crc32tab[(crc ^ (*p)) & 0xFF ]; in PHP_NAMED_FUNCTION()
43 RETVAL_LONG(crc^0xFFFFFFFF); in PHP_NAMED_FUNCTION()
H A Dcrc32.h28 #define CRC32(crc, ch) (crc = (crc >> 8) ^ crc32tab[(crc ^ (ch)) & 0xff]) argument
/PHP-7.2/ext/zip/lib/
H A Dzip_source_crc.c48 zip_uint32_t crc; member
73 ctx->crc = (zip_uint32_t)crc32(0, NULL, 0); in zip_source_crc()
112 if ((st.valid & ZIP_STAT_CRC) && st.crc != ctx->crc) { in crc_read()
129 ctx->crc = (zip_uint32_t)crc32(ctx->crc, (const Bytef *)data+i, (uInt)nn); in crc_read()
149 st->crc = ctx->crc; in crc_read()
H A Dzip_stat_init.c45 st->crc = 0; in zip_stat_init()
71 dst->crc = src->crc; in _zip_stat_merge()
H A Dzip_string.c44 zip_uint32_t crc; in _zip_string_crc32() local
46 crc = (zip_uint32_t)crc32(0L, Z_NULL, 0); in _zip_string_crc32()
49 crc = (zip_uint32_t)crc32(crc, s->raw, s->length); in _zip_string_crc32()
51 return crc; in _zip_string_crc32()
H A Dzip_stat_index.c62 st->crc = de->crc; in zip_stat_index()
H A Dzip_source_pkware.c154 if (header[HEADERLEN-1] != st.crc>>24 && header[HEADERLEN-1] != dostime>>8) { in decrypt_header()
H A Dzip_close.c371 de->crc = st.crc; in add_data()
H A Dzip_dirent.c250 de->crc = 0; in _zip_dirent_init()
345 zde->crc = _zip_buffer_get_32(buffer); in _zip_dirent_read()
717 _zip_buffer_put_32(buffer, de->crc); in _zip_dirent_write()
H A Dzip_open.c505 if ((central->crc != local->crc) || (central->comp_size != local->comp_size) in _zip_headercomp()
510 || local->crc != 0 || local->comp_size != 0 || local->uncomp_size != 0)) in _zip_headercomp()
H A Dzip.h286 zip_uint32_t crc; /* crc of file data */ member
H A Dzipint.h349 zip_uint32_t crc; /* (cl) CRC-32 of uncompressed data */ member
/PHP-7.2/ext/zip/tests/
H A Dbug49072.phpt15 $r = $o->getStream('file1'); // this file has a wrong crc
/PHP-7.2/ext/phar/
H A Dzip.c824 uint32_t crc = (uint32_t) ~0; in phar_zip_changed_apply_int() local
825 CRC32(crc, perms.perms[0]); in phar_zip_changed_apply_int()
826 CRC32(crc, perms.perms[1]); in phar_zip_changed_apply_int()
827 PHAR_SET_32(perms.crc32, ~crc); in phar_zip_changed_apply_int()
H A Dphar.c2339 uint32_t crc = ~0; local
2406 CRC32(crc, php_stream_getc(fp));
2411 if (~crc == crc32) {
/PHP-7.2/ext/zip/
H A Dphp_zip.c393 add_ascii_assoc_long(return_value, "crc", (zend_long) (sb)->crc); \
406 add_ascii_assoc_long(return_value, "crc", (zend_long) (sb)->crc); \
/PHP-7.2/ext/pcre/pcrelib/
H A Dpcre_compile.c8970 int crc = memcmp(name, slot+IMM2_SIZE, IN_UCHARS(length)); in add_name() local
8971 if (crc == 0 && slot[IMM2_SIZE+length] != 0) in add_name()
8972 crc = -1; /* Current name is a substring */ in add_name()
8979 if (crc < 0) in add_name()
/PHP-7.2/ext/fileinfo/tests/
H A Dmagic13667 # 137 P N G \r \n ^Z \n [4-byte length] H E A D [HEAD data] [HEAD crc] ...
H A Dmagic私はガラスを食べられます13667 # 137 P N G \r \n ^Z \n [4-byte length] H E A D [HEAD data] [HEAD crc] ...

Completed in 168 milliseconds