Binary arithmetics https://www.swarthmore.edu/NatSci/echeeve1/Ref/BinaryMath/BinaryMath.html Practical Programmer Math: Bit Arithmetic