Update Murmur3 hasher IO
Release / release (push) Successful in 3s

This commit is contained in:
2026-08-30 23:50:22 +01:00
parent 55ff77c4ea
commit 850f709a10
4 changed files with 10 additions and 11 deletions
+3 -3
View File
@@ -23,19 +23,19 @@ WpTestFuncResult test_murmur3(void) {
wpX64Mur3Hasher128(&str_bytes, (void *)&io);
MurmurHash3_x64_128(str_bytes.data, str_bytes.count * str_bytes.item_size, io.seed, (void *)hash);
result = result && io.out_hash1 == hash[0] && io.out_hash2 == hash[1];
result = result && io.hash[0] == hash[0] && io.hash[1] == hash[1];
// Array hash
wpX64Mur3Hasher128(&arr_bytes, (void *)&io);
MurmurHash3_x64_128(arr_bytes.data, arr_bytes.count * arr_bytes.item_size, io.seed, (void *)hash);
result = result && io.out_hash1 == hash[0] && io.out_hash2 == hash[1];
result = result && io.hash[0] == hash[0] && io.hash[1] == hash[1];
// Number hash
wpX64Mur3Hasher128(&num_bytes, (void *)&io);
MurmurHash3_x64_128(num_bytes.data, num_bytes.count * num_bytes.item_size, io.seed, (void *)hash);
result = result && io.out_hash1 == hash[0] && io.out_hash2 == hash[1];
result = result && io.hash[0] == hash[0] && io.hash[1] == hash[1];
return wpTesterResult(result);
}
+3 -3
View File
@@ -23,19 +23,19 @@ WpTestFuncResult test_murmur3(void) {
wpX64Mur3Hasher128(&str_bytes, (void *)&io);
MurmurHash3_x64_128(str_bytes.data, str_bytes.count * str_bytes.item_size, io.seed, (void *)hash);
result = result && io.out_hash1 == hash[0] && io.out_hash2 == hash[1];
result = result && io.hash[0] == hash[0] && io.hash[1] == hash[1];
// Array hash
wpX64Mur3Hasher128(&arr_bytes, (void *)&io);
MurmurHash3_x64_128(arr_bytes.data, arr_bytes.count * arr_bytes.item_size, io.seed, (void *)hash);
result = result && io.out_hash1 == hash[0] && io.out_hash2 == hash[1];
result = result && io.hash[0] == hash[0] && io.hash[1] == hash[1];
// Number hash
wpX64Mur3Hasher128(&num_bytes, (void *)&io);
MurmurHash3_x64_128(num_bytes.data, num_bytes.count * num_bytes.item_size, io.seed, (void *)hash);
result = result && io.out_hash1 == hash[0] && io.out_hash2 == hash[1];
result = result && io.hash[0] == hash[0] && io.hash[1] == hash[1];
return wpTesterResult(result);
}