Beispiel #1
0
int main (void)
{
  int i;
  for (i = 0; i < MAX; ++i)
    {
      pa[i] = i * 2;
      pb[i] = i * 2 + 1;
    }

  test_load ();
  test_store ();
  test_exch ();
  test_cas ();

  return 0;
}
Beispiel #2
0
END_TEST

START_TEST(test_cas_expire)
{
    test_cas(CUCKOO_POLICY_EXPIRE);
}
Beispiel #3
0
END_TEST

START_TEST(test_cas_random)
{
    test_cas(CUCKOO_POLICY_RANDOM);
}