X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib/blobdiff_plain/18756bee6a2b8aa06f001bce6843bce5b2dfb0b0..6f444bda1b7deb31cf7fb2395cb0993c3e3b8c42:/unihash.h?ds=inline diff --git a/unihash.h b/unihash.h index dfc5b79..15adb90 100644 --- a/unihash.h +++ b/unihash.h @@ -1,6 +1,6 @@ /* -*-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 * @@ -30,6 +30,9 @@ /*----- 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. * @@ -138,6 +141,10 @@ typedef struct 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@ --- *