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:
ringabout 2024-12-20 02:22:40 +08:00 committed by GitHub
parent c5a4355407
commit dc5a7ec582
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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`)