uint16_t enlargeYourByte(uint8_t input)

2 {

3 uint16_t x = input;

4 x = (x ^ (x << 4)) & 0x0f0f;

5 x = (x ^ (x << 2)) & 0x3333;

6 x = (x ^ (x << 1)) & 0x5555;

7 return x | (x << 1));

8 }



This is how they do it in C. Can we port this to PBP ?