[Pvfs2-cvs] commit by pcarns in pvfs2/src/common/quickhash:
quickhash.h
CVS commit program
cvs at parl.clemson.edu
Sun Jul 19 10:19:07 EDT 2009
Update of /projects/cvsroot/pvfs2/src/common/quickhash
In directory parlweb1:/tmp/cvs-serv16132/src/common/quickhash
Modified Files:
Tag: bmi-experimental-branch
quickhash.h
Log Message:
merge tcp fixes for simultaneous peer connections into bmi experimental
branch
Index: quickhash.h
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/common/quickhash/quickhash.h,v
diff -p -u -r1.18 -r1.18.26.1
--- quickhash.h 19 Nov 2008 21:29:54 -0000 1.18
+++ quickhash.h 19 Jul 2009 14:19:06 -0000 1.18.26.1
@@ -341,6 +341,13 @@ static inline int quickhash_string_hash(
return (int)(h & ((uint64_t)(table_size - 1)));
}
+/* used for cases where we the key is already in good shape for hashing */
+static inline int quickhash_null32_hash(void *k, int table_size)
+{
+ uint32_t *tmp = k;
+ return(int)(*tmp & (table_size - 1));
+}
+
#endif /* QUICKHASH_H */
/*
More information about the Pvfs2-cvs
mailing list