Skip to content

Commit 3ad6181

Browse files
committed
updated AVL_TREE #def
1 parent 77da17a commit 3ad6181

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

Doxyfile.user.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@ INCLUDE_FILE_PATTERNS =
10121012
# undefined via #undef or recursively expanded use the := operator
10131013
# instead of the = operator.
10141014

1015-
PREDEFINED = USE_AVL_TREE RAND_NORMAL ROSS_timing ROSS_QUEUE_splay ROSS_RAND_clcg4 ROSS_NETWORK_mpi ROSS_CLOCK_amd64 ROSS_GVT_mpi_allreduce ARCH_x86_64
1015+
PREDEFINED = AVL_TREE RAND_NORMAL ROSS_timing ROSS_QUEUE_splay ROSS_RAND_clcg4 ROSS_NETWORK_mpi ROSS_CLOCK_amd64 ROSS_GVT_mpi_allreduce ARCH_x86_64
10161016

10171017
# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then
10181018
# this tag can be used to specify a list of macro names that should be expanded.

core/gvt/mpi_allreduce.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ gvt_print(tw_stime gvt)
3434

3535
printf(").\n");
3636

37-
#ifdef USE_AVL_TREE
37+
#ifdef AVL_TREE
3838
printf("AVL tree size: %d\n", g_tw_pe[0]->avl_tree_size);
3939
#endif
4040

core/hash-quadratic.c

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#include <ross.h>
2-
#ifdef USE_AVL_TREE
2+
#ifdef AVL_TREE
33
#include "avl_tree.h"
4-
#endif /* USE_AVL_TREE */
4+
#endif /* AVL_TREE */
55

66
static void rehash(tw_hash * hash_t, int pe);
77
static int find_empty(tw_event ** hash_t, tw_event * event, int hash_size);
@@ -27,7 +27,7 @@ hash_(tw_eventid event_id, int hash_size)
2727
void *
2828
tw_hash_create()
2929
{
30-
#ifdef USE_AVL_TREE
30+
#ifdef AVL_TREE
3131
int i;
3232
AvlTree avl_list;
3333

@@ -74,7 +74,7 @@ tw_hash_create()
7474
void
7575
tw_hash_insert(void *h, tw_event * event, long pe)
7676
{
77-
#ifdef USE_AVL_TREE
77+
#ifdef AVL_TREE
7878
tw_clock start;
7979

8080
g_tw_pe[0]->avl_tree_size++;
@@ -196,7 +196,7 @@ allocate_table(int hash_size)
196196
tw_event *
197197
tw_hash_remove(void *h, tw_event * event, long pe)
198198
{
199-
#if USE_AVL_TREE
199+
#if AVL_TREE
200200
tw_event *ret;
201201
tw_clock start;
202202

core/ross-types.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ struct tw_kp {
351351
tw_kp *up;
352352
#endif
353353

354-
#ifdef USE_AVL_TREE
354+
#ifdef AVL_TREE
355355
/* AVL tree root */
356356
AvlTree avl_tree;
357357
#endif
@@ -389,7 +389,7 @@ struct tw_pe {
389389
tw_event *cur_event; /**< @brief Current event being processed */
390390
tw_eventq sevent_q; /**< @brief events already sent over the network */
391391

392-
#ifdef USE_AVL_TREE
392+
#ifdef AVL_TREE
393393
/* AVL node head pointer and size */
394394
AvlTree avl_list_head;
395395
unsigned avl_tree_size;

0 commit comments

Comments
 (0)