Skip to content

Instantly share code, notes, and snippets.

@hns
Created November 24, 2011 05:18
Show Gist options
  • Save hns/1390679 to your computer and use it in GitHub Desktop.
Save hns/1390679 to your computer and use it in GitHub Desktop.
private boolean updateEntrySet(BitSet entrySet, BitSet exitSet,
BitSet useBeforeDef, BitSet notDef) {
int card = entrySet.cardinality();
entrySet.or(exitSet);
entrySet.and(notDef);
entrySet.or(useBeforeDef);
return entrySet.cardinality() != card;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment