From fb1a589aea75cc332470a5e04ab5140abd8369ad Mon Sep 17 00:00:00 2001 From: Tanner Gooding Date: Tue, 29 Jan 2019 13:34:01 -0800 Subject: [PATCH] Fixing several of the HWIntrinsic SoftwareFallback functions to be captureless (#22263) Signed-off-by: dotnet-bot --- .../shared/System/Runtime/Intrinsics/Vector128.cs | 16 ++++++++-------- .../shared/System/Runtime/Intrinsics/Vector256.cs | 20 ++++++++++---------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/netcore/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector128.cs b/netcore/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector128.cs index a57f999112c..e4a031c14ec 100644 --- a/netcore/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector128.cs +++ b/netcore/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector128.cs @@ -1172,7 +1172,7 @@ namespace System.Runtime.Intrinsics Vector128 SoftwareFallback(short x) { var result = Vector128.Zero; - Unsafe.WriteUnaligned(ref Unsafe.As, byte>(ref result), value); + Unsafe.WriteUnaligned(ref Unsafe.As, byte>(ref result), x); return result; } } @@ -1193,7 +1193,7 @@ namespace System.Runtime.Intrinsics Vector128 SoftwareFallback(int x) { var result = Vector128.Zero; - Unsafe.WriteUnaligned(ref Unsafe.As, byte>(ref result), value); + Unsafe.WriteUnaligned(ref Unsafe.As, byte>(ref result), x); return result; } } @@ -1213,7 +1213,7 @@ namespace System.Runtime.Intrinsics Vector128 SoftwareFallback(long x) { var result = Vector128.Zero; - Unsafe.WriteUnaligned(ref Unsafe.As, byte>(ref result), value); + Unsafe.WriteUnaligned(ref Unsafe.As, byte>(ref result), x); return result; } } @@ -1237,7 +1237,7 @@ namespace System.Runtime.Intrinsics Vector128 SoftwareFallback(sbyte x) { var result = Vector128.Zero; - Unsafe.WriteUnaligned(ref Unsafe.As, byte>(ref result), value); + Unsafe.WriteUnaligned(ref Unsafe.As, byte>(ref result), x); return result; } } @@ -1258,7 +1258,7 @@ namespace System.Runtime.Intrinsics Vector128 SoftwareFallback(float x) { var result = Vector128.Zero; - Unsafe.WriteUnaligned(ref Unsafe.As, byte>(ref result), value); + Unsafe.WriteUnaligned(ref Unsafe.As, byte>(ref result), x); return result; } } @@ -1282,7 +1282,7 @@ namespace System.Runtime.Intrinsics Vector128 SoftwareFallback(ushort x) { var result = Vector128.Zero; - Unsafe.WriteUnaligned(ref Unsafe.As, byte>(ref result), value); + Unsafe.WriteUnaligned(ref Unsafe.As, byte>(ref result), x); return result; } } @@ -1304,7 +1304,7 @@ namespace System.Runtime.Intrinsics Vector128 SoftwareFallback(uint x) { var result = Vector128.Zero; - Unsafe.WriteUnaligned(ref Unsafe.As, byte>(ref result), value); + Unsafe.WriteUnaligned(ref Unsafe.As, byte>(ref result), x); return result; } } @@ -1326,7 +1326,7 @@ namespace System.Runtime.Intrinsics Vector128 SoftwareFallback(ulong x) { var result = Vector128.Zero; - Unsafe.WriteUnaligned(ref Unsafe.As, byte>(ref result), value); + Unsafe.WriteUnaligned(ref Unsafe.As, byte>(ref result), x); return result; } } diff --git a/netcore/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector256.cs b/netcore/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector256.cs index f1f70786cab..4404f2c3a72 100644 --- a/netcore/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector256.cs +++ b/netcore/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector256.cs @@ -1261,7 +1261,7 @@ namespace System.Runtime.Intrinsics Vector256 SoftwareFallback(byte x) { var result = Vector256.Zero; - Unsafe.WriteUnaligned(ref Unsafe.As, byte>(ref result), value); + Unsafe.WriteUnaligned(ref Unsafe.As, byte>(ref result), x); return result; } } @@ -1282,7 +1282,7 @@ namespace System.Runtime.Intrinsics Vector256 SoftwareFallback(double x) { var result = Vector256.Zero; - Unsafe.WriteUnaligned(ref Unsafe.As, byte>(ref result), value); + Unsafe.WriteUnaligned(ref Unsafe.As, byte>(ref result), x); return result; } } @@ -1303,7 +1303,7 @@ namespace System.Runtime.Intrinsics Vector256 SoftwareFallback(short x) { var result = Vector256.Zero; - Unsafe.WriteUnaligned(ref Unsafe.As, byte>(ref result), value); + Unsafe.WriteUnaligned(ref Unsafe.As, byte>(ref result), x); return result; } } @@ -1324,7 +1324,7 @@ namespace System.Runtime.Intrinsics Vector256 SoftwareFallback(int x) { var result = Vector256.Zero; - Unsafe.WriteUnaligned(ref Unsafe.As, byte>(ref result), value); + Unsafe.WriteUnaligned(ref Unsafe.As, byte>(ref result), x); return result; } } @@ -1345,7 +1345,7 @@ namespace System.Runtime.Intrinsics Vector256 SoftwareFallback(long x) { var result = Vector256.Zero; - Unsafe.WriteUnaligned(ref Unsafe.As, byte>(ref result), value); + Unsafe.WriteUnaligned(ref Unsafe.As, byte>(ref result), x); return result; } } @@ -1367,7 +1367,7 @@ namespace System.Runtime.Intrinsics Vector256 SoftwareFallback(sbyte x) { var result = Vector256.Zero; - Unsafe.WriteUnaligned(ref Unsafe.As, byte>(ref result), value); + Unsafe.WriteUnaligned(ref Unsafe.As, byte>(ref result), x); return result; } } @@ -1388,7 +1388,7 @@ namespace System.Runtime.Intrinsics Vector256 SoftwareFallback(float x) { var result = Vector256.Zero; - Unsafe.WriteUnaligned(ref Unsafe.As, byte>(ref result), value); + Unsafe.WriteUnaligned(ref Unsafe.As, byte>(ref result), x); return result; } } @@ -1410,7 +1410,7 @@ namespace System.Runtime.Intrinsics Vector256 SoftwareFallback(ushort x) { var result = Vector256.Zero; - Unsafe.WriteUnaligned(ref Unsafe.As, byte>(ref result), value); + Unsafe.WriteUnaligned(ref Unsafe.As, byte>(ref result), x); return result; } } @@ -1432,7 +1432,7 @@ namespace System.Runtime.Intrinsics Vector256 SoftwareFallback(uint x) { var result = Vector256.Zero; - Unsafe.WriteUnaligned(ref Unsafe.As, byte>(ref result), value); + Unsafe.WriteUnaligned(ref Unsafe.As, byte>(ref result), x); return result; } } @@ -1454,7 +1454,7 @@ namespace System.Runtime.Intrinsics Vector256 SoftwareFallback(ulong x) { var result = Vector256.Zero; - Unsafe.WriteUnaligned(ref Unsafe.As, byte>(ref result), value); + Unsafe.WriteUnaligned(ref Unsafe.As, byte>(ref result), x); return result; } } -- 2.11.4.GIT