summaryrefslogtreecommitdiff
path: root/MurmurHash3.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'MurmurHash3.cpp')
-rw-r--r--MurmurHash3.cpp63
1 files changed, 0 insertions, 63 deletions
diff --git a/MurmurHash3.cpp b/MurmurHash3.cpp
index fa2dafc..7a6e435 100644
--- a/MurmurHash3.cpp
+++ b/MurmurHash3.cpp
@@ -366,66 +366,3 @@ void MurmurHash3_x64_128 ( const void * key, const int len,
}
//-----------------------------------------------------------------------------
-// Quick copy-pasted test code for GCC build
-
-// This should print -
-
-// "The quick brown fox jumps over the lazy dog" => { 0x38585ecf, 0x5f6d752a, 0x0157c98a, 0x8c686b9b, }
-// "The quick brown fox jumps over the lazy cog" => { 0x6d3fd6f0, 0xc86a98a0, 0x4d6fac1c, 0x8f3e52b4, }
-
-#ifndef _MSC_VER
-
-/*
-#include <assert.h>
-#include <stdio.h>
-#include <string.h>
-
-typedef void (*pfHash) ( const void * blob, const int len, const uint32_t seed, void * out );
-
-void printhex32 ( void * blob, int len )
-{
- assert((len & 3) == 0);
-
- uint32_t * d = (uint32_t*)blob;
-
- printf("{ ");
-
- for(int i = 0; i < len/4; i++)
- {
- printf("0x%08x, ",d[i]);
- }
-
- printf("}");
-}
-
-void QuickBrownFox ( pfHash hash, const int hashbits )
-{
- const int hashbytes = hashbits / 8;
-
- const char * text1 = "The quick brown fox jumps over the lazy dog";
- const char * text2 = "The quick brown fox jumps over the lazy cog";
-
- uint8_t h1[128];
- uint8_t h2[128];
-
- hash(text1,(int)strlen(text1),0,h1);
- hash(text2,(int)strlen(text2),0,h2);
-
- printf("\"%s\" => ",text1);
- printhex32(h1,hashbytes);
- printf("\n");
-
- printf("\"%s\" => ",text2);
- printhex32(h2,hashbytes);
- printf("\n");
-
- printf("\n");
-}
-
-int main ( int argc, char** argv )
-{
- QuickBrownFox(&MurmurHash3_x64_128,128);
-}
-*/
-
-#endif