SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
27
devel/dtools/patches/patch-DustMite_polyhash_d
Normal file
27
devel/dtools/patches/patch-DustMite_polyhash_d
Normal file
|
@ -0,0 +1,27 @@
|
|||
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);
|
Loading…
Add table
Add a link
Reference in a new issue