mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-24 02:07:11 +02:00
misc: chore: Use collection expressions in Cpu
This commit is contained in:
parent
ed2590a8ac
commit
3e12865f51
26 changed files with 934 additions and 931 deletions
|
@ -38,10 +38,10 @@ namespace Ryujinx.Cpu
|
|||
{
|
||||
Memory = memory;
|
||||
Size = size;
|
||||
_freeRanges = new List<Range>
|
||||
{
|
||||
new(0, size),
|
||||
};
|
||||
_freeRanges =
|
||||
[
|
||||
new(0, size)
|
||||
];
|
||||
}
|
||||
|
||||
public ulong Allocate(ulong size, ulong alignment)
|
||||
|
@ -185,7 +185,7 @@ namespace Ryujinx.Cpu
|
|||
|
||||
public PrivateMemoryAllocatorImpl(ulong blockAlignment, MemoryAllocationFlags allocationFlags)
|
||||
{
|
||||
_blocks = new List<T>();
|
||||
_blocks = [];
|
||||
_blockAlignment = blockAlignment;
|
||||
_allocationFlags = allocationFlags;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue