From the following code, I expect to set all bits to x in 1, but only the first 32 bits are set in one way or another:
int64_t x = 0xFFFFFFFF; x<<32; x|=0xFFFFFFFF;
Note: printing x after each line results in 4294967295 (32 LSBs set to 1). Also, tried using numeric_limits<int64_t>::min() without success. My question is how to set all bits to x? Using RHEL5.5.
thanks
source share