~brianaker/libmemcached/gear-clean

« back to all changes in this revision

Viewing changes to tests/libmemcached-1.0/mem_functions.cc

  • Committer: Brian Aker
  • Date: 2012-11-21 12:05:17 UTC
  • mto: (1114.1.1 1-0)
  • mto: This revision was merged to the branch mainline in revision 1104.
  • Revision ID: brian@tangent.org-20121121120517-w8b13lc0or3manrh
Add support for murmur3

Show diffs side-by-side

added added

removed removed

Lines of Context:
3683
3683
#endif
3684
3684
}
3685
3685
 
 
3686
test_return_t murmur3_TEST(hashkit_st *)
 
3687
{
 
3688
  test_skip(true, libhashkit_has_algorithm(HASHKIT_HASH_MURMUR3));
 
3689
 
 
3690
#ifdef WORDS_BIGENDIAN
 
3691
  (void)murmur3_values;
 
3692
  return TEST_SKIPPED;
 
3693
#else
 
3694
  uint32_t x;
 
3695
  const char **ptr;
 
3696
 
 
3697
  for (ptr= list_to_hash, x= 0; *ptr; ptr++, x++)
 
3698
  {
 
3699
    test_compare(murmur3_values[x],
 
3700
                 memcached_generate_hash_value(*ptr, strlen(*ptr), MEMCACHED_HASH_MURMUR3));
 
3701
  }
 
3702
 
 
3703
  return TEST_SUCCESS;
 
3704
#endif
 
3705
}
 
3706
 
3686
3707
test_return_t jenkins_run (memcached_st *)
3687
3708
{
3688
3709
  uint32_t x;