]> mj.ucw.cz Git - libucw.git/blobdiff - lib/index.h
Introduced obuck_get_pos(), converted gatherd limits to use it.
[libucw.git] / 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 {                              \