Java Utililty Methods Bitmap Flip

List of utility methods to do Bitmap Flip

Description

The list of methods to do Bitmap Flip are organized into topic(s).

Method

voidflipBitmapRange(long[] bitmap, int start, int end)
flip bits at start, start+1,..., end-1
if (start == end) {
    return;
int firstword = start / 64;
int endword = (end - 1) / 64;
bitmap[firstword] ^= ~(~0L << start);
for (int i = firstword; i < endword; i++) {
    bitmap[i] = ~bitmap[i];
...