- for (j = 0; j < ntokens; ++j)
- if (bitset_test (LA[state->lookaheadsp + i], j)
- && BITISSET (lookaheadset, j))
- conflicts[state->number] = 1;
-
- for (j = 0; j < ntokens; ++j)
- if (bitset_test (LA[state->lookaheadsp + i], j))
- SETBIT (lookaheadset, j);
+ if (!bitset_disjoint_p (LA[state->lookaheadsp + i], lookaheadset))
+ conflicts[state->number] = 1;
+
+ bitset_or (lookaheadset, lookaheadset, LA[state->lookaheadsp + i]);