set const arch64 to fix compiling with vcc/icc (#17539)
This commit is contained in:
parent
d96469037e
commit
b77a420d3e
1 changed files with 1 additions and 0 deletions
|
|
@ -18,6 +18,7 @@ const useGCC_builtins* = (defined(gcc) or defined(llvm_gcc) or
|
||||||
defined(clang)) and useBuiltins
|
defined(clang)) and useBuiltins
|
||||||
const useICC_builtins* = defined(icc) and useBuiltins
|
const useICC_builtins* = defined(icc) and useBuiltins
|
||||||
const useVCC_builtins* = defined(vcc) and useBuiltins
|
const useVCC_builtins* = defined(vcc) and useBuiltins
|
||||||
|
const arch64 = sizeof(int) == 8
|
||||||
|
|
||||||
template countBitsImpl(n: uint32): int =
|
template countBitsImpl(n: uint32): int =
|
||||||
# generic formula is from: https://graphics.stanford.edu/~seander/bithacks.html#CountBitsSetParallel
|
# generic formula is from: https://graphics.stanford.edu/~seander/bithacks.html#CountBitsSetParallel
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue