From 9ca040c0ff66e8ad928b6fb109401a5b4b53a74d Mon Sep 17 00:00:00 2001 From: Berkan Diler Date: Thu, 17 Feb 2022 21:38:50 +0100 Subject: Use ReadOnlySpan compiler optimization for static data (#3130) --- ARMeilleure/Instructions/SoftFallback.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ARMeilleure/Instructions/SoftFallback.cs') 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 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.). { -- cgit v1.2.3