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 /ARMeilleure/Instructions/SoftFallback.cs | |
parent | 7e9011673b1593aa2b318e312e0b31379e2e57e4 (diff) |
Use ReadOnlySpan<byte> compiler optimization for static data (#3130)1.1.34
Diffstat (limited to 'ARMeilleure/Instructions/SoftFallback.cs')
-rw-r--r-- | ARMeilleure/Instructions/SoftFallback.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ARMeilleure/Instructions/SoftFallback.cs b/ARMeilleure/Instructions/SoftFallback.cs index 3ff6483d..d9e43021 100644 --- a/ARMeilleure/Instructions/SoftFallback.cs +++ b/ARMeilleure/Instructions/SoftFallback.cs @@ -824,7 +824,7 @@ namespace ARMeilleure.Instructions return (ulong)(size - 1); } - private static readonly byte[] ClzNibbleTbl = { 4, 3, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0 }; + private static ReadOnlySpan<byte> ClzNibbleTbl => new byte[] { 4, 3, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0 }; public static ulong CountLeadingZeros(ulong value, int size) // size is 8, 16, 32 or 64 (SIMD&FP or Base Inst.). { |