Remove spurious unsigned operations from system/threads.nim.

These operations were included before the unsigned module was
incorporated directly into system.nim and subsequently caused
compilation errors with --gc:go due to duplicate definitions.
This commit is contained in:
Reimer Behrends
2015-09-08 19:12:01 +02:00
parent 9deab06c1b
commit 250375bdd2

View File

@@ -199,9 +199,6 @@ elif defined(gogc):
else:
const goLib = "libgo.so"
proc `div`[T: SomeUnsignedInt](x, y: T): T {.magic: "DivU", noSideEffect.}
proc `-`[T: SomeUnsignedInt](x, y: T): T {.magic: "SubU", noSideEffect.}
proc roundup(x, v: int): int {.inline.} =
result = (x + (v-1)) and not (v-1)