コード例 #1
0
ファイル: jhash-test.c プロジェクト: achellies/sighttpd
int main (int argc, char * argv[])
{
  driver1(jenkins_hash);   /* test that the key is hashed: used for timings */
  driver2(jenkins_hash);   /* test that whole key is hashed thoroughly */
  driver3(jenkins_hash);   /* test that nothing but the key is hashed */
  driver4(jenkins_hash);   /* test hashing multiple buffers (all buffers are null) */

  driver1((hash_func)jenkins_hash2);   /* test that the key is hashed: used for timings */
  driver2((hash_func)jenkins_hash2);   /* test that whole key is hashed thoroughly */
  driver4((hash_func)jenkins_hash2);   /* test hashing multiple buffers (all buffers are null) */

  exit (0);
}
コード例 #2
0
ファイル: hash64_t.cpp プロジェクト: hroskes/cmssw
int main() {
  driver1(); /* test that the key is hashed: used for timings */
  driver2(); /* test that whole key is hashed thoroughly */
  driver3(); /* test that nothing but the key is hashed */
  driver4(); /* test hashing multiple buffers (all buffers are null) */
  return 0;
}