add amd64
This commit is contained in:
parent
5a520a8454
commit
944bab4c3c
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ proc countBits64(n: uint64): int {.compilerproc, inline.} =
|
|||
|
||||
proc cardSet(s: NimSet, len: int): int {.compilerproc, inline.} =
|
||||
var j = -1
|
||||
when defined(x86):
|
||||
when defined(x86) or defined(amd64):
|
||||
for i in countup(0, len - 8, 8):
|
||||
inc(result, countBits64((cast[ptr uint64](s[i].unsafeAddr))[]))
|
||||
j = i + 7
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue