Home | History | Annotate | Download | only in src
      1 #include "Spooky.h"
      2 
      3 void SpookyHash32_test(const void *key, int len, uint32_t seed, void *out) {
      4   *(uint32_t*)out = SpookyHash::Hash32(key, len, seed);
      5 }
      6 
      7 void SpookyHash64_test(const void *key, int len, uint32_t seed, void *out) {
      8   *(uint64_t*)out = SpookyHash::Hash64(key, len, seed);
      9 }
     10 
     11 void SpookyHash128_test(const void *key, int len, uint32_t seed, void *out) {
     12   uint64_t h1 = seed, h2 = seed;
     13   SpookyHash::Hash128(key, len, &h1, &h2);
     14   ((uint64_t*)out)[0] = h1;
     15   ((uint64_t*)out)[1] = h2;
     16 }
     17