Files
pytorch/caffe2/serialize/crc.cc
2024-10-31 03:01:14 +00:00

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
}