Re:Two's complement – You beauty
by d0mine on Wednesday January 11, 2017 @06:06AM
(#13373126)
Bitwise opetations assume an infinite number of 1s on the left for negative numbers (2s compliment) e.g., ~-1 == 0 (-1 is an infinite number of 1s that are converted to 0 by ~ (invert) operator ).
[ Parent
| on HN ]
There are no comments on this comment yet.