Lines Matching refs:nr
77 static uint32_t crc32_aarch64(uint32_t crc, const char *p, size_t nr) { in crc32_aarch64() argument
78 while (nr >= sizeof(uint64_t)) { in crc32_aarch64()
81 nr -= sizeof(uint64_t); in crc32_aarch64()
83 if (nr >= sizeof(int32_t)) { in crc32_aarch64()
86 nr -= sizeof(uint32_t); in crc32_aarch64()
88 if (nr >= sizeof(int16_t)) { in crc32_aarch64()
91 nr -= sizeof(uint16_t); in crc32_aarch64()
93 if (nr) { in crc32_aarch64()
109 PHPAPI uint32_t php_crc32_bulk_update(uint32_t crc, const char *p, size_t nr) in php_crc32_bulk_update() argument
113 crc = crc32_aarch64(crc, p, nr); in php_crc32_bulk_update()
119 size_t nr_simd = crc32_x86_simd_update(X86_CRC32B, &crc, (const unsigned char *)p, nr); in php_crc32_bulk_update()
120 nr -= nr_simd; in php_crc32_bulk_update()
125 for (; nr--; ++p) { in php_crc32_bulk_update()
132 PHPAPI int php_crc32_stream_bulk_update(uint32_t *crc, php_stream *fp, size_t nr) in php_crc32_stream_bulk_update() argument
137 while (handled < nr) { in php_crc32_stream_bulk_update()
138 n = nr - handled; in php_crc32_stream_bulk_update()
157 size_t nr; in PHP_FUNCTION() local
161 Z_PARAM_STRING(p, nr) in PHP_FUNCTION()
164 crc = php_crc32_bulk_update(crc, p, nr); in PHP_FUNCTION()