2014-07-07 09:36:43 +04:00
|
|
|
# cython profile=True
|
|
|
|
|
2014-07-05 22:50:44 +04:00
|
|
|
from libc.stdint cimport uint64_t, int64_t
|
|
|
|
|
|
|
|
|
|
|
|
cdef extern from "../include/MurmurHash3.h":
|
2014-07-07 09:36:43 +04:00
|
|
|
void MurmurHash3_x86_32(void * key, uint64_t len, uint64_t seed, void* out) nogil
|
|
|
|
void MurmurHash3_x86_128(void * key, uint64_t len, uint64_t seed, void* out) nogil
|
2014-07-05 22:50:44 +04:00
|
|
|
|
|
|
|
|
|
|
|
cdef extern from "../include/MurmurHash2.h":
|
2014-07-07 09:36:43 +04:00
|
|
|
uint64_t MurmurHash64A(void * key, uint64_t len, int64_t seed) nogil
|
|
|
|
uint64_t MurmurHash64B(void * key, uint64_t len, int64_t seed) nogil
|