I have binary numbers (32 / 64 bit length) which I want to shift to the left so that the leading significant bit disappears. All the binary numbers are of different length. So I did not find an easy way to do it.
Here are some examples. On the left side are the binary numbers before and on the right side the binary numbers after the left shift:
00000000000000000000000000101011011 -> 01011011000000000000000000000000000
00000000000000000000100010110111011 -> 00010110111011000000000000000000000
00000000000000000000000000000100110 -> 00110000000000000000000000000000000
00000000000000111000101010101100010 -> 11000101010101100010000000000000000
How can one do that in C?