Delete Integer.cs
This commit is contained in:
parent
1f7da5dc13
commit
f1217419ee
1 changed files with 0 additions and 42 deletions
|
@ -1,42 +0,0 @@
|
|||
// https://github.com/LDj3SNuD/ARM_v8-A_AArch64_Instructions_Tester/blob/master/Tester/Types/Integer.cs
|
||||
|
||||
using System;
|
||||
using System.Numerics;
|
||||
|
||||
namespace Ryujinx.Tests.Cpu.Tester.Types
|
||||
{
|
||||
internal static class Integer
|
||||
{
|
||||
public static Bits SubBigInteger(this BigInteger x, int highIndex, int lowIndex) // ASL: "<:>".
|
||||
{
|
||||
if (highIndex < lowIndex)
|
||||
{
|
||||
throw new IndexOutOfRangeException();
|
||||
}
|
||||
|
||||
Bits src = new Bits(x);
|
||||
bool[] dst = new bool[highIndex - lowIndex + 1];
|
||||
|
||||
for (int i = lowIndex, n = 0; i <= highIndex; i++, n++)
|
||||
{
|
||||
if (i <= src.Count - 1)
|
||||
{
|
||||
dst[n] = src[i];
|
||||
}
|
||||
else
|
||||
{
|
||||
dst[n] = (x.Sign != -1 ? false : true); // Zero / Sign Extension.
|
||||
}
|
||||
}
|
||||
|
||||
return new Bits(dst);
|
||||
}
|
||||
|
||||
public static bool SubBigInteger(this BigInteger x, int index) // ASL: "<>".
|
||||
{
|
||||
Bits dst = x.SubBigInteger(index, index);
|
||||
|
||||
return (bool)dst;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue