ActiveSearch/SearchAll command and beginnings of ReplaceAll command, coroutine interface change

This commit is contained in:
Krzosa Karol
2026-01-02 09:08:34 +01:00
parent ee1ba86f74
commit bedc2b15e2
12 changed files with 240 additions and 124 deletions

View File

@@ -162,10 +162,10 @@ inline size_t WrapAroundPowerOf2(size_t x, size_t pow2) {
return result;
}
inline uint64_t HashBytes(void *data, unsigned size) {
inline uint64_t HashBytes(void *data, int64_t size) {
uint8_t *data8 = (uint8_t *)data;
uint64_t hash = (uint64_t)14695981039346656037ULL;
for (unsigned i = 0; i < size; i++) {
for (int64_t i = 0; i < size; i++) {
hash = hash ^ (uint64_t)(data8[i]);
hash = hash * (uint64_t)1099511628211ULL;
}