Is there a simple way to split one 64-bit (unsigned long long
) variable into eight int8_t
values?
For example:
//1001000100011001100100010001100110010001000110011001000110011111
unsigned long long bigNumber = 10455547548911899039;
int8_t parts[8] = splitULongLong(bigNumber);
parts
would be something along the lines of:
[0] 10011111
[1] 10010001
[2] 00011001
...
[7] 10010001