Merge pull request #141 from jjlilley/jjlilley
Add #elif to enable an external mz_crc32() to be linked in.
This commit is contained in:
commit
3a00ea8b73
6
miniz.c
6
miniz.c
@ -82,6 +82,12 @@ mz_ulong mz_adler32(mz_ulong adler, const unsigned char *ptr, size_t buf_len)
|
||||
}
|
||||
return ~crcu32;
|
||||
}
|
||||
#elif defined(USE_EXTERNAL_MZCRC)
|
||||
/* If USE_EXTERNAL_CRC is defined, an external module will export the
|
||||
* mz_crc32() symbol for us to use, e.g. an SSE-accelerated version.
|
||||
* Depending on the impl, it may be necessary to ~ the input/output crc values.
|
||||
*/
|
||||
mz_ulong mz_crc32(mz_ulong crc, const mz_uint8 *ptr, size_t buf_len);
|
||||
#else
|
||||
/* Faster, but larger CPU cache footprint.
|
||||
*/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user