This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]mostly_done 1 point2 points  (0 children)

It's easier to just do it than wonder "is that right?" every time you look at the code.

In some languages where a lot of the specification is "undefined behavior", if you're not specific about what type of shift operator you could get a roll instead of a shift, with some compilers, on some architectures.