chiark
/
gitweb
/
~mdw
/
mLib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add global unihash table; use universal hashing instead of CRC.
[mLib]
/
unihash.h
diff --git
a/unihash.h
b/unihash.h
index dfc5b796163ff95d8a616d0146b9ba0905946fcb..15adb908bd072b095e2424408aa853727feba596 100644
(file)
--- a/
unihash.h
+++ b/
unihash.h
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: unihash.h,v 1.
2 2003/12/14 14:45:30
mdw Exp $
+ * $Id: unihash.h,v 1.
3 2003/12/15 20:53:47
mdw Exp $
*
* Simple and efficient universal hashing for hashtables
*
*
* Simple and efficient universal hashing for hashtables
*
@@
-30,6
+30,9
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: unihash.h,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: unihash.h,v $
+ * Revision 1.3 2003/12/15 20:53:47 mdw
+ * Add global unihash table; use universal hashing instead of CRC.
+ *
* Revision 1.2 2003/12/14 14:45:30 mdw
* Test universal hashing and fix bugs.
*
* Revision 1.2 2003/12/14 14:45:30 mdw
* Test universal hashing and fix bugs.
*
@@
-138,6
+141,10
@@
typedef struct unihash_info {
uint32 s[UNIHASH_NBATCH][4][256]; /* S-tables as described */
} unihash_info;
uint32 s[UNIHASH_NBATCH][4][256]; /* S-tables as described */
} unihash_info;
+/*----- A global hash-info table ------------------------------------------*/
+
+extern unihash_info unihash_global; /* Key this if you like */
+
/*----- Functions provided ------------------------------------------------*/
/* --- @unihash_setkey@ --- *
/*----- Functions provided ------------------------------------------------*/
/* --- @unihash_setkey@ --- *