mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-03 14:36:26 +02:00
Structural and Memory Safety Improvements, Analyzer Cleanup (ryubing/ryujinx!47)
See merge request ryubing/ryujinx!47
This commit is contained in:
parent
d03ae9c164
commit
ea027d65a7
309 changed files with 1018 additions and 1247 deletions
|
@ -21,11 +21,11 @@ namespace Spv.Generator
|
|||
{
|
||||
if (Count > InternalCount)
|
||||
{
|
||||
return MemoryMarshal.CreateSpan(ref this.Overflow[0], Count);
|
||||
return MemoryMarshal.CreateSpan(ref Overflow[0], Count);
|
||||
}
|
||||
else
|
||||
{
|
||||
return MemoryMarshal.CreateSpan(ref this.Operand1, Count);
|
||||
return MemoryMarshal.CreateSpan(ref Operand1, Count);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -33,7 +33,7 @@ namespace Spv.Generator
|
|||
{
|
||||
if (Count < InternalCount)
|
||||
{
|
||||
MemoryMarshal.CreateSpan(ref this.Operand1, Count + 1)[Count] = operand;
|
||||
MemoryMarshal.CreateSpan(ref Operand1, Count + 1)[Count] = operand;
|
||||
Count++;
|
||||
}
|
||||
else
|
||||
|
@ -41,7 +41,7 @@ namespace Spv.Generator
|
|||
if (Overflow == null)
|
||||
{
|
||||
Overflow = new IOperand[InternalCount * 2];
|
||||
MemoryMarshal.CreateSpan(ref this.Operand1, InternalCount).CopyTo(Overflow.AsSpan());
|
||||
MemoryMarshal.CreateSpan(ref Operand1, InternalCount).CopyTo(Overflow.AsSpan());
|
||||
}
|
||||
else if (Count == Overflow.Length)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue