Searched refs:__parent_and_color (Results 1 - 3 of 3) sorted by relevance

/systemd/src/basic/
H A Dc-rbtree.h50 * @__parent_and_color: internal state
59 * The @__parent_and_color field must never be accessed directly. It encodes
69 CRBNode *__parent_and_color; member in struct:CRBNode
74 #define C_RBNODE_INIT(_var) { .__parent_and_color = &(_var) }
138 return n && n->__parent_and_color != n;
154 return (CRBNode*)((unsigned long)n->__parent_and_color & ~1UL);
H A Dc-rbtree.c53 return (unsigned long)n->__parent_and_color & 1UL;
195 n->__parent_and_color = (CRBNode*)((unsigned long)p | c);
246 p = n->__parent_and_color;
261 } else if (p == p->__parent_and_color->left) { /* parent is red, so grandparent exists */
262 g = p->__parent_and_color;
312 } else /* if (p == p->__parent_and_color->left) */ { /* same as above, but mirrored */
313 g = p->__parent_and_color;
/systemd/src/test/
H A Dtest-rbtree.c64 return !((unsigned long)n->__parent_and_color & 1UL);
69 return !!((unsigned long)n->__parent_and_color & 1UL);

Completed in 618 milliseconds