]> pd.if.org Git - liblfds/blob - liblfds/liblfds7.0.0/test/src/test_lfds700_hash_addonly.c
Initial import (all versions, including the new 7.1.0)
[liblfds] / liblfds / liblfds7.0.0 / test / src / test_lfds700_hash_addonly.c
1 /***** includes *****/
2 #include "internal.h"
3
4
5
6
7
8 /****************************************************************************/
9 #pragma warning( disable : 4127 ) // TRD : disables MSVC warning for condition expressions being const
10
11 void test_lfds700_hash_a( struct lfds700_list_asu_state *list_of_logical_processors, lfds700_pal_uint_t memory_in_megabytes )
12 {
13   assert( list_of_logical_processors != NULL );
14   // TRD : memory_in_megabytes can be any value in its range
15
16   if( LFDS700_MISC_ATOMIC_SUPPORT_CAS )
17   {
18     printf( "\n"
19             "Hash (add-only) Tests\n"
20             "=====================\n" );
21
22     test_lfds700_hash_a_alignment();
23     test_lfds700_hash_a_fail_and_overwrite_on_existing_key();
24     test_lfds700_hash_a_random_adds_fail_on_existing( list_of_logical_processors, memory_in_megabytes );
25     test_lfds700_hash_a_random_adds_overwrite_on_existing( list_of_logical_processors, memory_in_megabytes );
26     test_lfds700_hash_a_iterate();
27   }
28
29   return;
30 }
31
32 #pragma warning( default : 4127 )
33