equal
deleted
inserted
replaced
66 /* |
66 /* |
67 * BitSets are packed into arrays of "words." Currently a word is |
67 * BitSets are packed into arrays of "words." Currently a word is |
68 * a long, which consists of 64 bits, requiring 6 address bits. |
68 * a long, which consists of 64 bits, requiring 6 address bits. |
69 * The choice of word size is determined purely by performance concerns. |
69 * The choice of word size is determined purely by performance concerns. |
70 */ |
70 */ |
71 private final static int ADDRESS_BITS_PER_WORD = 6; |
71 private static final int ADDRESS_BITS_PER_WORD = 6; |
72 private final static int BITS_PER_WORD = 1 << ADDRESS_BITS_PER_WORD; |
72 private static final int BITS_PER_WORD = 1 << ADDRESS_BITS_PER_WORD; |
73 private final static int BIT_INDEX_MASK = BITS_PER_WORD - 1; |
73 private static final int BIT_INDEX_MASK = BITS_PER_WORD - 1; |
74 |
74 |
75 /* Used to shift left or right for a partial word mask */ |
75 /* Used to shift left or right for a partial word mask */ |
76 private static final long WORD_MASK = 0xffffffffffffffffL; |
76 private static final long WORD_MASK = 0xffffffffffffffffL; |
77 |
77 |
78 /** |
78 /** |