Home
last modified time | relevance | path

Searched refs:MAX_SKIPLIST_LEVEL (Results 1 – 2 of 2) sorted by relevance

/ohos5.0/foundation/communication/dsoftbus/components/nstackx/fillp/src/public/include/
H A Dskiplist.h26 #define MAX_SKIPLIST_LEVEL 16 macro
32 struct SkipListNode *forward[MAX_SKIPLIST_LEVEL]; /* level next */
33 struct SkipListNode *pre[MAX_SKIPLIST_LEVEL];
44 struct SkipListNode *hnode[MAX_SKIPLIST_LEVEL]; /* point to the first node of each level */
45 struct SkipListNode *tnode[MAX_SKIPLIST_LEVEL]; /* point to the last node of each level */
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/fillp/src/public/src/
H A Dskiplist.c38 …ile ((list->randomLev[(list->randomIndex++) & (MAX_RANDOM_LEV - 1)]) && (k < MAX_SKIPLIST_LEVEL)) { in SkiplistRandomLevel()
193 struct SkipListNode *prevRecord[MAX_SKIPLIST_LEVEL]; in SkiplistInsertAtMid()
306 while (i < MAX_SKIPLIST_LEVEL) { in SkipListInsert()