include system/countbits_impl

This commit is contained in:
ringabout
2025-12-17 21:07:18 +08:00
parent d9cc42a4ed
commit 6038535db1
5 changed files with 15 additions and 12 deletions

View File

@@ -1,3 +1,10 @@
const useBuiltins = not defined(noIntrinsicsBitOpts)
const noUndefined = defined(noUndefinedBitOpts)
const useGCC_builtins = (defined(gcc) or defined(llvm_gcc) or
defined(clang)) and useBuiltins
const useICC_builtins = defined(icc) and useBuiltins
const useVCC_builtins = defined(vcc) and useBuiltins
template forwardImpl(impl, arg) {.dirty.} =
when sizeof(x) <= 4:
when x is SomeSignedInt: