mirror of
https://github.com/status-im/nim-stint.git
synced 2025-02-21 03:18:13 +00:00
fixes asm statement in nimHasAsmSemSymbol
in the devel branch (#164)
In https://github.com/nim-lang/Nim/pull/24547, asm statements require no explicit dereference
This commit is contained in:
parent
c5a4355407
commit
dc5a7ec582
@ -41,7 +41,7 @@ func div2n1n_128*(q, r: var uint64, n_hi, n_lo, d: uint64) {.inline.}=
|
||||
# 2. don't forget to dereference the var hidden pointer
|
||||
# 3. -
|
||||
# 4. no clobbered registers beside explicitly used RAX and RDX
|
||||
when defined(cpp):
|
||||
when defined(cpp) or defined(nimHasAsmSemSymbol):
|
||||
asm """
|
||||
divq %[divisor]
|
||||
:"=a" (`q`), "=d" (`r`)
|
||||
|
Loading…
x
Reference in New Issue
Block a user