- case HASHKIT_HASH_DEFAULT:
- return hashkit_one_at_a_time(key, key_length);
- case HASHKIT_HASH_MD5:
- return hashkit_md5(key, key_length);
- case HASHKIT_HASH_CRC:
- return hashkit_crc32(key, key_length);
- case HASHKIT_HASH_FNV1_64:
- return hashkit_fnv1_64(key, key_length);
- case HASHKIT_HASH_FNV1A_64:
- return hashkit_fnv1a_64(key, key_length);
- case HASHKIT_HASH_FNV1_32:
- return hashkit_fnv1_32(key, key_length);
- case HASHKIT_HASH_FNV1A_32:
- return hashkit_fnv1a_32(key, key_length);
- case HASHKIT_HASH_HSIEH:
-#ifdef HAVE_HSIEH_HASH
- return hashkit_hsieh(key, key_length);
-#else
- return 1;
-#endif
- case HASHKIT_HASH_MURMUR:
- return hashkit_murmur(key, key_length);
- case HASHKIT_HASH_JENKINS:
- return hashkit_jenkins(key, key_length);
- case HASHKIT_HASH_MAX:
- default:
-#ifdef HAVE_DEBUG
- fprintf(stderr, "hashkit_hash_t was extended but libhashkit_generate_value was not updated\n");
- fflush(stderr);
- assert(0);
-#endif
- break;