aboutsummaryrefslogtreecommitdiff
path: root/src/hash/metrohash.h
blob: 8c9ebea09d210362d7550c1a3483cbd946322030 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "../lua.h"
#include <stdint.h>

enum metrohash_version {
    v1, v2
};

uint64_t metrohash64(uint8_t* in, size_t len, uint32_t seed, enum metrohash_version v);
void metrohash128(uint8_t* in, size_t len, uint32_t seed, uint64_t *a, uint64_t *b, enum metrohash_version ver);

int l_metrohash64_v1(lua_State*);
int l_metrohash64_v2(lua_State*);
int l_metrohash128_v1(lua_State*);
int l_metrohash128_v2(lua_State*);