diff options
| author | Berkan Diler <b.diler@gmx.de> | 2022-02-17 21:38:50 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-17 21:38:50 +0100 |
| commit | 9ca040c0ff66e8ad928b6fb109401a5b4b53a74d (patch) | |
| tree | d8dd00bf459a2c894ff393c09afd60e96b57bcc4 /Ryujinx.Graphics.Nvdec.Vp9/Types | |
| parent | 7e9011673b1593aa2b318e312e0b31379e2e57e4 (diff) | |
Use ReadOnlySpan<byte> compiler optimization for static data (#3130)
Diffstat (limited to 'Ryujinx.Graphics.Nvdec.Vp9/Types')
| -rw-r--r-- | Ryujinx.Graphics.Nvdec.Vp9/Types/Mv.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.Nvdec.Vp9/Types/Mv.cs b/Ryujinx.Graphics.Nvdec.Vp9/Types/Mv.cs index c1f99ade..815bbb32 100644 --- a/Ryujinx.Graphics.Nvdec.Vp9/Types/Mv.cs +++ b/Ryujinx.Graphics.Nvdec.Vp9/Types/Mv.cs @@ -10,7 +10,7 @@ namespace Ryujinx.Graphics.Nvdec.Vp9.Types public short Row; public short Col; - private static readonly byte[] LogInBase2 = new byte[] + private static ReadOnlySpan<byte> LogInBase2 => new byte[] { 0, 0, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, |
