Skip to content

Commit 480e84f

Browse files
n8sh9il
authored andcommitted
Remove non-working extMul_X86_64 (used by non-LDC)
See comment at libmir/mir-random#39 (comment)
1 parent c237730 commit 480e84f

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

source/mir/utility.d

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -554,14 +554,6 @@ ExtMulResult!U extMul(U)(in U a, in U b) @nogc nothrow pure @safe
554554
return ExtMulResult!U(r[0], r[1]);
555555
}
556556
}
557-
else
558-
version(D_InlineAsm_X86_64)
559-
{
560-
static if (is(U == ulong) && !is(ucent))
561-
{
562-
return extMul_X86_64(a, b);
563-
}
564-
}
565557
}
566558

567559
U al = cast(H)a;
@@ -590,15 +582,3 @@ unittest
590582
enum c = extMul(a, b); // Compile time algorithm
591583
assert(extMul(a, b) == c); // Fast runtime algorihtm
592584
}
593-
594-
private ExtMulResult!ulong extMul_X86_64()(ulong a, ulong b)
595-
{
596-
// pragma(inline, true);
597-
asm @safe pure nothrow @nogc
598-
{
599-
naked;
600-
mov RAX, RDI;
601-
mul RSI;
602-
ret;
603-
}
604-
}

0 commit comments

Comments
 (0)