hash of OIDs should not bit shift
authorjjenista <jjenista>
Thu, 14 Oct 2010 17:47:51 +0000 (17:47 +0000)
committerjjenista <jjenista>
Thu, 14 Oct 2010 17:47:51 +0000 (17:47 +0000)
Robust/src/Runtime/mlp_runtime.c
Robust/src/Runtime/mlp_runtime.h

index 0fd4f39b4f79f941cd4ccb8f9af437cdc031ab78..ed2a11f75ff98b7e9962696eb37d2527aa4961b8 100644 (file)
@@ -144,7 +144,7 @@ int isWriteBinItem(BinItem* b){
 }
 
 int generateKey(unsigned int data){
-  return (data&H_MASK)>> 4;
+  return (data&H_MASK);
 }
 
 Hashtable* createHashtable(){
index 743fe18944d593b7cee9217b402b7cf35ff18aad..e6482ba033c5bb798c7cf95e0976fc39f624c3cd 100644 (file)
@@ -16,7 +16,7 @@
 #define TRUE 1
 #endif
 
-#define NUMBINS 64
+#define NUMBINS 128
 #define NUMREAD 64
 #define NUMITEMS 64
 #define NUMRENTRY 256
@@ -39,7 +39,7 @@
 #define READBIN 0
 #define WRITEBIN 1
 
-#define H_MASK (NUMBINS<<4)-1
+#define H_MASK (NUMBINS)-1
 
 #ifndef FALSE
 #define FALSE 0