Lines Matching refs:tp
59 void *av_tree_insert(AVTreeNode **tp, void *key,
62 AVTreeNode *t = *tp;
77 *tp = NULL;
92 * rotate(tp, i);
95 * static void rotate(AVTreeNode **tp, int i)
97 * AVTreeNode *t= *tp;
99 * *tp = t->child[i];
101 * (*tp)->child[i ^ 1] = t;
102 * i = 4 * t->state + 2 * (*tp)->state + 12;
104 * (*tp)->state = ((0x400EEA >> i) & 3) - 1 +
105 * ((*tp)->state >> 1);
110 *tp = (*child)->child[i ^ 1];
111 (*child)->child[i ^ 1] = (*tp)->child[i];
112 (*tp)->child[i] = *child;
113 *child = (*tp)->child[i ^ 1];
114 (*tp)->child[i ^ 1] = t;
116 (*tp)->child[0]->state = -((*tp)->state > 0);
117 (*tp)->child[1]->state = (*tp)->state < 0;
118 (*tp)->state = 0;
120 *tp = *child;
122 (*tp)->child[i ^ 1] = t;
123 if ((*tp)->state)
127 (*tp)->state = -t->state;
131 if (!(*tp)->state ^ !!*next)
136 *tp = *next;
138 if (*tp) {
139 (*tp)->elem = key;