ActiveSearch/SearchAll command and beginnings of ReplaceAll command, coroutine interface change
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user