Lines Matching defs:syms
46 static struct sym **syms = NULL;
129 syms = erealloc(syms, sizeof(*syms) * nsyms);
130 syms[nsyms - 1] = sym;
134 qsort(syms, nsyms, sizeof(*syms), compare_value);
137 return syms;
150 * try to find the smallest i for which syms[i]->value <= value.
151 * syms[] is ordered by syms[]->value in the descending order.
158 const struct sym *sym = syms[mid];
160 assert(syms[lo]->value >= sym->value);
161 assert(sym->value >= syms[hi]->value);
168 assert(lo == nsyms - 1 || syms[lo]->value <= value);
169 assert(lo == 0 || syms[lo - 1]->value > value);
171 const struct sym *sym = syms[i];