aboutsummaryrefslogtreecommitdiff
path: root/ARMeilleure/Instructions/SoftFallback.cs
diff options
context:
space:
mode:
authorBerkan Diler <b.diler@gmx.de>2022-02-17 21:38:50 +0100
committerGitHub <noreply@github.com>2022-02-17 21:38:50 +0100
commit9ca040c0ff66e8ad928b6fb109401a5b4b53a74d (patch)
treed8dd00bf459a2c894ff393c09afd60e96b57bcc4 /ARMeilleure/Instructions/SoftFallback.cs
parent7e9011673b1593aa2b318e312e0b31379e2e57e4 (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.cs2
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.).
{