Hi to all the GURUS of c++,
I am relatively new to programming in C++. I wanted to compare and shift 36 bit data. I tried to store hex data in a double (64 bit), but would show up differently in the memory, may be because it is interpreting some part as mantissa and other as exponent.
If I use, integer (32 bit) I would have to use 2 of them to store 36 bits. I wanted to know if there is any open library or class in which I can store 36 bits and then shift or compare them.
If not, then Shifting an integer would be a pain, as when shifting left by one bit, the most significant bit is lost, unless stored someplace before shifting. Please advice.
thanks,
lecan
I am relatively new to programming in C++. I wanted to compare and shift 36 bit data. I tried to store hex data in a double (64 bit), but would show up differently in the memory, may be because it is interpreting some part as mantissa and other as exponent.
If I use, integer (32 bit) I would have to use 2 of them to store 36 bits. I wanted to know if there is any open library or class in which I can store 36 bits and then shift or compare them.
If not, then Shifting an integer would be a pain, as when shifting left by one bit, the most significant bit is lost, unless stored someplace before shifting. Please advice.
thanks,
lecan