27 lines
822 B
Text
27 lines
822 B
Text
https://github.com/CyberShadow/DustMite/commit/2fceaf14a039a9c48f7c2016f52198994c72444c
|
|
|
|
Index: DustMite/polyhash.d
|
|
--- DustMite/polyhash.d.orig
|
|
+++ DustMite/polyhash.d
|
|
@@ -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);
|
|
@@ -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);
|