Fix multiplication on 32 bit systems (#60)

This commit is contained in:
coffeepots 2018-08-10 07:37:04 +01:00 committed by Mamy Ratsimbazafy
parent d6435b37ef
commit 2a85ed2e40
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ func extPrecAddMul[T: uint8 or uint16 or uint32](result: var UintImpl[T], x, y:
template extPrecMulImpl(result: var UintImpl[uint64], op: untyped, u, v: uint64) = template extPrecMulImpl(result: var UintImpl[uint64], op: untyped, u, v: uint64) =
const const
p = 64 div 2 p = 64 div 2
base = 1 shl p base: uint64 = 1 shl p
var var
x0, x1, x2, x3: uint64 x0, x1, x2, x3: uint64