Home
last modified time | relevance | path

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

/PHP-8.3/ext/standard/
H A Dcrc32.c79 crc = __crc32d(crc, *(uint64_t *)p); in crc32_aarch64()
84 crc = __crc32w(crc, *(uint32_t *)p); in crc32_aarch64()
89 crc = __crc32h(crc, *(uint16_t *)p); in crc32_aarch64()
94 crc = __crc32b(crc, *p); in crc32_aarch64()
96 return crc; in crc32_aarch64()
113 crc = crc32_aarch64(crc, p, nr); in php_crc32_bulk_update()
114 return crc; in php_crc32_bulk_update()
126 crc = ((crc >> 8) & 0x00FFFFFF) ^ crc32tab[(crc ^ (*p)) & 0xFF ]; in php_crc32_bulk_update()
129 return crc; in php_crc32_bulk_update()
143 *crc = php_crc32_bulk_update(*crc, buf, n); in php_crc32_stream_bulk_update()
[all …]
H A Dcrc32.h24 #define CRC32(crc, ch) (crc = (crc >> 8) ^ crc32tab[(crc ^ (ch)) & 0xff]) argument
29 PHPAPI uint32_t php_crc32_bulk_update(uint32_t crc, const char *p, size_t nr);
32 PHPAPI int php_crc32_stream_bulk_update(uint32_t *crc, php_stream *fp, size_t nr);
H A Dcrc32_x86.c71 size_t crc32_pclmul_batch(uint32_t *crc, const unsigned char *p, size_t nr, const crc32_pclmul_cons… in crc32_pclmul_batch() argument
81 x0 = _mm_cvtsi32_si128(*crc); in crc32_pclmul_batch()
182 *crc = _mm_extract_epi32(x0, 0); in crc32_pclmul_batch()
198 x0 = _mm_xor_si128(x0, _mm_cvtsi32_si128(*crc)); in crc32_pclmul_reflected_batch()
286 *crc = _mm_extract_epi32(x0, 2); in crc32_pclmul_reflected_batch()
291 size_t crc32_x86_simd_update(X86_CRC32_TYPE type, uint32_t *crc, const unsigned char *p, size_t nr) in crc32_x86_simd_update() argument
293 size_t crc32_sse42_pclmul_update(X86_CRC32_TYPE type, uint32_t *crc, const unsigned char *p, size_t… in crc32_x86_simd_update()
303 return crc32_pclmul_batch(crc, p, nr, consts); in crc32_x86_simd_update()
306 return crc32_pclmul_reflected_batch(crc, p, nr, consts); in crc32_x86_simd_update()
335 size_t crc32_x86_simd_update(X86_CRC32_TYPE type, uint32_t *crc, const unsigned char *p, size_t nr)… in crc32_x86_simd_update() argument
[all …]
H A Dcrc32_x86.h44 size_t crc32_x86_simd_update(X86_CRC32_TYPE type, uint32_t *crc, const unsigned char *p, size_t nr);
46 static inline size_t crc32_x86_simd_update(X86_CRC32_TYPE type, uint32_t *crc, const unsigned char … in crc32_x86_simd_update() argument
/PHP-8.3/ext/zip/tests/
H A Dbug49072.phpt12 $r = $o->getStream('file1'); // this file has a wrong crc
/PHP-8.3/ext/zlib/tests/
H A Dbug71417.phpt19 // gzip: test-zlib-inflate.gz: invalid compressed data--crc error
34 // gzip: test-zlib-inflate.gz: invalid compressed data--crc error
/PHP-8.3/ext/phar/
H A Dzip.c877 uint32_t crc = (uint32_t) php_crc32_bulk_init(); in phar_zip_changed_apply_int() local
878 CRC32(crc, perms.perms[0]); in phar_zip_changed_apply_int()
879 CRC32(crc, perms.perms[1]); in phar_zip_changed_apply_int()
880 PHAR_SET_32(perms.crc32, php_crc32_bulk_end(crc)); in phar_zip_changed_apply_int()
H A Dphar.c2385 uint32_t crc = php_crc32_bulk_init(); in phar_postprocess_file() local
2451 ret = php_crc32_stream_bulk_update(&crc, fp, len); in phar_postprocess_file()
2455 if (SUCCESS == ret && php_crc32_bulk_end(crc) == crc32) { in phar_postprocess_file()
/PHP-8.3/
H A Dconfigure.ac762 # pragma GCC target ("+nothing+crc")
764 # pragma clang attribute push(__attribute__((target("crc"))), apply_to=function)
766 # pragma clang attribute push(__attribute__((target("+nothing+crc"))), apply_to=function)
/PHP-8.3/ext/zip/
H A Dphp_zip.c485 add_ascii_assoc_long(return_value, "crc", (zend_long) (sb)->crc); \
498 add_ascii_assoc_long(return_value, "crc", (zend_long) (sb)->crc); \
/PHP-8.3/ext/pcre/pcre2lib/
H A Dpcre2_compile.c8892 int crc = memcmp(name, slot+IMM2_SIZE, CU2BYTES(length)); in add_name_to_table() local
8893 if (crc == 0 && slot[IMM2_SIZE+length] != 0) in add_name_to_table()
8894 crc = -1; /* Current name is a substring */ in add_name_to_table()
8901 if (crc < 0) in add_name_to_table()
/PHP-8.3/ext/fileinfo/tests/
H A Dmagic18902 # 137 P N G \r \n ^Z \n [4-byte length] I H D R [HEAD data] [HEAD crc] ...
24328 >448 ubequad x \b, crc %#llx...
H A Dmagic私はガラスを食べられます18902 # 137 P N G \r \n ^Z \n [4-byte length] I H D R [HEAD data] [HEAD crc] ...
24328 >448 ubequad x \b, crc %#llx...

Completed in 233 milliseconds