Split sync disk loop to support batched hashing

This commit is contained in:
Andrea Mazzoleni 2026-07-12 22:16:32 +02:00
parent ef4bed47e4
commit 1dd3439fe8
3 changed files with 91 additions and 42 deletions

View file

@ -232,6 +232,12 @@ const char* memhashname(unsigned kind);
*/
void memhash(unsigned kind, const unsigned char* seed, void* digest, const void* src, size_t size);
/**
* Compute the HASH of multiple memory blocks at the same time.
* Seed is a 128 bit vector.
*/
void memhash_multi(unsigned kind, const unsigned char* seed, void** digest, const void** src, const size_t* size, unsigned count);
/**
* Return the hash name.
*/