From 85432e6307de88efc84fc386701a041842f2f451 Mon Sep 17 00:00:00 2001 From: Marty Kraimer Date: Thu, 13 Mar 1997 16:38:09 +0000 Subject: [PATCH] Change hash algorithm to be slightly faster --- src/dbStatic/dbPvdLib.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/dbStatic/dbPvdLib.c b/src/dbStatic/dbPvdLib.c index 8aec8aaf4..0530d56e3 100644 --- a/src/dbStatic/dbPvdLib.c +++ b/src/dbStatic/dbPvdLib.c @@ -70,14 +70,15 @@ static unsigned short hash( char *pname, int length) unsigned char h0=0; unsigned char h1=0; unsigned short ind0,ind1; - int even = TRUE; - unsigned char c; - int i; + int isOdd; + int i,n; - for(i=0; i