@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user