Skip to content Skip to sidebar Skip to footer
Showing posts with the label Bit Manipulation

Unsigned Right Shift / Zero-fill Right Shift / >>> In Php (java/javascript Equivalent)

Before flagging this as a duplicate, please read below, and check my code * my updated code! So m… Read more Unsigned Right Shift / Zero-fill Right Shift / >>> In Php (java/javascript Equivalent)

Replicating Javascript Bitwise Operation In Python

I'm trying to replicate a simple bitwise Javascript operation in Python. [Javascript] > 0xA8… Read more Replicating Javascript Bitwise Operation In Python

Javascript's Shift Right With Zero-fill Operator (>>>) Yielding Unexpected Result

First, (-1 >>> 0) === (2**32 - 1) which I expect is due to adding a new zero to the left, … Read more Javascript's Shift Right With Zero-fill Operator (>>>) Yielding Unexpected Result

How To Read Off 1 Flag Bit And Get Integer At Same Time

Say I have an 8-bit number with a flag at either side: 0101011 (decimal 43) 0101011 (decimal 43) … Read more How To Read Off 1 Flag Bit And Get Integer At Same Time

Why Does OR 0 Round Numbers In Javascript?

I'm under the impression that the Number type in Javascript stores any number, integer or float… Read more Why Does OR 0 Round Numbers In Javascript?