mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:34:18 +08:00
Fixes #ISSUE_NUMBER Pull Request resolved: https://github.com/pytorch/pytorch/pull/139256 Approved by: https://github.com/ezyang
14 lines
256 B
C++
14 lines
256 B
C++
#include "miniz.h"
|
|
|
|
#include "caffe2/serialize/crc_alt.h"
|
|
|
|
extern "C" {
|
|
// See: miniz.h
|
|
#if defined(USE_EXTERNAL_MZCRC)
|
|
mz_ulong mz_crc32(mz_ulong crc, const mz_uint8* ptr, size_t buf_len) {
|
|
auto z = crc32_fast(ptr, buf_len, crc);
|
|
return z;
|
|
}
|
|
#endif
|
|
}
|