summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-01-21 16:28:03 +0100
committerAndreas Rumpf <rumpf_a@web.de>2016-01-21 16:28:03 +0100
commit1dac302975911752000e04fddb85b5302d7001b8 (patch)
tree9c67271c71b028811d178bca42cbd11771e7a3be /lib
parentb2854f21d6705f7957a21a0cc1a8688348a7fab8 (diff)
parentc0d0e5efd935fbcce25de053f0b83bb2bb606faa (diff)
downloadNim-1dac302975911752000e04fddb85b5302d7001b8.tar.gz
Merge pull request #3754 from yglukhov/js-unsigned
Unsigned arith corrected for JS
Diffstat (limited to 'lib')
-rw-r--r--lib/system/jssys.nim36
1 files changed, 0 insertions, 36 deletions
diff --git a/lib/system/jssys.nim b/lib/system/jssys.nim
index 0bb0ffade..abee95f40 100644
--- a/lib/system/jssys.nim
+++ b/lib/system/jssys.nim
@@ -436,42 +436,6 @@ proc absInt(a: int): int {.compilerproc.} =
 proc absInt64(a: int64): int64 {.compilerproc.} =
   result = if a < 0: a*(-1) else: a
 
-proc leU(a, b: int): bool {.compilerproc.} =
-  result = abs(a) <= abs(b)
-
-proc ltU(a, b: int): bool {.compilerproc.} =
-  result = abs(a) < abs(b)
-
-proc leU64(a, b: int64): bool {.compilerproc.} =
-  result = abs(a) <= abs(b)
-proc ltU64(a, b: int64): bool {.compilerproc.} =
-  result = abs(a) < abs(b)
-
-proc addU(a, b: int): int {.compilerproc.} =
-  result = abs(a) + abs(b)
-proc addU64(a, b: int64): int64 {.compilerproc.} =
-  result = abs(a) + abs(b)
-
-proc subU(a, b: int): int {.compilerproc.} =
-  result = abs(a) - abs(b)
-proc subU64(a, b: int64): int64 {.compilerproc.} =
-  result = abs(a) - abs(b)
-
-proc mulU(a, b: int): int {.compilerproc.} =
-  result = abs(a) * abs(b)
-proc mulU64(a, b: int64): int64 {.compilerproc.} =
-  result = abs(a) * abs(b)
-
-proc divU(a, b: int): int {.compilerproc.} =
-  result = abs(a) div abs(b)
-proc divU64(a, b: int64): int64 {.compilerproc.} =
-  result = abs(a) div abs(b)
-
-proc modU(a, b: int): int {.compilerproc.} =
-  result = abs(a) mod abs(b)
-proc modU64(a, b: int64): int64 {.compilerproc.} =
-  result = abs(a) mod abs(b)
-
 proc ze*(a: int): int {.compilerproc.} =
   result = a