Home
last modified time | relevance | path

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

/kernel/liteos_a/lib/libscrew/src/
Dlos_rbtree.c41 STATIC VOID OsRbLeftRotateNode(LosRbTree *pstTree, LosRbNode *pstX);
49 STATIC VOID OsRbLeftRotateNode(LosRbTree *pstTree, LosRbNode *pstX) in OsRbLeftRotateNode() argument
55 if (pstTree == NULL || pstX == NULL) { in OsRbLeftRotateNode()
69 pstY = pstX->pstRight; in OsRbLeftRotateNode()
70 pstX->pstRight = pstY->pstLeft; in OsRbLeftRotateNode()
71 pstY->pstLeft->pstParent = pstX; in OsRbLeftRotateNode()
72 pstY->pstParent = pstX->pstParent; in OsRbLeftRotateNode()
73 if (pstNilT == pstX->pstParent) { in OsRbLeftRotateNode()
76 if (pstX == pstX->pstParent->pstLeft) { in OsRbLeftRotateNode()
77 pstX->pstParent->pstLeft = pstY; in OsRbLeftRotateNode()
[all …]
/kernel/liteos_a/lib/libscrew/include/
Dlos_rbtree.h120 #define RB_IS_NOT_NILT(pstX) ((NULL != (pstX)->pstLeft) && (NULL != (pstX)->pstRight)) argument