Anubha-Banerjee / smhasher

Automatically exported from code.google.com/p/smhasher
0 stars 0 forks source link

Minor changes to allow compiling MurmurHash3.cpp as C code. #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Compiling MurmurHash3.cpp as C code instead of C++ outputs some errors that are 
trivially fixed.

The attached diff makes two changes.

Added the suffixes 32 and 64 to getblock and fmix since C does not do function 
overloading. Updated function calls sites to use the correct one.

Changed "uint64_t(tail[14])" style casts to "((uint64_t)tail[14])" in the 
function MurmurHash3_x64_128.

Original issue reported on code.google.com by bensw...@gmail.com on 9 Jul 2012 at 2:53

Attachments:

GoogleCodeExporter commented 9 years ago
Patch applied.

Original comment by aappl...@google.com on 10 May 2013 at 7:31