05-30-2005, 08:03 PM
Quote:So, when rotating a positive number, is it possible for the number tobecome negative?
it should be if one is considering 16-bit signed integers. My original solution (post 5 of this thread) works fine.
Rotate left 2 bits (like assembler)
|
« Next Oldest | Next Newest »
|