Lines Matching refs:rr
94 #define for_rr(start, i) for (i = start; i < num; i++) if (rr[i].res >= 0)
97 static void disable(struct result *rr, int i, int src) in disable() argument
100 rr[i].res = -1; in disable()
104 static void one_bit_all(struct result *rr, int num, int mask) in one_bit_all() argument
113 if (rr[k].res != rr[first].res) in one_bit_all()
116 rr[first].dontcare = mask_of(ARRAY_SIZE(bits)) & ~mask; in one_bit_all()
119 disable(rr, k, k); in one_bit_all()
124 static void neighbour_same(struct result *rr, int num, int mask) in neighbour_same() argument
128 if (!(k & mask) || (rr[k].dontcare & mask)) in neighbour_same()
133 if (rr[other].res == rr[k].res && rr[other].msg == rr[k].msg) { in neighbour_same()
134 disable(rr, other, k); in neighbour_same()
135 rr[k].dontcare |= mask; in neighbour_same()
140 void optimizer(struct result *rr, int num) in optimizer() argument
145 one_bit_all(rr, num, i); in optimizer()
147 neighbour_same(rr, num, i); in optimizer()
166 struct result *rr = calloc(sizeof(struct result), 1U << ARRAY_SIZE(bits)); in table() local
171 rr[num].res = mce_severity(&m, tolerant, &rr[num].msg); in table()
176 optimizer(rr, num); in table()
195 if (mask & rr[i].dontcare) { in table()
207 struct rname *rname = &rnames[rr[i].res]; in table()
208 if ((unsigned)rr[i].res >= ARRAY_SIZE(rnames)) in table()
212 assert(rr[i].msg != NULL); in table()
213 printf("<td>%s</td>", rr[i].msg); in table()