I am sorry if my question is confusing but here is the example of what I want to do,
lets say I have an unsigned long int = 1265985549 in binary I can write this as 01001011011101010110100000001101
now I want to split this binary 32 bit number into 4 bits like this and work separately on those 4 bits
0100 1011 0111 0101 0110 1000 0000 1101
any help would be appreciated.
std::bitset
, and then shift and mask out the nibbles. – tillaert