summaryrefslogtreecommitdiff
path: root/src/libstddjb/cdb_hashadd.c
blob: 426fb9590b45c2d0abde0f2c4d9d1d240a15f587 (plain)
1
2
3
4
5
6
7
8
9
/* ISC license. */

#include "cdb-internal.h"

uint32_t cdb_hashadd (uint32_t h, uint8_t c)
{
  h += (h << 5) ;
  return h ^ c ;
}