Skip to content

Commit ca75c70

Browse files
committed
core_hash(): Clarify parameter requirement
1 parent fda854e commit ca75c70

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hash_func.h

+2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@
4141

4242
#define ch_h_inc h+=v^(v>>3)
4343
#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 */
4446
static inline unsigned int core_hash(const str *s1, const str *s2, const unsigned int size)
4547
{
4648
char *p, *end;

0 commit comments

Comments
 (0)