Home
last modified time | relevance | path

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

/php-src/ext/standard/
H A Dcrc32.c78 crc = __crc32d(crc, *(uint64_t *)p); in crc32_aarch64()
83 crc = __crc32w(crc, *(uint32_t *)p); in crc32_aarch64()
88 crc = __crc32h(crc, *(uint16_t *)p); in crc32_aarch64()
93 crc = __crc32b(crc, *p); in crc32_aarch64()
95 return crc; in crc32_aarch64()
112 crc = crc32_aarch64(crc, p, nr); in php_crc32_bulk_update()
113 return crc; in php_crc32_bulk_update()
125 crc = ((crc >> 8) & 0x00FFFFFF) ^ crc32tab[(crc ^ (*p)) & 0xFF ]; in php_crc32_bulk_update()
128 return crc; in php_crc32_bulk_update()
142 *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 zend_result 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-src/ext/zip/tests/
H A Dbug49072.phpt12 $r = $o->getStream('file1'); // this file has a wrong crc
/php-src/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-src/ext/phar/
H A Dzip.c908 uint32_t crc = (uint32_t) php_crc32_bulk_init(); in phar_zip_changed_apply_int() local
909 CRC32(crc, perms.perms[0]); in phar_zip_changed_apply_int()
910 CRC32(crc, perms.perms[1]); in phar_zip_changed_apply_int()
911 PHAR_SET_32(perms.crc32, php_crc32_bulk_end(crc)); in phar_zip_changed_apply_int()
H A Dphar.c2444 uint32_t crc = php_crc32_bulk_init(); in phar_postprocess_file() local
2445 …zend_result ret = php_crc32_stream_bulk_update(&crc, fp, idata->internal_file->uncompressed_filesi… in phar_postprocess_file()
2449 if (SUCCESS == ret && php_crc32_bulk_end(crc) == crc32) { in phar_postprocess_file()
/php-src/
H A Dconfigure.ac702 # pragma GCC target ("+nothing+crc")
704 # pragma clang attribute push(__attribute__((target("crc"))), apply_to=function)
706 # pragma clang attribute push(__attribute__((target("+nothing+crc"))), apply_to=function)
/php-src/ext/zip/
H A Dphp_zip.c484 add_ascii_assoc_long(return_value, "crc", (zend_long) (sb)->crc); \
497 add_ascii_assoc_long(return_value, "crc", (zend_long) (sb)->crc); \
/php-src/ext/pcre/pcre2lib/
H A Dpcre2_compile.c9189 int crc = memcmp(name, slot+IMM2_SIZE, CU2BYTES(length)); in add_name_to_table() local
9190 if (crc == 0 && slot[IMM2_SIZE+length] != 0) in add_name_to_table()
9191 crc = -1; /* Current name is a substring */ in add_name_to_table()
9198 if (crc < 0) in add_name_to_table()
/php-src/ext/fileinfo/tests/
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...
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...

Completed in 186 milliseconds