static inline void cow_set_bits(uint8_t *bitmap, int start, int64_t nb_sectors)

{

    int64_t bitnum = start, last = start + nb_sectors;

    while (bitnum < last) {

        if ((bitnum & 7) == 0 && bitnum + 8 <= last) {

            bitmap[bitnum / 8] = 0xFF;

            bitnum += 8;

            continue;

        }

        bitmap[bitnum/8] |= (1 << (bitnum % 8));

        bitnum++;

    }

}

static inline void cow_set_bits(uint8_t *bitmap, int start, int64_t nb_sectors)

{

    int64_t bitnum = start, last = start + nb_sectors;

    while (bitnum < last) {

        if ((bitnum & 7) == 0 && bitnum + 8 <= last) {

            bitmap[bitnum / 8] = 0xFF;

            bitnum += 8;

            continue;

        }

        bitmap[bitnum/8] |= (1 << (bitnum % 8));

        bitnum++;

    }

}

static inline void FUNC_0(uint8_t *VAR_0, int VAR_1, int64_t VAR_2)

{

    int64_t bitnum = VAR_1, last = VAR_1 + VAR_2;

    while (bitnum < last) {

        if ((bitnum & 7) == 0 && bitnum + 8 <= last) {

            VAR_0[bitnum / 8] = 0xFF;

            bitnum += 8;

            continue;

        }

        VAR_0[bitnum/8] |= (1 << (bitnum % 8));

        bitnum++;

    }

}

static inline void FUNC_0(uint8_t *VAR_0, int VAR_1, int64_t VAR_2)
{ int64_t bitnum = VAR_1, last = VAR_1 + VAR_2; while (bitnum < last) { if ((bitnum & 7) == 0 && bitnum + 8 <= last) { VAR_0[bitnum / 8] = 0xFF; bitnum += 8; continue; } VAR_0[bitnum/8] |= (1 << (bitnum % 8)); bitnum++; } }