Remove some debug leftovers

This commit is contained in:
mratsim 2018-03-28 21:59:16 +02:00
parent 4e12596295
commit 0417b30e56
2 changed files with 1 additions and 6 deletions

View File

@ -52,7 +52,7 @@ proc `-`*(x, y: MpUintImpl): MpUintImpl {.noSideEffect, noInit, inline.}=
proc naiveMulImpl[T: MpUintImpl](x, y: T): MpUintImpl[T] {.noSideEffect, noInit, inline.}
# Forward declaration
import typetraits
proc naiveMul[T: BaseUint](x, y: T): MpUintImpl[T] {.noSideEffect, noInit, inline.}=
## Naive multiplication algorithm with extended precision
@ -64,10 +64,6 @@ proc naiveMul[T: BaseUint](x, y: T): MpUintImpl[T] {.noSideEffect, noInit, inlin
elif size == 64: # uint64 or MpUint[uint32]
# We cannot double uint64 to uint128
static:
echo "####"
echo x.type.name
echo size
cast[type result](naiveMulImpl(x.toMpUintImpl, y.toMpUintImpl))
else:
# Case: at least uint128 * uint128 --> uint256

View File

@ -17,7 +17,6 @@ import typetraits
proc initMpUint*[T: SomeInteger](n: T, bits: static[int]): MpUint[bits] {.noSideEffect.} =
assert n >= 0.T
when result.data is MpuintImpl:
static: echo result.data.type.name
let len = n.bit_length
if len > bits:
raise newException(ValueError, "Input " & $n & " cannot be stored in a multi-precision " &