Skip to content

Commit

Permalink
Dustmite/polyhash.d: Surround gcc assembly operands in parentheses
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Horodniceanu <[email protected]>
  • Loading branch information
the-horo committed Apr 25, 2024
1 parent 1a8c1a9 commit 569e36f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions DustMite/polyhash.d
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,8 @@ if (is(T : long) && T.sizeof >= 2)
asm
{
"`~x86SignedOpPrefix!T~`mul`~x86SizeOpSuffix!T~` %3"
: "=a" low, "=d" high
: "a" a, "rm" b;
: "=a" (low), "=d" (high)
: "a" (a), "rm" (b);
}
`);
return typeof(return)(low, high);
Expand Down Expand Up @@ -363,8 +363,8 @@ if (is(T : long) && T.sizeof >= 2 && is(L == LongInt!T))
asm
{
"`~x86SignedOpPrefix!T~`div`~x86SizeOpSuffix!T~` %4"
: "=a" quotient, "=d" remainder
: "a" low, "d" high, "rm" b;
: "=a" (quotient), "=d" (remainder)
: "a" (low), "d" (high), "rm" (b);
}
`);
return typeof(return)(quotient, remainder);
Expand Down

0 comments on commit 569e36f

Please sign in to comment.