For now this is the same as str_hash(), but this is changed in a following
commit.
Gbp-Pq: Name 0003-lib-Add-str_stable_hash.patch
return xxh64_to_32(xxh64_data(p, strlen(p), 0));
}
+unsigned int str_stable_hash(const char *p)
+{
+ return xxh64_to_32(xxh64_data(p, strlen(p), 0));
+}
+
unsigned int strcase_hash(const char *p)
{
struct xxh64_context ctx;
/* hash function for strings */
unsigned int str_hash(const char *p) ATTR_PURE;
unsigned int strcase_hash(const char *p) ATTR_PURE;
+unsigned int str_stable_hash(const char *p) ATTR_PURE;
/* fast hash function which uppercases a-z. Does not work well
with input that consists from non number/letter input, as