0

I have a problem shifting data to specific locations in a 64-bit register. I've done well in 32-bit register.
But this one gives a warning and also not shifting the data to the wanted location.

This one would work with shifts 0, 8, 16 and 24 but not with 32 or more.

uint64_t map_buffer=0;
map_buffer |= 0xff << 32;                 // loading data into map_buffer

So, if I want to shift this data to the last location in the 64-bit register, so the output should be like this: 0xff000000.

Edited by R1S8K

2
Contributors
2
Replies
15
Views
2 Months
Discussion Span
Last Post by nullptr
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.