]> mj.ucw.cz Git - libucw.git/commitdiff
Moved fp_hash() to index.h.
authorMartin Mares <mj@ucw.cz>
Sat, 3 Mar 2001 22:50:29 +0000 (22:50 +0000)
committerMartin Mares <mj@ucw.cz>
Sat, 3 Mar 2001 22:50:29 +0000 (22:50 +0000)
lib/index.h

index 97ce26a80f562b68d98f22a30657bb6314b600c7..d484ee8ee8e177b3d008ff47cad5f56ae5f7f1e4 100644 (file)
@@ -86,6 +86,12 @@ struct fingerprint {
 
 void fingerprint(byte *string, struct fingerprint *fp);
 
+static inline u32
+fp_hash(struct fingerprint *fp)
+{
+  return (fp->hash[0] << 24) | (fp->hash[1] << 16) | (fp->hash[2] << 8) | fp->hash[3];
+}
+
 /* Reading of tagged text (Unicode values, tags mapped to 0x80000000 and higher) */
 
 #define GET_TAGGED_CHAR(p,u) do {                              \