This commit was manufactured by cvs2svn to create tag 'buildscript'.
[IRC.git] / Robust / src / Runtime / DSTM / interface / prelookup.h
diff --git a/Robust/src/Runtime/DSTM/interface/prelookup.h b/Robust/src/Runtime/DSTM/interface/prelookup.h
deleted file mode 100644 (file)
index 8b4c30b..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-#ifndef _PRELOOKUP_H_
-#define _PRELOOKUP_H_
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <pthread.h>
-#include "dstm.h"
-
-#define LOADFACTOR 0.5
-#define HASH_SIZE 100
-
-typedef struct prehashlistnode {
-       unsigned int key;
-       void *val; //this can be cast to another type or used to point to a larger structure
-       struct prehashlistnode *next;
-} prehashlistnode_t;
-
-struct objstr;
-
-typedef struct prehashtable {
-  prehashlistnode_t *table;    // points to beginning of hash table
-  unsigned int size;
-  unsigned int numelements;
-  float loadfactor;
-  pthread_mutex_t lock;
-  pthread_mutexattr_t prefetchmutexattr;
-  pthread_cond_t cond;
-  struct objstr *hack2;
-  struct objstr *hack;
-} prehashtable_t;
-
-/* Prototypes for hash*/
-unsigned int prehashCreate(unsigned int size, float loadfactor);
-unsigned int prehashFunction(unsigned int key);
-unsigned int prehashInsert(unsigned int key, void *val);
-void *prehashSearch(unsigned int key); //returns val, NULL if not found
-unsigned int prehashRemove(unsigned int key); //returns -1 if not found
-unsigned int prehashResize(unsigned int newsize);
-void prehashClear();
-/* end hash */
-
-#endif
-