code: @Deprecated
    public static int flipBitmapRangeAndCardinalityChange(LongBuffer bitmap, int start, int end) {
      if (BufferUtil.isBackedBySimpleArray(bitmap)) {
        return Util.flipBitmapRangeAndCardinalityChange(bitmap.array(), start, end);
      }
      int cardbefore = cardinalityInBitmapWordRange(bitmap, start, end);
      flipBitmapRange(bitmap, start, end);
      int cardafter = cardinalityInBitmapWordRange(bitmap, start, end);
      return cardafter - cardbefore;
    }
docs: flip bits at start, start+1,..., end-1 and report the cardinality change
  
  @param bitmap array of words to be modified
  @param start first index to be modified (inclusive)
  @param end last index to be modified (exclusive)
  @return cardinality change