From ea26b5a7e10459c1b901dea2f86b6cd32785cdcf Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Thu, 23 Mar 2023 15:11:15 +0000 Subject: [PATCH] Use explicit type where non-evident in SpanExtensions --- X10D/src/Core/SpanExtensions.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/X10D/src/Core/SpanExtensions.cs b/X10D/src/Core/SpanExtensions.cs index f883a18..d200b17 100644 --- a/X10D/src/Core/SpanExtensions.cs +++ b/X10D/src/Core/SpanExtensions.cs @@ -179,7 +179,7 @@ public static class SpanExtensions if (Sse2.IsSupported) { - var load = Sse2.LoadScalarVector128((ulong*)pSource).AsByte(); + Vector128 load = Sse2.LoadScalarVector128((ulong*)pSource).AsByte(); return unchecked((byte)(IntegerPackingMagic * load.CorrectBoolean().AsUInt64().GetElement(0) >> 56)); } @@ -190,7 +190,7 @@ public static class SpanExtensions if (AdvSimd.IsSupported) { // Hasn't been tested since March 6th 2023 (Reason: Unavailable hardware). - var load = AdvSimd.LoadVector64((byte*)pSource); + Vector64 load = AdvSimd.LoadVector64((byte*)pSource); return unchecked((byte)(IntegerPackingMagic * load.CorrectBoolean().AsUInt64().GetElement(0) >> 56)); }