I'm sure FPGA logic designers have often heard it said: “We just need to take this number mod 3.” Or maybe something like, “Just round to the nearest hundred.” This latter case really means: “Take the ...
To multiply a negative number, an arithmetic binary shift moves all the digits in the binary number along to the left and fills the gaps after the shift with 0: to multiply by two, all digits shift ...