Dreamora #1 ok 2^x is something special at least for ints ... but I wouldn't even touch it for that and straight use shl / shr (as for color-int splitting and bit-mask stuff in 1-hot encoding)