Changeset 1858 for trunk/src/kmk/strcache.c
- Timestamp:
- Oct 13, 2008, 6:35:21 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/strcache.c
r1857 r1858 164 164 str_hash_1 (const void *key) 165 165 { 166 #if 0 166 167 #ifdef CONFIG_WITH_VALUE_LENGTH 167 168 if (MY_PREDICT_TRUE ((const char *) key == lookup_string)) 168 169 return lookup_prefix->hash1; 170 #endif 169 171 #endif 170 172 return_ISTRING_HASH_1 ((const char *) key); … … 237 239 add_hash (const char *str, int len, unsigned long hash1, unsigned long hash2) 238 240 { 239 char *const*slot;241 void const **slot; 240 242 const char *key; 241 243 struct strcache_pref prefix; … … 251 253 lookup_prefix = &prefix; 252 254 253 slot = (char *const *) hash_find_slot (&strings, str);254 key = * slot;255 slot = hash_find_slot_prehashed (&strings, str, prefix.hash1, prefix.hash2); 256 key = *(const char **)slot; 255 257 256 258 /* Count the total number of adds we performed. */
Note:
See TracChangeset
for help on using the changeset viewer.