Skip to content

Commit b1f04ae

Browse files
committed
Optimize pointer hash
1 parent 8d8d34f commit b1f04ae

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/native/containers/dn-simdhash-test.c

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
#include "dn-vector.h"
1111
#include "dn-simdhash.h"
12+
#include "dn-simdhash-utils.h"
1213

1314
typedef struct {
1415
int i;
@@ -72,6 +73,8 @@ int main () {
7273
dn_simdhash_instance_data(instance_data_t, test).f = 3.14f;
7374
dn_simdhash_instance_data(instance_data_t, test).i = 42;
7475

76+
printf("hash(test)=%u\n", MurmurHash3_32_ptr(test, 0));
77+
7578
dn_vector_t *keys = dn_vector_alloc(sizeof(DN_SIMDHASH_KEY_T)),
7679
*values = dn_vector_alloc(sizeof(DN_SIMDHASH_VALUE_T));
7780
// Ensure consistency between runs

0 commit comments

Comments
 (0)