Merge branch 'add_rvv_optmized_memcopy64' of https://github.com/anthony-zy/snappy into add_rvv_optmized_memcopy64

This commit is contained in:
anthony-zy
2025-10-17 10:29:45 +08:00

View File

@@ -1281,11 +1281,12 @@ void MemCopy64(char* dst, const void* src, size_t size) {
#else
std::memmove(dst, src, kShortMemCopy);
//Profiling shows that nearly all copies are short.
// Profiling shows that nearly all copies are short.
if (SNAPPY_PREDICT_FALSE(size > kShortMemCopy)) {
std::memmove(dst + kShortMemCopy,
static_cast<const uint8_t*>(src) + kShortMemCopy,
64 - kShortMemCopy);
}
#endif
}