3 ms·
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 doe
by dataflow 4y 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.
- erikpukinskis 4y agoWhat do the five >s and the , mean in this comment?
- dataflow 4y ago>>> is bitwise right shift (fills in with zeros), >> is arithmetic right shift (fills in with the sign bit).
- a1369209993 4y ago> >>> is bitwise right shift Well, they're both bitwise right shifts, the ">>>" is specifically a logical or unsigned right shift.
- dataflow 4y agoWhoops yes I meant logical.