Skip to content

Commit

Permalink
komi
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmilk committed Sep 21, 2024
1 parent 00e1c9e commit 75e1c66
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions module/zcommon/cityhash.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#include "komihash.h"

#include <cityhash.h>
#include "cityhash.h"

#if 0
#define HASH_K1 0xb492b66fbe98f273ULL
Expand Down Expand Up @@ -99,7 +99,7 @@ uint64_t
cityhash1(uint64_t w)
{
komihash_stream_t ctx;
void *p1 = w;
void *p1 = &w;

komihash_stream_init( &ctx, 0);
komihash_stream_update( &ctx, p1, 8);
Expand All @@ -110,8 +110,8 @@ uint64_t
cityhash2(uint64_t w1, uint64_t w2)
{
komihash_stream_t ctx;
void *p1 = w1;
void *p2 = w2;
void *p1 = &w1;
void *p2 = &w2;

komihash_stream_init( &ctx, 0);
komihash_stream_update( &ctx, p1, 8);
Expand All @@ -123,9 +123,9 @@ uint64_t
cityhash3(uint64_t w1, uint64_t w2, uint64_t w3)
{
komihash_stream_t ctx;
void *p1 = w1;
void *p2 = w2;
void *p3 = w3;
void *p1 = &w1;
void *p2 = &w2;
void *p3 = &w3;

komihash_stream_init( &ctx, 0);
komihash_stream_update( &ctx, p1, 8);
Expand All @@ -138,10 +138,10 @@ uint64_t
cityhash4(uint64_t w1, uint64_t w2, uint64_t w3, uint64_t w4)
{
komihash_stream_t ctx;
void *p1 = w1;
void *p2 = w2;
void *p3 = w3;
void *p4 = w4;
void *p1 = &w1;
void *p2 = &w2;
void *p3 = &w3;
void *p4 = &w4;

komihash_stream_init( &ctx, 0);
komihash_stream_update( &ctx, p1, 8);
Expand Down

0 comments on commit 75e1c66

Please sign in to comment.