Use the negate operator provided by ttmath

This commit is contained in:
mratsim 2018-04-03 10:50:26 +02:00
parent d46815e1e5
commit 3c91050650
1 changed files with 1 additions and 2 deletions

View File

@ -99,8 +99,7 @@ defineUIntConstructor(UInt512, u512)
defineUIntConstructor(UInt1024, u1024)
defineUIntConstructor(UInt2048, u2048)
template `-`*(a: Int): Int =
initInt[Int](0) - a
proc `-`*(a: Int): Int {.importcpp: "(- #)".}
proc pow*(a: Int, b: int): Int =
var tmp = a