WIP
This commit is contained in:
parent
a55f05c91b
commit
dc30baea0a
1 changed files with 10 additions and 14 deletions
|
@ -692,9 +692,7 @@ void __attribute__((format(printf, 4, 5))) __skip_diag_(const char *file, int li
|
||||||
/* 1) go backwards along path from where we are until head */ \
|
/* 1) go backwards along path from where we are until head */ \
|
||||||
cur = &path[i]; \
|
cur = &path[i]; \
|
||||||
cur_hits = cur->node->field.sle_levels[cur->in].hits; \
|
cur_hits = cur->node->field.sle_levels[cur->in].hits; \
|
||||||
do { \
|
|
||||||
prv_node = (*(p + 1)).node->entries.sle_levels[path_u.in].next; \
|
prv_node = (*(p + 1)).node->entries.sle_levels[path_u.in].next; \
|
||||||
\
|
|
||||||
/* 2) propagate hits */ \
|
/* 2) propagate hits */ \
|
||||||
prv_hits = prv_node->field.sle_levels[cur->in].hits; \
|
prv_hits = prv_node->field.sle_levels[cur->in].hits; \
|
||||||
prv_node->field.sle_levels[cur->in].hits += 1; \
|
prv_node->field.sle_levels[cur->in].hits += 1; \
|
||||||
|
@ -702,8 +700,6 @@ void __attribute__((format(printf, 4, 5))) __skip_diag_(const char *file, int li
|
||||||
/* 3) adjust forward pointers */ \
|
/* 3) adjust forward pointers */ \
|
||||||
if (prv_node->field.sle_levels[cur->in].next == cur->node) \
|
if (prv_node->field.sle_levels[cur->in].next == cur->node) \
|
||||||
prv_node->field.sle_levels[cur->in].next = cur->node->field.sle_levels[cur->in].next; \
|
prv_node->field.sle_levels[cur->in].next = cur->node->field.sle_levels[cur->in].next; \
|
||||||
cur++; \
|
|
||||||
} while (cur->node != slist->slh_head); \
|
|
||||||
/* 4) reduce height by one */ \
|
/* 4) reduce height by one */ \
|
||||||
cur->node->field.sle_height--; \
|
cur->node->field.sle_height--; \
|
||||||
} \
|
} \
|
||||||
|
|
Loading…
Reference in a new issue