Lines Matching refs:p
66 static uint32_t crc32_aarch64(uint32_t crc, const char *p, size_t nr) { in crc32_aarch64() argument
68 crc = __crc32d(crc, *(uint64_t *)p); in crc32_aarch64()
69 p += sizeof(uint64_t); in crc32_aarch64()
73 crc = __crc32w(crc, *(uint32_t *)p); in crc32_aarch64()
74 p += sizeof(uint32_t); in crc32_aarch64()
78 crc = __crc32h(crc, *(uint16_t *)p); in crc32_aarch64()
79 p += sizeof(uint16_t); in crc32_aarch64()
83 crc = __crc32b(crc, *p); in crc32_aarch64()
92 PHPAPI uint32_t php_crc32_bulk_update(uint32_t crc, const char *p, size_t nr) in php_crc32_bulk_update() argument
96 crc = crc32_aarch64(crc, p, nr); in php_crc32_bulk_update()
102 size_t nr_simd = crc32_x86_simd_update(X86_CRC32B, &crc, (const unsigned char *)p, nr); in php_crc32_bulk_update()
104 p += nr_simd; in php_crc32_bulk_update()
108 for (; nr--; ++p) { in php_crc32_bulk_update()
109 crc = ((crc >> 8) & 0x00FFFFFF) ^ crc32tab[(crc ^ (*p)) & 0xFF ]; in php_crc32_bulk_update()
139 char *p; in PHP_FUNCTION() local
144 Z_PARAM_STRING(p, nr) in PHP_FUNCTION()
147 crc = php_crc32_bulk_update(crc, p, nr); in PHP_FUNCTION()