Skip to content

Commit bd85ccd

Browse files
committed
compilerprocs must be in system (or threadpool)
1 parent 25122da commit bd85ccd

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

lib/system/countbits_impl.nim

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff 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)

lib/system/sets.nim

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@
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+
1320
proc cardSetImpl(s: ptr UncheckedArray[uint8], len: int): int {.inline.} =
1421
var i = 0
1522
result = 0

0 commit comments

Comments
 (0)