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

C51 Shifting integers

Trying to determine the behavior of the C51 compiler when performing a '>>' on a negative integer.

The C90 indicates that this is compiler implementation dependent.

Will the compiler shift the sign, or does it insert 0's?

Thanks in advance for any replies.

Parents Reply Children
  • You seem to asking a lot of questions like this, all of which would benefit from having the tools installed.

    If it's part of your job, shouldn't your employer be providing appropriate tools ?

    EDIT

    Sorry - it wasn't you! It was somebody else, but saying a very similar thing.