Hacker News new | ask | show | jobs
by dataflow 1326 days ago
The ">>>" operator works, the ">>" operator doesn't. The reason the former works is that it basically performs unsigned division by a power of 2; the latter does it signed. There's no floating-point.
1 comments

What do the five >s and the , mean in this comment?
>>> is bitwise right shift (fills in with zeros), >> is arithmetic right shift (fills in with the sign bit).
> >>> is bitwise right shift

Well, they're both bitwise right shifts, the ">>>" is specifically a logical or unsigned right shift.

Whoops yes I meant logical.