mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-13 18:56:36 +03:00
14 lines
479 B
Cython
14 lines
479 B
Cython
# cython profile=True
|
|
|
|
from libc.stdint cimport uint64_t, int64_t
|
|
|
|
|
|
cdef extern from "../include/MurmurHash3.h":
|
|
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
|
|
|
|
|
|
cdef extern from "../include/MurmurHash2.h":
|
|
uint64_t MurmurHash64A(void * key, uint64_t len, int64_t seed) nogil
|
|
uint64_t MurmurHash64B(void * key, uint64_t len, int64_t seed) nogil
|