X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fhash_results.h;h=c05053a74810424db9f596e3d95c8bdb04b7e4e8;hb=25efe3485198149616820ab4e52d2f18f0abe5a7;hp=da00e872ef6b149f0255a0acbd7f6d0f3e62c6ba;hpb=a246ac50a88e4af750fd2dd209eff94dcadf72d2;p=m6w6%2Flibmemcached diff --git a/tests/hash_results.h b/tests/hash_results.h index da00e872..c05053a7 100644 --- a/tests/hash_results.h +++ b/tests/hash_results.h @@ -42,6 +42,14 @@ static const char *list_to_hash[]= NULL }; +static uint32_t one_at_a_time_values[]= { 2297466611U, 3902465932U, 469785835U, 1937308741U, + 261917617U, 3785641677U, 1439605128U, 1649152283U, + 1493851484U, 1246520657U, 2221159044U, 1973511823U, + 384136800U, 214358653U, 2379473940U, 4269788650U, + 2864377005U, 2638630052U, 427683330U, 990491717U, + 1747111141U, 792127364U, 2599214128U, 2553037199U, + 2509838425U }; + static uint32_t md5_values[]= { 3195025439U, 2556848621U, 3724893440U, 3332385401U, 245758794U, 2550894432U, 121710495U, 3053817768U, 1250994555U, 1862072655U, 2631955953U, 2951528551U, @@ -97,6 +105,7 @@ static uint32_t hsieh_values[]= { 3738850110U, 3636226060U, 3821074029U, 3489929 static uint32_t hsieh_values[]= { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 }; #endif +#ifdef HAVE_MURMUR_HASH static uint32_t murmur_values[]= { 4142305122U, 734504955U, 3802834688U, 4076891445U, 387802650U, 560515427U, 3274673488U, 3150339524U, 1527441970U, 2728642900U, 3613992239U, 2938419259U, @@ -104,6 +113,9 @@ static uint32_t murmur_values[]= { 4142305122U, 734504955U, 3802834688U, 407689 264013145U, 3995512858U, 2400956718U, 2346666219U, 926327338U, 442757446U, 1770805201U, 560483147U, 3902279934U }; +#else +static uint32_t murmur_values[]= { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 }; +#endif static uint32_t jenkins_values[]= { 1442444624U, 4253821186U, 1885058256U, 2120131735U, 3261968576U, 3515188778U, 4232909173U, 4288625128U,