withFlag

fun Int.withFlag(flag: Int): Int

Returns this mask with every bit of flag set.

Bits that are already set stay set; the operation is idempotent.