2 years ago

#68316

test-img

Liam Monninger

How could I 0-interleave a number (binary)?

If I have 11, I'd like to perform some kind of bitwise operation and get 1010.

If I have 111, 101010.

If I have 101, 100010.

Can I do this? How?

If so, is it possible to do this arbitrarily, i.e., if I wanted to interleave 8 0-bits for 8 value-bits: 11101110 01101010 -> 11101110 00000000 01101010 00000000

binary

bit-manipulation

bit-shift

0 Answers

Your Answer

Accepted video resources