Leftover changes from a6766c94.
Use multiplication instead, allowing the compiler to optimize to bitshifts if it believe it to be safe.
Partly solves github issue #18.