Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rotate vs Shift
#3
(09-05-2022, 11:22 PM)SMcNeill Wrote: Folks seem to be asking, "What's _ROL and _ROR?  How are the different from the bit shifting routines for _SHL and _SHR?"
Simple answer:

Shift is like a bulldozer pushing the bits off the edge. The bits are replaced by 0 for non-negative numbers and 1 for negative numbers.

Rotate is like putting the bits on a conveyor belt or a lazy Susan. the bits that roll off come back around.
While 1
   Fix Bugs
   report all bugs fixed
   receive bug report
end while
Reply


Messages In This Thread
Rotate vs Shift - by SMcNeill - 09-05-2022, 11:22 PM
RE: Rotate vs Shift - by OldMoses - 09-05-2022, 11:37 PM
RE: Rotate vs Shift - by TDarcos - 09-08-2022, 10:47 PM
RE: Rotate vs Shift - by OldMoses - 09-11-2022, 12:51 PM



Users browsing this thread: 1 Guest(s)