We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fda854e commit ca75c70Copy full SHA for ca75c70
hash_func.h
@@ -41,6 +41,8 @@
41
42
#define ch_h_inc h+=v^(v>>3)
43
#define ch_icase(_c) (((_c)>='A'&&(_c)<='Z')?((_c)|0x20):(_c))
44
+
45
+/* NOTE: @size must be 2^N, otherwise there will be gaps in the output range */
46
static inline unsigned int core_hash(const str *s1, const str *s2, const unsigned int size)
47
{
48
char *p, *end;
0 commit comments