This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ARM: is bit shift result correct?

A variable shifted right seems to result in an incorrect value.

uint64_t i = 13,825,587,238;
i = i >> 7u;

The situation is observed when 13,825,587,238 is right shifted 7. The correct value is 10,473,877,732 but debug window has 12,992,914,288.

http://youtu.be/szgss6lDotU

Would this be a syntax error?

Parents Reply Children
No data