Skip to content

Commit b83bfb2

Browse files
authored
make new API public (#7185)
1 parent ac82c00 commit b83bfb2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ext/standard/crc32.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ static uint32_t crc32_aarch64(uint32_t crc, char *p, size_t nr) {
8989
# endif
9090
#endif
9191

92-
uint32_t crc32_bulk_update(uint32_t crc, const char *p, size_t nr)
92+
PHPAPI uint32_t crc32_bulk_update(uint32_t crc, const char *p, size_t nr)
9393
{
9494
#if HAVE_AARCH64_CRC32
9595
if (has_crc32_insn()) {
@@ -112,7 +112,7 @@ uint32_t crc32_bulk_update(uint32_t crc, const char *p, size_t nr)
112112
return crc;
113113
}
114114

115-
int crc32_stream_bulk_update(uint32_t *crc, php_stream *fp, size_t nr)
115+
PHPAPI int crc32_stream_bulk_update(uint32_t *crc, php_stream *fp, size_t nr)
116116
{
117117
size_t handled = 0, n;
118118
char buf[1024];

ext/standard/crc32.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323

2424
#define CRC32(crc, ch) (crc = (crc >> 8) ^ crc32tab[(crc ^ (ch)) & 0xff])
2525

26-
uint32_t crc32_bulk_update(uint32_t crc, const char *p, size_t nr);
26+
PHPAPI uint32_t crc32_bulk_update(uint32_t crc, const char *p, size_t nr);
2727

2828
/* Return FAILURE if stream reading fail */
29-
int crc32_stream_bulk_update(uint32_t *crc, php_stream *fp, size_t nr);
29+
PHPAPI int crc32_stream_bulk_update(uint32_t *crc, php_stream *fp, size_t nr);
3030

3131
/* generated using the AUTODIN II polynomial
3232
* x^32 + x^26 + x^23 + x^22 + x^16 +

0 commit comments

Comments
 (0)