37#if defined(LIBC_SCCS) && !defined(lint)
38static char sccsid[] =
"@(#)hash_func.c 8.2 (Berkeley) 2/21/94";
43#include "../include/db.h"
78 register const u_char *key;
82 for (key = keyarg, h = 0;
len--;)
83 h = h * PRIME1 ^ (*key++ -
' ');
94#define dcharhash(h, c) ((h) = 0x63c63cd9*(h) + 0x9c39c33d + (c))
101 register const u_char *e, *key;
107 for (h = 0; key != e;) {
132 register const u_char *key;
133 register size_t loop;
136#define HASHC h = *key++ + 65599 * h
141 loop = (
len + 8 - 1) >> 3;
143 switch (
len & (8 - 1)) {
182 register const u_char *key;
183 register size_t loop;
186#define HASH4a h = (h << 5) - h + *key++;
187#define HASH4b h = (h << 5) + h + *key++;
193 loop = (
len + 8 - 1) >> 3;
195 switch (
len & (8 - 1)) {
static int len(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t buflen)
static u_int32_t hashfunc(void *keyarg, size_t len) const
static u_int32_t hashfunc __P((const void *, size_t))