Skip to content

Commit

Permalink
Added binding for MurmurHash2
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanMabille committed Feb 16, 2021
1 parent 9833f81 commit f7556c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion murmurhash/mrmr.pyx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from libc.stdint cimport uint64_t, int64_t, int32_t
from libc.stdint cimport uint64_t, int64_t, uint32_t, int32_t


cdef extern from "murmurhash/MurmurHash3.h":
Expand All @@ -9,6 +9,7 @@ cdef extern from "murmurhash/MurmurHash3.h":
cdef extern from "murmurhash/MurmurHash2.h":
uint64_t MurmurHash64A(void * key, int length, uint32_t seed) nogil
uint64_t MurmurHash64B(void * key, int length, uint32_t seed) nogil
uint32_t MurmurHash2(void * key, int length, uint32_t seed) nogil


cdef uint32_t hash32(void* key, int length, uint32_t seed) nogil:
Expand Down

0 comments on commit f7556c7

Please sign in to comment.