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 acb540d..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-#ifndef _PRELOOKUP_H_
-#define _PRELOOKUP_H_
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <pthread.h>
-
-#define LOADFACTOR 0.75
-#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;
-
-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;
-} 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);
-/* end hash */
-
-#endif
-