104 static const unsigned char asso_values[] =
106 230, 230, 230, 230, 230, 230, 230, 230, 230, 230,
107 230, 230, 230, 230, 230, 230, 230, 230, 230, 230,
108 230, 230, 230, 230, 230, 230, 230, 230, 230, 230,
109 230, 230, 230, 230, 230, 230, 230, 230, 230, 230,
110 230, 230, 230, 230, 230, 25, 230, 230, 230, 230,
111 230, 230, 230, 230, 230, 230, 230, 230, 230, 230,
112 230, 230, 230, 230, 230, 230, 230, 230, 230, 230,
113 230, 230, 230, 230, 230, 230, 230, 230, 230, 230,
114 230, 230, 230, 230, 230, 230, 230, 230, 230, 230,
115 230, 230, 230, 230, 230, 230, 230, 0, 2, 5,
116 25, 0, 20, 20, 35, 85, 230, 230, 40, 110,
117 25, 65, 80, 0, 60, 5, 10, 0, 55, 5,
118 20, 0, 230, 230, 230, 230, 230, 230, 230, 230,
119 230, 230, 230, 230, 230, 230, 230, 230, 230, 230,
120 230, 230, 230, 230, 230, 230, 230, 230, 230, 230,
121 230, 230, 230, 230, 230, 230, 230, 230, 230, 230,
122 230, 230, 230, 230, 230, 230, 230, 230, 230, 230,
123 230, 230, 230, 230, 230, 230, 230, 230, 230, 230,
124 230, 230, 230, 230, 230, 230, 230, 230, 230, 230,
125 230, 230, 230, 230, 230, 230, 230, 230, 230, 230,
126 230, 230, 230, 230, 230, 230, 230, 230, 230, 230,
127 230, 230, 230, 230, 230, 230, 230, 230, 230, 230,
128 230, 230, 230, 230, 230, 230, 230, 230, 230, 230,
129 230, 230, 230, 230, 230, 230, 230, 230, 230, 230,
130 230, 230, 230, 230, 230, 230, 230, 230, 230, 230,
131 230, 230, 230, 230, 230, 230
133 register int hval = len;
138 hval += asso_values[(
unsigned char)str[2]];
142 hval += asso_values[(
unsigned char)str[0]];
145 return hval + asso_values[(
unsigned char)str[len - 1]];