diff options
author | pdw <algorithicimperative@gmail.com> | 2015-05-24 22:37:46 -0500 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2015-06-04 13:18:37 +0200 |
commit | 2ca90a20a117ba14f6610cf57e6a233d3081b9d5 (patch) | |
tree | 030667796a68859f17bf573021bab9396bc93bb3 /lib/system/sets.nim | |
parent | ff5b446dfc32f2121799f1a8b90c913ceb52401f (diff) | |
download | Nim-2ca90a20a117ba14f6610cf57e6a233d3081b9d5.tar.gz |
lib/system/g-w - Dropped 'T' from types
Diffstat (limited to 'lib/system/sets.nim')
-rw-r--r-- | lib/system/sets.nim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/system/sets.nim b/lib/system/sets.nim index 626d43c33..22d6d57c0 100644 --- a/lib/system/sets.nim +++ b/lib/system/sets.nim @@ -10,7 +10,8 @@ # set handling type - TNimSet = array [0..4*2048-1, uint8] + NimSet = array [0..4*2048-1, uint8] +{.deprecated: [TNimSet: NimSet].} proc countBits32(n: int32): int {.compilerproc.} = var v = n @@ -22,7 +23,7 @@ proc countBits64(n: int64): int {.compilerproc.} = result = countBits32(toU32(n and 0xffff'i64)) + countBits32(toU32(n shr 16'i64)) -proc cardSet(s: TNimSet, len: int): int {.compilerproc.} = +proc cardSet(s: NimSet, len: int): int {.compilerproc.} = result = 0 for i in countup(0, len-1): inc(result, countBits32(int32(s[i]))) |