summaryrefslogtreecommitdiff
path: root/CityTest.cpp
blob: 4190cc825b9e97dfd37e041caa7a97fd96c21a3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "City.h"

void CityHash64_test ( const void * key, int len, uint32_t seed, void * out )
{
  *(uint64*)out = CityHash64WithSeed((const char *)key,len,seed);
}

void CityHash128_test ( const void * key, int len, uint32_t seed, void * out )
{
  uint128 s(0,0);

  s.first = seed;

  *(uint128*)out = CityHash128WithSeed((const char*)key,len,s);
}