File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -85,9 +85,3 @@ func countSetBitsImpl*(x: SomeInteger): int {.inline.} =
8585 else :
8686 when sizeof (x) <= 4 : result = countBitsImpl (x.uint32 )
8787 else : result = countBitsImpl (x.uint64 )
88-
89- proc countBits32 * (n: uint32 ): int {.compilerproc , inline .} =
90- result = countSetBitsImpl (n)
91-
92- proc countBits64 * (n: uint64 ): int {.compilerproc , inline .} =
93- result = countSetBitsImpl (n)
Original file line number Diff line number Diff line change 1010# set handling
1111
1212
13+ # IC: compilerprocs now must be defined in system.nim or threadpool.nim!
14+ proc countBits32 * (n: uint32 ): int {.compilerproc , inline .} =
15+ result = countSetBitsImpl (n)
16+
17+ proc countBits64 * (n: uint64 ): int {.compilerproc , inline .} =
18+ result = countSetBitsImpl (n)
19+
1320proc cardSetImpl (s: ptr UncheckedArray [uint8 ], len: int ): int {.inline .} =
1421 var i = 0
1522 result = 0
You can’t perform that action at this time.
0 commit comments