Multiplication
Prev: Rearranging Bits and Bytes
Next: Integer Division
Sections
8-1Multiword Multiplication8-2High-Order Half of 64-Bit Product8-3High-Order Product Signed from/to Unsigned8-4Multiplication by Constants
Problems
-
Show that for a bit multiplication, the low-order 32 bits of the product are the same whether the operands are interpreted as signed or unsigned integers.
-
Show how to modify the
mulhsfunction, Figure 8-2, so that it calculates the low-order half of the 64-bit product, as well as the high-order half. Just show the calculation, not the parameter passing. -
Multiplication of complex numbers is defined by
This can be done with only three multiplications. Let
Then the product is given by
which the reader can easily verify.