On a high theoretical level, all additions are subtractions, and all divisions are multiplications. In the latter case, finding the multiplicand is an exercise for the reader.
(Though it is an easy optimisation if it's a compile time known value. Or loop-invariant.)
no subject
Date: 2008-05-07 09:19 (UTC)(Though it is an easy optimisation if it's a compile time known value. Or loop-invariant.)