2 #include "libbenchmark_results_internal.h"
8 /****************************************************************************/
9 int libbenchmark_result_compare_function( void const *new_key, void const *existing_key )
14 struct libbenchmark_result
18 LFDS710_PAL_ASSERT( new_key != NULL );
19 LFDS710_PAL_ASSERT( existing_key != NULL );
21 rs_new = (struct libbenchmark_result *) new_key;
22 rs_existing = (struct libbenchmark_result *) existing_key;
24 if( rs_new->datastructure_id > rs_existing->datastructure_id )
27 if( rs_new->datastructure_id < rs_existing->datastructure_id )
30 if( rs_new->benchmark_id > rs_existing->benchmark_id )
33 if( rs_new->benchmark_id < rs_existing->benchmark_id )
36 if( rs_new->lock_id > rs_existing->lock_id )
39 if( rs_new->lock_id < rs_existing->lock_id )
42 if( rs_new->numa_mode > rs_existing->numa_mode )
45 if( rs_new->numa_mode < rs_existing->numa_mode )
48 rv = libbenchmark_topology_node_compare_lpsets_function( rs_new->lpset, rs_existing->lpset );
53 rv = libbenchmark_topology_node_compare_nodes_function( &rs_new->tns, &rs_existing->tns );
55 // TRD : for better or worse, it's what we are :-)