Lines Matching refs:idx
37 #define REHASH(idx,rehash) ((idx + rehash) & (TABLESIZE-1))
69 register int idx = 0, i;
84 firstidx = idx = HASH(sig);
85 while ((e = atoms->table[idx])) {
94 nomatch: if (idx == firstidx)
96 idx = REHASH(idx, rehash);
97 if (idx == firstidx)
102 *pidx = idx;
103 if (atoms && !atoms->table[idx])
104 atoms->table[idx] = RESERVED; /* reserve slot */
121 int idx,
130 if (idx < 0) {
141 if (idx < 0) {
142 firstidx = idx = HASH(sig);
143 if (dpy->atoms->table[idx]) {
146 idx = REHASH(idx, rehash);
147 while (idx != firstidx && dpy->atoms->table[idx]);
156 if ((oe = dpy->atoms->table[idx]) && (oe != RESERVED))
158 dpy->atoms->table[idx] = e;
170 int idx, n;
176 if ((atom = _XInternAtom(dpy, name, onlyIfExists, &sig, &idx, &n))) {
180 if (dpy->atoms && dpy->atoms->table[idx] == RESERVED)
181 dpy->atoms->table[idx] = NULL; /* unreserve slot */
184 _XUpdateAtomCache(dpy, name, atom, sig, idx, n);
209 register int i, idx = 0;
221 idx = ~state->atoms[i];
238 (unsigned long)0, idx, 0);
250 int i, idx, n, tidx;
269 &sig, &idx, &n))) {
271 atoms_return[i] = ~((Atom)idx);
289 sig, idx, n);