From 767f5ff42ed93233e4c2b02370a3065d721bea55 Mon Sep 17 00:00:00 2001 From: Fei Peng Date: Sat, 16 Dec 2017 20:10:43 -0800 Subject: [PATCH] Fix naming convention of hardware intrinsic APIs (#15471) --- .../Intrinsics/X86/Avx.PlatformNotSupported.cs | 50 +++++++------ .../src/System/Runtime/Intrinsics/X86/Avx.cs | 82 +++++++++++----------- .../Intrinsics/X86/Avx2.PlatformNotSupported.cs | 24 +++---- .../src/System/Runtime/Intrinsics/X86/Avx2.cs | 24 +++---- .../Intrinsics/X86/Sse.PlatformNotSupported.cs | 2 +- .../src/System/Runtime/Intrinsics/X86/Sse.cs | 2 +- .../Intrinsics/X86/Sse2.PlatformNotSupported.cs | 28 ++++---- .../src/System/Runtime/Intrinsics/X86/Sse2.cs | 36 +++++----- .../Intrinsics/X86/Sse41.PlatformNotSupported.cs | 48 ++++++------- .../src/System/Runtime/Intrinsics/X86/Sse41.cs | 72 +++++++++---------- 10 files changed, 184 insertions(+), 184 deletions(-) diff --git a/src/mscorlib/src/System/Runtime/Intrinsics/X86/Avx.PlatformNotSupported.cs b/src/mscorlib/src/System/Runtime/Intrinsics/X86/Avx.PlatformNotSupported.cs index 4eb9e3b..9654197 100644 --- a/src/mscorlib/src/System/Runtime/Intrinsics/X86/Avx.PlatformNotSupported.cs +++ b/src/mscorlib/src/System/Runtime/Intrinsics/X86/Avx.PlatformNotSupported.cs @@ -121,19 +121,19 @@ namespace System.Runtime.Intrinsics.X86 /// /// __m128i _mm256_cvtpd_epi32 (__m256d a) /// - public static Vector128 ConvertToVector128Int(Vector256 value) { throw new PlatformNotSupportedException(); } + public static Vector128 ConvertToVector128Int32(Vector256 value) { throw new PlatformNotSupportedException(); } /// /// __m128 _mm256_cvtpd_ps (__m256d a) /// - public static Vector128 ConvertToVector128Float(Vector256 value) { throw new PlatformNotSupportedException(); } + public static Vector128 ConvertToVector128Single(Vector256 value) { throw new PlatformNotSupportedException(); } /// /// __m256i _mm256_cvtps_epi32 (__m256 a) /// - public static Vector256 ConvertToVector256Int(Vector256 value) { throw new PlatformNotSupportedException(); } + public static Vector256 ConvertToVector256Int32(Vector256 value) { throw new PlatformNotSupportedException(); } /// /// __m256 _mm256_cvtepi32_ps (__m256i a) /// - public static Vector256 ConvertToVector256Float(Vector256 value) { throw new PlatformNotSupportedException(); } + public static Vector256 ConvertToVector256Single(Vector256 value) { throw new PlatformNotSupportedException(); } /// /// __m256d _mm256_cvtps_pd (__m128 a) /// @@ -146,11 +146,11 @@ namespace System.Runtime.Intrinsics.X86 /// /// __m128i _mm256_cvttpd_epi32 (__m256d a) /// - public static Vector128 ConvertToVector128IntWithTruncation(Vector256 value) { throw new PlatformNotSupportedException(); } + public static Vector128 ConvertToVector128Int32WithTruncation(Vector256 value) { throw new PlatformNotSupportedException(); } /// /// __m256i _mm256_cvttps_epi32 (__m256 a) /// - public static Vector256 ConvertToVector256IntWithTruncation(Vector256 value) { throw new PlatformNotSupportedException(); } + public static Vector256 ConvertToVector256Int32WithTruncation(Vector256 value) { throw new PlatformNotSupportedException(); } /// /// __m256 _mm256_div_ps (__m256 a, __m256 b) @@ -183,7 +183,7 @@ namespace System.Runtime.Intrinsics.X86 /// /// __int8 _mm256_extract_epi8 (__m256i a, const int index) /// - public static sbyte ExtractSbyte(Vector256 value, byte index) where T : struct { throw new PlatformNotSupportedException(); } + public static sbyte ExtractSByte(Vector256 value, byte index) where T : struct { throw new PlatformNotSupportedException(); } /// /// __int8 _mm256_extract_epi8 (__m256i a, const int index) /// @@ -191,27 +191,27 @@ namespace System.Runtime.Intrinsics.X86 /// /// __int16 _mm256_extract_epi16 (__m256i a, const int index) /// - public static short ExtractShort(Vector256 value, byte index) where T : struct { throw new PlatformNotSupportedException(); } + public static short ExtractInt16(Vector256 value, byte index) where T : struct { throw new PlatformNotSupportedException(); } /// /// __int16 _mm256_extract_epi16 (__m256i a, const int index) /// - public static ushort ExtractUshort(Vector256 value, byte index) where T : struct { throw new PlatformNotSupportedException(); } + public static ushort ExtractUInt16(Vector256 value, byte index) where T : struct { throw new PlatformNotSupportedException(); } /// /// __int32 _mm256_extract_epi32 (__m256i a, const int index) /// - public static int ExtractInt(Vector256 value, byte index) where T : struct { throw new PlatformNotSupportedException(); } + public static int ExtractInt32(Vector256 value, byte index) where T : struct { throw new PlatformNotSupportedException(); } /// /// __int32 _mm256_extract_epi32 (__m256i a, const int index) /// - public static uint ExtractUint(Vector256 value, byte index) where T : struct { throw new PlatformNotSupportedException(); } + public static uint ExtractUInt32(Vector256 value, byte index) where T : struct { throw new PlatformNotSupportedException(); } /// /// __int64 _mm256_extract_epi64 (__m256i a, const int index) /// - public static long ExtractLong(Vector256 value, byte index) where T : struct { throw new PlatformNotSupportedException(); } + public static long ExtractInt64(Vector256 value, byte index) where T : struct { throw new PlatformNotSupportedException(); } /// /// __int64 _mm256_extract_epi64 (__m256i a, const int index) /// - public static ulong ExtractUlong(Vector256 value, byte index) where T : struct { throw new PlatformNotSupportedException(); } + public static ulong ExtractUInt64(Vector256 value, byte index) where T : struct { throw new PlatformNotSupportedException(); } /// /// __m128 _mm256_extractf128_ps (__m256 a, const int imm8) @@ -305,7 +305,7 @@ namespace System.Runtime.Intrinsics.X86 /// /// __m256i _mm256_insert_epi8 (__m256i a, __int8 i, const int index) /// - public static Vector256 InsertSbyte(Vector256 value, sbyte data, byte index) where T : struct { throw new PlatformNotSupportedException(); } + public static Vector256 InsertSByte(Vector256 value, sbyte data, byte index) where T : struct { throw new PlatformNotSupportedException(); } /// /// __m256i _mm256_insert_epi8 (__m256i a, __int8 i, const int index) /// @@ -313,27 +313,27 @@ namespace System.Runtime.Intrinsics.X86 /// /// __m256i _mm256_insert_epi16 (__m256i a, __int16 i, const int index) /// - public static Vector256 InsertShort(Vector256 value, short data, byte index) where T : struct { throw new PlatformNotSupportedException(); } + public static Vector256 InsertInt16(Vector256 value, short data, byte index) where T : struct { throw new PlatformNotSupportedException(); } /// /// __m256i _mm256_insert_epi16 (__m256i a, __int16 i, const int index) /// - public static Vector256 InsertUshort(Vector256 value, ushort data, byte index) where T : struct { throw new PlatformNotSupportedException(); } + public static Vector256 InsertUInt16(Vector256 value, ushort data, byte index) where T : struct { throw new PlatformNotSupportedException(); } /// /// __m256i _mm256_insert_epi32 (__m256i a, __int32 i, const int index) /// - public static Vector256 InsertInt(Vector256 value, int data, byte index) where T : struct { throw new PlatformNotSupportedException(); } + public static Vector256 InsertInt32(Vector256 value, int data, byte index) where T : struct { throw new PlatformNotSupportedException(); } /// /// __m256i _mm256_insert_epi32 (__m256i a, __int32 i, const int index) /// - public static Vector256 InsertUint(Vector256 value, uint data, byte index) where T : struct { throw new PlatformNotSupportedException(); } + public static Vector256 InsertUInt32(Vector256 value, uint data, byte index) where T : struct { throw new PlatformNotSupportedException(); } /// /// __m256i _mm256_insert_epi64 (__m256i a, __int64 i, const int index) /// - public static Vector256 InsertLong(Vector256 value, long data, byte index) where T : struct { throw new PlatformNotSupportedException(); } + public static Vector256 InsertInt64(Vector256 value, long data, byte index) where T : struct { throw new PlatformNotSupportedException(); } /// /// __m256i _mm256_insert_epi64 (__m256i a, __int64 i, const int index) /// - public static Vector256 InsertUlong(Vector256 value, ulong data, byte index) where T : struct { throw new PlatformNotSupportedException(); } + public static Vector256 InsertUInt64(Vector256 value, ulong data, byte index) where T : struct { throw new PlatformNotSupportedException(); } /// /// __m256 _mm256_insertf128_ps (__m256 a, __m128 b, int imm8) @@ -599,13 +599,11 @@ namespace System.Runtime.Intrinsics.X86 /// /// __m256 _mm256_permute2f128_ps (__m256 a, __m256 b, int imm8) - /// - public static Vector256 Permute2x128(Vector256 left, Vector256 right, byte control) { throw new PlatformNotSupportedException(); } - /// /// __m256d _mm256_permute2f128_pd (__m256d a, __m256d b, int imm8) + /// __m256i _mm256_permute2f128_si256 (__m256i a, __m256i b, int imm8) /// - public static Vector256 Permute2x128(Vector256 left, Vector256 right, byte control) { throw new PlatformNotSupportedException(); } - + public static Vector256 Permute2x128(Vector256 left, Vector256 right, byte control) where T : struct { throw new PlatformNotSupportedException(); } + /// /// __m128 _mm_permutevar_ps (__m128 a, __m128i b) /// @@ -733,7 +731,7 @@ namespace System.Runtime.Intrinsics.X86 /// __m256d _mm256_set_m128d (__m128d hi, __m128d lo) /// __m256i _mm256_set_m128i (__m128i hi, __m128i lo) /// - public static Vector256 SetHiLo(Vector128 hi, Vector128 lo) where T : struct { throw new PlatformNotSupportedException(); } + public static Vector256 SetHighLow(Vector128 hi, Vector128 lo) where T : struct { throw new PlatformNotSupportedException(); } /// /// __m256i _mm256_setzero_si256 (void) diff --git a/src/mscorlib/src/System/Runtime/Intrinsics/X86/Avx.cs b/src/mscorlib/src/System/Runtime/Intrinsics/X86/Avx.cs index 725b1c4..ba212b7 100644 --- a/src/mscorlib/src/System/Runtime/Intrinsics/X86/Avx.cs +++ b/src/mscorlib/src/System/Runtime/Intrinsics/X86/Avx.cs @@ -121,19 +121,19 @@ namespace System.Runtime.Intrinsics.X86 /// /// __m128i _mm256_cvtpd_epi32 (__m256d a) /// - public static Vector128 ConvertToVector128Int(Vector256 value) => ConvertToVector128Int(value); + public static Vector128 ConvertToVector128Int32(Vector256 value) => ConvertToVector128Int32(value); /// /// __m128 _mm256_cvtpd_ps (__m256d a) /// - public static Vector128 ConvertToVector128Float(Vector256 value) => ConvertToVector128Float(value); + public static Vector128 ConvertToVector128Single(Vector256 value) => ConvertToVector128Single(value); /// /// __m256i _mm256_cvtps_epi32 (__m256 a) /// - public static Vector256 ConvertToVector256Int(Vector256 value) => ConvertToVector256Int(value); + public static Vector256 ConvertToVector256Int32(Vector256 value) => ConvertToVector256Int32(value); /// /// __m256 _mm256_cvtepi32_ps (__m256i a) /// - public static Vector256 ConvertToVector256Float(Vector256 value) => ConvertToVector256Float(value); + public static Vector256 ConvertToVector256Single(Vector256 value) => ConvertToVector256Single(value); /// /// __m256d _mm256_cvtps_pd (__m128 a) /// @@ -146,11 +146,11 @@ namespace System.Runtime.Intrinsics.X86 /// /// __m128i _mm256_cvttpd_epi32 (__m256d a) /// - public static Vector128 ConvertToVector128IntWithTruncation(Vector256 value) => ConvertToVector128IntWithTruncation(value); + public static Vector128 ConvertToVector128Int32WithTruncation(Vector256 value) => ConvertToVector128Int32WithTruncation(value); /// /// __m256i _mm256_cvttps_epi32 (__m256 a) /// - public static Vector256 ConvertToVector256IntWithTruncation(Vector256 value) => ConvertToVector256IntWithTruncation(value); + public static Vector256 ConvertToVector256Int32WithTruncation(Vector256 value) => ConvertToVector256Int32WithTruncation(value); /// /// __m256 _mm256_div_ps (__m256 a, __m256 b) @@ -183,10 +183,10 @@ namespace System.Runtime.Intrinsics.X86 /// /// __int8 _mm256_extract_epi8 (__m256i a, const int index) /// - public static sbyte ExtractSbyte(Vector256 value, byte index) where T : struct + public static sbyte ExtractSByte(Vector256 value, byte index) where T : struct { ThrowHelper.ThrowNotSupportedExceptionIfNonNumericType(); - return ExtractSbyte(value, index); + return ExtractSByte(value, index); } /// /// __int8 _mm256_extract_epi8 (__m256i a, const int index) @@ -199,50 +199,50 @@ namespace System.Runtime.Intrinsics.X86 /// /// __int16 _mm256_extract_epi16 (__m256i a, const int index) /// - public static short ExtractShort(Vector256 value, byte index) where T : struct + public static short ExtractInt16(Vector256 value, byte index) where T : struct { ThrowHelper.ThrowNotSupportedExceptionIfNonNumericType(); - return ExtractShort(value, index); + return ExtractInt16(value, index); } /// /// __int16 _mm256_extract_epi16 (__m256i a, const int index) /// - public static ushort ExtractUshort(Vector256 value, byte index) where T : struct + public static ushort ExtractUInt16(Vector256 value, byte index) where T : struct { ThrowHelper.ThrowNotSupportedExceptionIfNonNumericType(); - return ExtractUshort(value, index); + return ExtractUInt16(value, index); } /// /// __int32 _mm256_extract_epi32 (__m256i a, const int index) /// - public static int ExtractInt(Vector256 value, byte index) where T : struct + public static int ExtractInt32(Vector256 value, byte index) where T : struct { ThrowHelper.ThrowNotSupportedExceptionIfNonNumericType(); - return ExtractInt(value, index); + return ExtractInt32(value, index); } /// /// __int32 _mm256_extract_epi32 (__m256i a, const int index) /// - public static uint ExtractUint(Vector256 value, byte index) where T : struct + public static uint ExtractUInt32(Vector256 value, byte index) where T : struct { ThrowHelper.ThrowNotSupportedExceptionIfNonNumericType(); - return ExtractUint(value, index); + return ExtractUInt32(value, index); } /// /// __int64 _mm256_extract_epi64 (__m256i a, const int index) /// - public static long ExtractLong(Vector256 value, byte index) where T : struct + public static long ExtractInt64(Vector256 value, byte index) where T : struct { ThrowHelper.ThrowNotSupportedExceptionIfNonNumericType(); - return ExtractLong(value, index); + return ExtractInt64(value, index); } /// /// __int64 _mm256_extract_epi64 (__m256i a, const int index) /// - public static ulong ExtractUlong(Vector256 value, byte index) where T : struct + public static ulong ExtractUInt64(Vector256 value, byte index) where T : struct { ThrowHelper.ThrowNotSupportedExceptionIfNonNumericType(); - return ExtractUlong(value, index); + return ExtractUInt64(value, index); } /// @@ -349,10 +349,10 @@ namespace System.Runtime.Intrinsics.X86 /// /// __m256i _mm256_insert_epi8 (__m256i a, __int8 i, const int index) /// - public static Vector256 InsertSbyte(Vector256 value, sbyte data, byte index) where T : struct + public static Vector256 InsertSByte(Vector256 value, sbyte data, byte index) where T : struct { ThrowHelper.ThrowNotSupportedExceptionIfNonNumericType(); - return InsertSbyte(value, data, index); + return InsertSByte(value, data, index); } /// /// __m256i _mm256_insert_epi8 (__m256i a, __int8 i, const int index) @@ -365,50 +365,50 @@ namespace System.Runtime.Intrinsics.X86 /// /// __m256i _mm256_insert_epi16 (__m256i a, __int16 i, const int index) /// - public static Vector256 InsertShort(Vector256 value, short data, byte index) where T : struct + public static Vector256 InsertInt16(Vector256 value, short data, byte index) where T : struct { ThrowHelper.ThrowNotSupportedExceptionIfNonNumericType(); - return InsertShort(value, data, index); + return InsertInt16(value, data, index); } /// /// __m256i _mm256_insert_epi16 (__m256i a, __int16 i, const int index) /// - public static Vector256 InsertUshort(Vector256 value, ushort data, byte index) where T : struct + public static Vector256 InsertUInt16(Vector256 value, ushort data, byte index) where T : struct { ThrowHelper.ThrowNotSupportedExceptionIfNonNumericType(); - return InsertUshort(value, data, index); + return InsertUInt16(value, data, index); } /// /// __m256i _mm256_insert_epi32 (__m256i a, __int32 i, const int index) /// - public static Vector256 InsertInt(Vector256 value, int data, byte index) where T : struct + public static Vector256 InsertInt32(Vector256 value, int data, byte index) where T : struct { ThrowHelper.ThrowNotSupportedExceptionIfNonNumericType(); - return InsertInt(value, data, index); + return InsertInt32(value, data, index); } /// /// __m256i _mm256_insert_epi32 (__m256i a, __int32 i, const int index) /// - public static Vector256 InsertUint(Vector256 value, uint data, byte index) where T : struct + public static Vector256 InsertUInt32(Vector256 value, uint data, byte index) where T : struct { ThrowHelper.ThrowNotSupportedExceptionIfNonNumericType(); - return InsertUint(value, data, index); + return InsertUInt32(value, data, index); } /// /// __m256i _mm256_insert_epi64 (__m256i a, __int64 i, const int index) /// - public static Vector256 InsertLong(Vector256 value, long data, byte index) where T : struct + public static Vector256 InsertInt64(Vector256 value, long data, byte index) where T : struct { ThrowHelper.ThrowNotSupportedExceptionIfNonNumericType(); - return InsertLong(value, data, index); + return InsertInt64(value, data, index); } /// /// __m256i _mm256_insert_epi64 (__m256i a, __int64 i, const int index) /// - public static Vector256 InsertUlong(Vector256 value, ulong data, byte index) where T : struct + public static Vector256 InsertUInt64(Vector256 value, ulong data, byte index) where T : struct { ThrowHelper.ThrowNotSupportedExceptionIfNonNumericType(); - return InsertUlong(value, data, index); + return InsertUInt64(value, data, index); } /// @@ -679,12 +679,14 @@ namespace System.Runtime.Intrinsics.X86 /// /// __m256 _mm256_permute2f128_ps (__m256 a, __m256 b, int imm8) - /// - public static Vector256 Permute2x128(Vector256 left, Vector256 right, byte control) => Permute2x128(left, right, control); - /// /// __m256d _mm256_permute2f128_pd (__m256d a, __m256d b, int imm8) + /// __m256i _mm256_permute2f128_si256 (__m256i a, __m256i b, int imm8) /// - public static Vector256 Permute2x128(Vector256 left, Vector256 right, byte control) => Permute2x128(left, right, control); + public static Vector256 Permute2x128(Vector256 left, Vector256 right, byte control) where T : struct + { + ThrowHelper.ThrowNotSupportedExceptionIfNonNumericType(); + return Permute2x128(left, right, control); + } /// /// __m128 _mm_permutevar_ps (__m128 a, __m128i b) @@ -817,10 +819,10 @@ namespace System.Runtime.Intrinsics.X86 /// __m256d _mm256_set_m128d (__m128d hi, __m128d lo) /// __m256i _mm256_set_m128i (__m128i hi, __m128i lo) /// - public static Vector256 SetHiLo(Vector128 hi, Vector128 lo) where T : struct + public static Vector256 SetHighLow(Vector128 hi, Vector128 lo) where T : struct { ThrowHelper.ThrowNotSupportedExceptionIfNonNumericType(); - return SetHiLo(hi, lo); + return SetHighLow(hi, lo); } /// diff --git a/src/mscorlib/src/System/Runtime/Intrinsics/X86/Avx2.PlatformNotSupported.cs b/src/mscorlib/src/System/Runtime/Intrinsics/X86/Avx2.PlatformNotSupported.cs index 97e1074..ce706d6 100644 --- a/src/mscorlib/src/System/Runtime/Intrinsics/X86/Avx2.PlatformNotSupported.cs +++ b/src/mscorlib/src/System/Runtime/Intrinsics/X86/Avx2.PlatformNotSupported.cs @@ -298,51 +298,51 @@ namespace System.Runtime.Intrinsics.X86 /// /// __m256i _mm256_cvtepi8_epi16 (__m128i a) /// - public static Vector256 ConvertToVector256Short(Vector128 value) { throw new PlatformNotSupportedException(); } + public static Vector256 ConvertToVector256Int16(Vector128 value) { throw new PlatformNotSupportedException(); } /// /// __m256i _mm256_cvtepu8_epi16 (__m128i a) /// - public static Vector256 ConvertToVector256UShort(Vector128 value) { throw new PlatformNotSupportedException(); } + public static Vector256 ConvertToVector256UInt16(Vector128 value) { throw new PlatformNotSupportedException(); } /// /// __m256i _mm256_cvtepi8_epi32 (__m128i a) /// - public static Vector256 ConvertToVector256Int(Vector128 value) { throw new PlatformNotSupportedException(); } + public static Vector256 ConvertToVector256Int32(Vector128 value) { throw new PlatformNotSupportedException(); } /// /// __m256i _mm256_cvtepi16_epi32 (__m128i a) /// - public static Vector256 ConvertToVector256Int(Vector128 value) { throw new PlatformNotSupportedException(); } + public static Vector256 ConvertToVector256Int32(Vector128 value) { throw new PlatformNotSupportedException(); } /// /// __m256i _mm256_cvtepu8_epi32 (__m128i a) /// - public static Vector256 ConvertToVector256UInt(Vector128 value) { throw new PlatformNotSupportedException(); } + public static Vector256 ConvertToVector256UInt32(Vector128 value) { throw new PlatformNotSupportedException(); } /// /// __m256i _mm256_cvtepu16_epi32 (__m128i a) /// - public static Vector256 ConvertToVector256UInt(Vector128 value) { throw new PlatformNotSupportedException(); } + public static Vector256 ConvertToVector256UInt32(Vector128 value) { throw new PlatformNotSupportedException(); } /// /// __m256i _mm256_cvtepi8_epi64 (__m128i a) /// - public static Vector256 ConvertToVector256Long(Vector128 value) { throw new PlatformNotSupportedException(); } + public static Vector256 ConvertToVector256Int64(Vector128 value) { throw new PlatformNotSupportedException(); } /// /// __m256i _mm256_cvtepi16_epi64 (__m128i a) /// - public static Vector256 ConvertToVector256Long(Vector128 value) { throw new PlatformNotSupportedException(); } + public static Vector256 ConvertToVector256Int64(Vector128 value) { throw new PlatformNotSupportedException(); } /// /// __m256i _mm256_cvtepi32_epi64 (__m128i a) /// - public static Vector256 ConvertToVector256Long(Vector128 value) { throw new PlatformNotSupportedException(); } + public static Vector256 ConvertToVector256Int64(Vector128 value) { throw new PlatformNotSupportedException(); } /// /// __m256i _mm256_cvtepu8_epi64 (__m128i a) /// - public static Vector256 ConvertToVector256ULong(Vector128 value) { throw new PlatformNotSupportedException(); } + public static Vector256 ConvertToVector256UInt64(Vector128 value) { throw new PlatformNotSupportedException(); } /// /// __m256i _mm256_cvtepu16_epi64 (__m128i a) /// - public static Vector256 ConvertToVector256ULong(Vector128 value) { throw new PlatformNotSupportedException(); } + public static Vector256 ConvertToVector256UInt64(Vector128 value) { throw new PlatformNotSupportedException(); } /// /// __m256i _mm256_cvtepu32_epi64 (__m128i a) /// - public static Vector256 ConvertToVector256ULong(Vector128 value) { throw new PlatformNotSupportedException(); } + public static Vector256 ConvertToVector256UInt64(Vector128 value) { throw new PlatformNotSupportedException(); } /// /// __m128i _mm256_extracti128_si256 (__m256i a, const int imm8) diff --git a/src/mscorlib/src/System/Runtime/Intrinsics/X86/Avx2.cs b/src/mscorlib/src/System/Runtime/Intrinsics/X86/Avx2.cs index aef7410..6b3b379 100644 --- a/src/mscorlib/src/System/Runtime/Intrinsics/X86/Avx2.cs +++ b/src/mscorlib/src/System/Runtime/Intrinsics/X86/Avx2.cs @@ -306,51 +306,51 @@ namespace System.Runtime.Intrinsics.X86 /// /// __m256i _mm256_cvtepi8_epi16 (__m128i a) /// - public static Vector256 ConvertToVector256Short(Vector128 value) => ConvertToVector256Short(value); + public static Vector256 ConvertToVector256Int16(Vector128 value) => ConvertToVector256Int16(value); /// /// __m256i _mm256_cvtepu8_epi16 (__m128i a) /// - public static Vector256 ConvertToVector256UShort(Vector128 value) => ConvertToVector256UShort(value); + public static Vector256 ConvertToVector256UInt16(Vector128 value) => ConvertToVector256UInt16(value); /// /// __m256i _mm256_cvtepi8_epi32 (__m128i a) /// - public static Vector256 ConvertToVector256Int(Vector128 value) => ConvertToVector256Int(value); + public static Vector256 ConvertToVector256Int32(Vector128 value) => ConvertToVector256Int32(value); /// /// __m256i _mm256_cvtepi16_epi32 (__m128i a) /// - public static Vector256 ConvertToVector256Int(Vector128 value) => ConvertToVector256Int(value); + public static Vector256 ConvertToVector256Int32(Vector128 value) => ConvertToVector256Int32(value); /// /// __m256i _mm256_cvtepu8_epi32 (__m128i a) /// - public static Vector256 ConvertToVector256UInt(Vector128 value) => ConvertToVector256UInt(value); + public static Vector256 ConvertToVector256UInt32(Vector128 value) => ConvertToVector256UInt32(value); /// /// __m256i _mm256_cvtepu16_epi32 (__m128i a) /// - public static Vector256 ConvertToVector256UInt(Vector128 value) => ConvertToVector256UInt(value); + public static Vector256 ConvertToVector256UInt32(Vector128 value) => ConvertToVector256UInt32(value); /// /// __m256i _mm256_cvtepi8_epi64 (__m128i a) /// - public static Vector256 ConvertToVector256Long(Vector128 value) => ConvertToVector256Long(value); + public static Vector256 ConvertToVector256Int64(Vector128 value) => ConvertToVector256Int64(value); /// /// __m256i _mm256_cvtepi16_epi64 (__m128i a) /// - public static Vector256 ConvertToVector256Long(Vector128 value) => ConvertToVector256Long(value); + public static Vector256 ConvertToVector256Int64(Vector128 value) => ConvertToVector256Int64(value); /// /// __m256i _mm256_cvtepi32_epi64 (__m128i a) /// - public static Vector256 ConvertToVector256Long(Vector128 value) => ConvertToVector256Long(value); + public static Vector256 ConvertToVector256Int64(Vector128 value) => ConvertToVector256Int64(value); /// /// __m256i _mm256_cvtepu8_epi64 (__m128i a) /// - public static Vector256 ConvertToVector256ULong(Vector128 value) => ConvertToVector256ULong(value); + public static Vector256 ConvertToVector256UInt64(Vector128 value) => ConvertToVector256UInt64(value); /// /// __m256i _mm256_cvtepu16_epi64 (__m128i a) /// - public static Vector256 ConvertToVector256ULong(Vector128 value) => ConvertToVector256ULong(value); + public static Vector256 ConvertToVector256UInt64(Vector128 value) => ConvertToVector256UInt64(value); /// /// __m256i _mm256_cvtepu32_epi64 (__m128i a) /// - public static Vector256 ConvertToVector256ULong(Vector128 value) => ConvertToVector256ULong(value); + public static Vector256 ConvertToVector256UInt64(Vector128 value) => ConvertToVector256UInt64(value); /// /// __m128i _mm256_extracti128_si256 (__m256i a, const int imm8) diff --git a/src/mscorlib/src/System/Runtime/Intrinsics/X86/Sse.PlatformNotSupported.cs b/src/mscorlib/src/System/Runtime/Intrinsics/X86/Sse.PlatformNotSupported.cs index fa91c50..d212f4f 100644 --- a/src/mscorlib/src/System/Runtime/Intrinsics/X86/Sse.PlatformNotSupported.cs +++ b/src/mscorlib/src/System/Runtime/Intrinsics/X86/Sse.PlatformNotSupported.cs @@ -143,7 +143,7 @@ namespace System.Runtime.Intrinsics.X86 /// /// __m128 _mm_rsqrt_ps (__m128 a) /// - public static Vector128 ReciprocalSquareRoot(Vector128 value) { throw new PlatformNotSupportedException(); } + public static Vector128 ReciprocalSqrt(Vector128 value) { throw new PlatformNotSupportedException(); } /// /// __m128 _mm_set_ps (float e3, float e2, float e1, float e0) diff --git a/src/mscorlib/src/System/Runtime/Intrinsics/X86/Sse.cs b/src/mscorlib/src/System/Runtime/Intrinsics/X86/Sse.cs index 424ffc5..3a7f3dc 100644 --- a/src/mscorlib/src/System/Runtime/Intrinsics/X86/Sse.cs +++ b/src/mscorlib/src/System/Runtime/Intrinsics/X86/Sse.cs @@ -143,7 +143,7 @@ namespace System.Runtime.Intrinsics.X86 /// /// __m128 _mm_rsqrt_ps (__m128 a) /// - public static Vector128 ReciprocalSquareRoot(Vector128 value) => ReciprocalSquareRoot(value); + public static Vector128 ReciprocalSqrt(Vector128 value) => ReciprocalSqrt(value); /// /// __m128 _mm_set_ps (float e3, float e2, float e1, float e0) diff --git a/src/mscorlib/src/System/Runtime/Intrinsics/X86/Sse2.PlatformNotSupported.cs b/src/mscorlib/src/System/Runtime/Intrinsics/X86/Sse2.PlatformNotSupported.cs index 7810f6b..c66c608 100644 --- a/src/mscorlib/src/System/Runtime/Intrinsics/X86/Sse2.PlatformNotSupported.cs +++ b/src/mscorlib/src/System/Runtime/Intrinsics/X86/Sse2.PlatformNotSupported.cs @@ -263,36 +263,36 @@ namespace System.Runtime.Intrinsics.X86 /// /// __m128i _mm_cvtps_epi32 (__m128 a) /// - public static Vector128 ConvertToInt(Vector128 value) { throw new PlatformNotSupportedException(); } + public static Vector128 ConvertToVector128Int32(Vector128 value) { throw new PlatformNotSupportedException(); } /// /// __m128i _mm_cvtpd_epi32 (__m128d a) /// - public static Vector128 ConvertToInt(Vector128 value) { throw new PlatformNotSupportedException(); } + public static Vector128 ConvertToVector128Int32(Vector128 value) { throw new PlatformNotSupportedException(); } /// /// __m128 _mm_cvtepi32_ps (__m128i a) /// - public static Vector128 ConvertToFloat(Vector128 value) { throw new PlatformNotSupportedException(); } + public static Vector128 ConvertToVector128Single(Vector128 value) { throw new PlatformNotSupportedException(); } /// /// __m128 _mm_cvtpd_ps (__m128d a) /// - public static Vector128 ConvertToFloat(Vector128 value) { throw new PlatformNotSupportedException(); } + public static Vector128 ConvertToVector128Single(Vector128 value) { throw new PlatformNotSupportedException(); } /// /// __m128d _mm_cvtepi32_pd (__m128i a) /// - public static Vector128 ConvertToDouble(Vector128 value) { throw new PlatformNotSupportedException(); } + public static Vector128 ConvertToVector128Double(Vector128 value) { throw new PlatformNotSupportedException(); } /// /// __m128d _mm_cvtps_pd (__m128 a) /// - public static Vector128 ConvertToDouble(Vector128 value) { throw new PlatformNotSupportedException(); } + public static Vector128 ConvertToVector128Double(Vector128 value) { throw new PlatformNotSupportedException(); } /// /// __m128i _mm_cvttps_epi32 (__m128 a) /// - public static Vector128 ConvertToIntWithTruncation(Vector128 value) { throw new PlatformNotSupportedException(); } + public static Vector128 ConvertToVector128Int32WithTruncation(Vector128 value) { throw new PlatformNotSupportedException(); } /// /// __m128i _mm_cvttpd_epi32 (__m128d a) /// - public static Vector128 ConvertToIntWithTruncation(Vector128 value) { throw new PlatformNotSupportedException(); } + public static Vector128 ConvertToVector128Int32WithTruncation(Vector128 value) { throw new PlatformNotSupportedException(); } /// /// __m128d _mm_div_pd (__m128d a, __m128d b) @@ -302,20 +302,20 @@ namespace System.Runtime.Intrinsics.X86 /// /// int _mm_extract_epi16 (__m128i a, int immediate) /// - public static short ExtractShort(Vector128 value, byte index) where T : struct { throw new PlatformNotSupportedException(); } + public static short ExtractInt16(Vector128 value, byte index) where T : struct { throw new PlatformNotSupportedException(); } /// /// int _mm_extract_epi16 (__m128i a, int immediate) /// - public static ushort ExtractUshort(Vector128 value, byte index) where T : struct { throw new PlatformNotSupportedException(); } + public static ushort ExtractUInt16(Vector128 value, byte index) where T : struct { throw new PlatformNotSupportedException(); } /// /// __m128i _mm_insert_epi16 (__m128i a, int i, int immediate) /// - public static Vector128 InsertShort(Vector128 value, short data, byte index) where T : struct { throw new PlatformNotSupportedException(); } + public static Vector128 InsertInt16(Vector128 value, short data, byte index) where T : struct { throw new PlatformNotSupportedException(); } /// /// __m128i _mm_insert_epi16 (__m128i a, int i, int immediate) /// - public static Vector128 InsertUshort(Vector128 value, ushort data, byte index) where T : struct { throw new PlatformNotSupportedException(); } + public static Vector128 InsertUInt16(Vector128 value, ushort data, byte index) where T : struct { throw new PlatformNotSupportedException(); } /// /// __m128i _mm_loadu_si128 (__m128i const* mem_address) @@ -447,11 +447,11 @@ namespace System.Runtime.Intrinsics.X86 /// /// __m128i _mm_mulhi_epi16 (__m128i a, __m128i b) /// - public static Vector128 MultiplyHi(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + public static Vector128 MultiplyHigh(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } /// /// __m128i _mm_mulhi_epu16 (__m128i a, __m128i b) /// - public static Vector128 MultiplyHi(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + public static Vector128 MultiplyHigh(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } /// /// __m128i _mm_madd_epi16 (__m128i a, __m128i b) diff --git a/src/mscorlib/src/System/Runtime/Intrinsics/X86/Sse2.cs b/src/mscorlib/src/System/Runtime/Intrinsics/X86/Sse2.cs index a586a35..48000ca 100644 --- a/src/mscorlib/src/System/Runtime/Intrinsics/X86/Sse2.cs +++ b/src/mscorlib/src/System/Runtime/Intrinsics/X86/Sse2.cs @@ -263,36 +263,36 @@ namespace System.Runtime.Intrinsics.X86 /// /// __m128i _mm_cvtps_epi32 (__m128 a) /// - public static Vector128 ConvertToInt(Vector128 value) => ConvertToInt(value); + public static Vector128 ConvertToVector128Int32(Vector128 value) => ConvertToVector128Int32(value); /// /// __m128i _mm_cvtpd_epi32 (__m128d a) /// - public static Vector128 ConvertToInt(Vector128 value) => ConvertToInt(value); + public static Vector128 ConvertToVector128Int32(Vector128 value) => ConvertToVector128Int32(value); /// /// __m128 _mm_cvtepi32_ps (__m128i a) /// - public static Vector128 ConvertToFloat(Vector128 value) => ConvertToFloat(value); + public static Vector128 ConvertToVector128Single(Vector128 value) => ConvertToVector128Single(value); /// /// __m128 _mm_cvtpd_ps (__m128d a) /// - public static Vector128 ConvertToFloat(Vector128 value) => ConvertToFloat(value); + public static Vector128 ConvertToVector128Single(Vector128 value) => ConvertToVector128Single(value); /// /// __m128d _mm_cvtepi32_pd (__m128i a) /// - public static Vector128 ConvertToDouble(Vector128 value) => ConvertToDouble(value); + public static Vector128 ConvertToVector128Double(Vector128 value) => ConvertToVector128Double(value); /// /// __m128d _mm_cvtps_pd (__m128 a) /// - public static Vector128 ConvertToDouble(Vector128 value) => ConvertToDouble(value); + public static Vector128 ConvertToVector128Double(Vector128 value) => ConvertToVector128Double(value); /// /// __m128i _mm_cvttps_epi32 (__m128 a) /// - public static Vector128 ConvertToIntWithTruncation(Vector128 value) => ConvertToIntWithTruncation(value); + public static Vector128 ConvertToVector128Int32WithTruncation(Vector128 value) => ConvertToVector128Int32WithTruncation(value); /// /// __m128i _mm_cvttpd_epi32 (__m128d a) /// - public static Vector128 ConvertToIntWithTruncation(Vector128 value) => ConvertToIntWithTruncation(value); + public static Vector128 ConvertToVector128Int32WithTruncation(Vector128 value) => ConvertToVector128Int32WithTruncation(value); /// /// __m128d _mm_div_pd (__m128d a, __m128d b) @@ -302,35 +302,35 @@ namespace System.Runtime.Intrinsics.X86 /// /// int _mm_extract_epi16 (__m128i a, int immediate) /// - public static short ExtractShort(Vector128 value, byte index) where T : struct + public static short ExtractInt16(Vector128 value, byte index) where T : struct { ThrowHelper.ThrowNotSupportedExceptionIfNonNumericType(); - return ExtractShort(value, index); + return ExtractInt16(value, index); } /// /// int _mm_extract_epi16 (__m128i a, int immediate) /// - public static ushort ExtractUshort(Vector128 value, byte index) where T : struct + public static ushort ExtractUInt16(Vector128 value, byte index) where T : struct { ThrowHelper.ThrowNotSupportedExceptionIfNonNumericType(); - return ExtractUshort(value, index); + return ExtractUInt16(value, index); } /// /// __m128i _mm_insert_epi16 (__m128i a, int i, int immediate) /// - public static Vector128 InsertShort(Vector128 value, short data, byte index) where T : struct + public static Vector128 InsertInt16(Vector128 value, short data, byte index) where T : struct { ThrowHelper.ThrowNotSupportedExceptionIfNonNumericType(); - return InsertShort(value, data, index); + return InsertInt16(value, data, index); } /// /// __m128i _mm_insert_epi16 (__m128i a, int i, int immediate) /// - public static Vector128 InsertUshort(Vector128 value, ushort data, byte index) where T : struct + public static Vector128 InsertUInt16(Vector128 value, ushort data, byte index) where T : struct { ThrowHelper.ThrowNotSupportedExceptionIfNonNumericType(); - return InsertUshort(value, data, index); + return InsertUInt16(value, data, index); } /// @@ -463,11 +463,11 @@ namespace System.Runtime.Intrinsics.X86 /// /// __m128i _mm_mulhi_epi16 (__m128i a, __m128i b) /// - public static Vector128 MultiplyHi(Vector128 left, Vector128 right) => MultiplyHi(left, right); + public static Vector128 MultiplyHigh(Vector128 left, Vector128 right) => MultiplyHigh(left, right); /// /// __m128i _mm_mulhi_epu16 (__m128i a, __m128i b) /// - public static Vector128 MultiplyHi(Vector128 left, Vector128 right) => MultiplyHi(left, right); + public static Vector128 MultiplyHigh(Vector128 left, Vector128 right) => MultiplyHigh(left, right); /// /// __m128i _mm_madd_epi16 (__m128i a, __m128i b) diff --git a/src/mscorlib/src/System/Runtime/Intrinsics/X86/Sse41.PlatformNotSupported.cs b/src/mscorlib/src/System/Runtime/Intrinsics/X86/Sse41.PlatformNotSupported.cs index 3ca756b..d843f9a 100644 --- a/src/mscorlib/src/System/Runtime/Intrinsics/X86/Sse41.PlatformNotSupported.cs +++ b/src/mscorlib/src/System/Runtime/Intrinsics/X86/Sse41.PlatformNotSupported.cs @@ -73,51 +73,51 @@ namespace System.Runtime.Intrinsics.X86 /// /// __m128i _mm_cvtepi8_epi16 (__m128i a) /// - public static Vector128 ConvertToShort(Vector128 value) { throw new PlatformNotSupportedException(); } + public static Vector128 ConvertToVector128Int16(Vector128 value) { throw new PlatformNotSupportedException(); } /// /// __m128i _mm_cvtepu8_epi16 (__m128i a) /// - public static Vector128 ConvertToShort(Vector128 value) { throw new PlatformNotSupportedException(); } + public static Vector128 ConvertToVector128Int16(Vector128 value) { throw new PlatformNotSupportedException(); } /// /// __m128i _mm_cvtepi8_epi32 (__m128i a) /// - public static Vector128 ConvertToInt(Vector128 value) { throw new PlatformNotSupportedException(); } + public static Vector128 ConvertToVector128Int32(Vector128 value) { throw new PlatformNotSupportedException(); } /// /// __m128i _mm_cvtepu8_epi32 (__m128i a) /// - public static Vector128 ConvertToInt(Vector128 value) { throw new PlatformNotSupportedException(); } + public static Vector128 ConvertToVector128Int32(Vector128 value) { throw new PlatformNotSupportedException(); } /// /// __m128i _mm_cvtepi16_epi32 (__m128i a) /// - public static Vector128 ConvertToInt(Vector128 value) { throw new PlatformNotSupportedException(); } + public static Vector128 ConvertToVector128Int32(Vector128 value) { throw new PlatformNotSupportedException(); } /// /// __m128i _mm_cvtepu16_epi32 (__m128i a) /// - public static Vector128 ConvertToInt(Vector128 value) { throw new PlatformNotSupportedException(); } + public static Vector128 ConvertToVector128Int32(Vector128 value) { throw new PlatformNotSupportedException(); } /// /// __m128i _mm_cvtepi8_epi64 (__m128i a) /// - public static Vector128 ConvertToLong(Vector128 value) { throw new PlatformNotSupportedException(); } + public static Vector128 ConvertToVector128Int64(Vector128 value) { throw new PlatformNotSupportedException(); } /// /// __m128i _mm_cvtepu8_epi64 (__m128i a) /// - public static Vector128 ConvertToLong(Vector128 value) { throw new PlatformNotSupportedException(); } + public static Vector128 ConvertToVector128Int64(Vector128 value) { throw new PlatformNotSupportedException(); } /// /// __m128i _mm_cvtepi16_epi64 (__m128i a) /// - public static Vector128 ConvertToLong(Vector128 value) { throw new PlatformNotSupportedException(); } + public static Vector128 ConvertToVector128Int64(Vector128 value) { throw new PlatformNotSupportedException(); } /// /// __m128i _mm_cvtepu16_epi64 (__m128i a) /// - public static Vector128 ConvertToLong(Vector128 value) { throw new PlatformNotSupportedException(); } + public static Vector128 ConvertToVector128Int64(Vector128 value) { throw new PlatformNotSupportedException(); } /// /// __m128i _mm_cvtepi32_epi64 (__m128i a) /// - public static Vector128 ConvertToLong(Vector128 value) { throw new PlatformNotSupportedException(); } + public static Vector128 ConvertToVector128Int64(Vector128 value) { throw new PlatformNotSupportedException(); } /// /// __m128i _mm_cvtepu32_epi64 (__m128i a) /// - public static Vector128 ConvertToLong(Vector128 value) { throw new PlatformNotSupportedException(); } + public static Vector128 ConvertToVector128Int64(Vector128 value) { throw new PlatformNotSupportedException(); } /// /// __m128 _mm_dp_ps (__m128 a, __m128 b, const int imm8) @@ -131,7 +131,7 @@ namespace System.Runtime.Intrinsics.X86 /// /// int _mm_extract_epi8 (__m128i a, const int imm8) /// - public static sbyte ExtractSbyte(Vector128 value, byte index) where T : struct { throw new PlatformNotSupportedException(); } + public static sbyte ExtractSByte(Vector128 value, byte index) where T : struct { throw new PlatformNotSupportedException(); } /// /// int _mm_extract_epi8 (__m128i a, const int imm8) /// @@ -140,27 +140,27 @@ namespace System.Runtime.Intrinsics.X86 /// /// int _mm_extract_epi32 (__m128i a, const int imm8) /// - public static int ExtractInt(Vector128 value, byte index) where T : struct { throw new PlatformNotSupportedException(); } + public static int ExtractInt32(Vector128 value, byte index) where T : struct { throw new PlatformNotSupportedException(); } /// /// int _mm_extract_epi32 (__m128i a, const int imm8) /// - public static uint ExtractUint(Vector128 value, byte index) where T : struct { throw new PlatformNotSupportedException(); } + public static uint ExtractUInt32(Vector128 value, byte index) where T : struct { throw new PlatformNotSupportedException(); } /// /// __int64 _mm_extract_epi64 (__m128i a, const int imm8) /// - public static long ExtractLong(Vector128 value, byte index) where T : struct { throw new PlatformNotSupportedException(); } + public static long ExtractInt64(Vector128 value, byte index) where T : struct { throw new PlatformNotSupportedException(); } /// /// __int64 _mm_extract_epi64 (__m128i a, const int imm8) /// - public static ulong ExtractUlong(Vector128 value, byte index) where T : struct { throw new PlatformNotSupportedException(); } + public static ulong ExtractUInt64(Vector128 value, byte index) where T : struct { throw new PlatformNotSupportedException(); } /// /// int _mm_extract_ps (__m128 a, const int imm8) /// - public static float ExtractFloat(Vector128 value, byte index) where T : struct { throw new PlatformNotSupportedException(); } + public static float ExtractSingle(Vector128 value, byte index) where T : struct { throw new PlatformNotSupportedException(); } /// /// __m128 _mm_floor_ps (__m128 a) @@ -174,7 +174,7 @@ namespace System.Runtime.Intrinsics.X86 /// /// __m128i _mm_insert_epi8 (__m128i a, int i, const int imm8) /// - public static Vector128 InsertSbyte(Vector128 value, sbyte data, byte index) where T : struct { throw new PlatformNotSupportedException(); } + public static Vector128 InsertSByte(Vector128 value, sbyte data, byte index) where T : struct { throw new PlatformNotSupportedException(); } /// /// __m128i _mm_insert_epi8 (__m128i a, int i, const int imm8) @@ -184,27 +184,27 @@ namespace System.Runtime.Intrinsics.X86 /// /// __m128i _mm_insert_epi32 (__m128i a, int i, const int imm8) /// - public static Vector128 InsertInt(Vector128 value, int data, byte index) where T : struct { throw new PlatformNotSupportedException(); } + public static Vector128 InsertInt32(Vector128 value, int data, byte index) where T : struct { throw new PlatformNotSupportedException(); } /// /// __m128i _mm_insert_epi32 (__m128i a, int i, const int imm8) /// - public static Vector128 InsertUint(Vector128 value, uint data, byte index) where T : struct { throw new PlatformNotSupportedException(); } + public static Vector128 InsertUInt32(Vector128 value, uint data, byte index) where T : struct { throw new PlatformNotSupportedException(); } /// /// __m128i _mm_insert_epi64 (__m128i a, __int64 i, const int imm8) /// - public static Vector128 InsertLong(Vector128 value, long data, byte index) where T : struct { throw new PlatformNotSupportedException(); } + public static Vector128 InsertInt64(Vector128 value, long data, byte index) where T : struct { throw new PlatformNotSupportedException(); } /// /// __m128i _mm_insert_epi64 (__m128i a, __int64 i, const int imm8) /// - public static Vector128 InsertUlong(Vector128 value, ulong data, byte index) where T : struct { throw new PlatformNotSupportedException(); } + public static Vector128 InsertUInt64(Vector128 value, ulong data, byte index) where T : struct { throw new PlatformNotSupportedException(); } /// /// __m128 _mm_insert_ps (__m128 a, __m128 b, const int imm8) /// - public static Vector128 InsertFloat(Vector128 value, float data, byte index) where T : struct { throw new PlatformNotSupportedException(); } + public static Vector128 InsertSingle(Vector128 value, float data, byte index) where T : struct { throw new PlatformNotSupportedException(); } /// /// __m128i _mm_max_epi8 (__m128i a, __m128i b) diff --git a/src/mscorlib/src/System/Runtime/Intrinsics/X86/Sse41.cs b/src/mscorlib/src/System/Runtime/Intrinsics/X86/Sse41.cs index 675a750..6a206c8 100644 --- a/src/mscorlib/src/System/Runtime/Intrinsics/X86/Sse41.cs +++ b/src/mscorlib/src/System/Runtime/Intrinsics/X86/Sse41.cs @@ -73,51 +73,51 @@ namespace System.Runtime.Intrinsics.X86 /// /// __m128i _mm_cvtepi8_epi16 (__m128i a) /// - public static Vector128 ConvertToShort(Vector128 value) => ConvertToShort(value); + public static Vector128 ConvertToVector128Int16(Vector128 value) => ConvertToVector128Int16(value); /// /// __m128i _mm_cvtepu8_epi16 (__m128i a) /// - public static Vector128 ConvertToShort(Vector128 value) => ConvertToShort(value); + public static Vector128 ConvertToVector128Int16(Vector128 value) => ConvertToVector128Int16(value); /// /// __m128i _mm_cvtepi8_epi32 (__m128i a) /// - public static Vector128 ConvertToInt(Vector128 value) => ConvertToInt(value); + public static Vector128 ConvertToVector128Int32(Vector128 value) => ConvertToVector128Int32(value); /// /// __m128i _mm_cvtepu8_epi32 (__m128i a) /// - public static Vector128 ConvertToInt(Vector128 value) => ConvertToInt(value); + public static Vector128 ConvertToVector128Int32(Vector128 value) => ConvertToVector128Int32(value); /// /// __m128i _mm_cvtepi16_epi32 (__m128i a) /// - public static Vector128 ConvertToInt(Vector128 value) => ConvertToInt(value); + public static Vector128 ConvertToVector128Int32(Vector128 value) => ConvertToVector128Int32(value); /// /// __m128i _mm_cvtepu16_epi32 (__m128i a) /// - public static Vector128 ConvertToInt(Vector128 value) => ConvertToInt(value); + public static Vector128 ConvertToVector128Int32(Vector128 value) => ConvertToVector128Int32(value); /// /// __m128i _mm_cvtepi8_epi64 (__m128i a) /// - public static Vector128 ConvertToLong(Vector128 value) => ConvertToLong(value); + public static Vector128 ConvertToVector128Int64(Vector128 value) => ConvertToVector128Int64(value); /// /// __m128i _mm_cvtepu8_epi64 (__m128i a) /// - public static Vector128 ConvertToLong(Vector128 value) => ConvertToLong(value); + public static Vector128 ConvertToVector128Int64(Vector128 value) => ConvertToVector128Int64(value); /// /// __m128i _mm_cvtepi16_epi64 (__m128i a) /// - public static Vector128 ConvertToLong(Vector128 value) => ConvertToLong(value); + public static Vector128 ConvertToVector128Int64(Vector128 value) => ConvertToVector128Int64(value); /// /// __m128i _mm_cvtepu16_epi64 (__m128i a) /// - public static Vector128 ConvertToLong(Vector128 value) => ConvertToLong(value); + public static Vector128 ConvertToVector128Int64(Vector128 value) => ConvertToVector128Int64(value); /// /// __m128i _mm_cvtepi32_epi64 (__m128i a) /// - public static Vector128 ConvertToLong(Vector128 value) => ConvertToLong(value); + public static Vector128 ConvertToVector128Int64(Vector128 value) => ConvertToVector128Int64(value); /// /// __m128i _mm_cvtepu32_epi64 (__m128i a) /// - public static Vector128 ConvertToLong(Vector128 value) => ConvertToLong(value); + public static Vector128 ConvertToVector128Int64(Vector128 value) => ConvertToVector128Int64(value); /// /// __m128 _mm_dp_ps (__m128 a, __m128 b, const int imm8) @@ -131,10 +131,10 @@ namespace System.Runtime.Intrinsics.X86 /// /// int _mm_extract_epi8 (__m128i a, const int imm8) /// - public static sbyte ExtractSbyte(Vector128 value, byte index) where T : struct + public static sbyte ExtractSByte(Vector128 value, byte index) where T : struct { ThrowHelper.ThrowNotSupportedExceptionIfNonNumericType(); - return ExtractSbyte(value, index); + return ExtractSByte(value, index); } /// /// int _mm_extract_epi8 (__m128i a, const int imm8) @@ -148,46 +148,46 @@ namespace System.Runtime.Intrinsics.X86 /// /// int _mm_extract_epi32 (__m128i a, const int imm8) /// - public static int ExtractInt(Vector128 value, byte index) where T : struct + public static int ExtractInt32(Vector128 value, byte index) where T : struct { ThrowHelper.ThrowNotSupportedExceptionIfNonNumericType(); - return ExtractInt(value, index); + return ExtractInt32(value, index); } /// /// int _mm_extract_epi32 (__m128i a, const int imm8) /// - public static uint ExtractUint(Vector128 value, byte index) where T : struct + public static uint ExtractUInt32(Vector128 value, byte index) where T : struct { ThrowHelper.ThrowNotSupportedExceptionIfNonNumericType(); - return ExtractUint(value, index); + return ExtractUInt32(value, index); } /// /// __int64 _mm_extract_epi64 (__m128i a, const int imm8) /// - public static long ExtractLong(Vector128 value, byte index) where T : struct + public static long ExtractInt64(Vector128 value, byte index) where T : struct { ThrowHelper.ThrowNotSupportedExceptionIfNonNumericType(); - return ExtractLong(value, index); + return ExtractInt64(value, index); } /// /// __int64 _mm_extract_epi64 (__m128i a, const int imm8) /// - public static ulong ExtractUlong(Vector128 value, byte index) where T : struct + public static ulong ExtractUInt64(Vector128 value, byte index) where T : struct { ThrowHelper.ThrowNotSupportedExceptionIfNonNumericType(); - return ExtractUlong(value, index); + return ExtractUInt64(value, index); } /// /// int _mm_extract_ps (__m128 a, const int imm8) /// - public static float ExtractFloat(Vector128 value, byte index) where T : struct + public static float ExtractSingle(Vector128 value, byte index) where T : struct { ThrowHelper.ThrowNotSupportedExceptionIfNonNumericType(); - return ExtractFloat(value, index); + return ExtractSingle(value, index); } /// @@ -202,10 +202,10 @@ namespace System.Runtime.Intrinsics.X86 /// /// __m128i _mm_insert_epi8 (__m128i a, int i, const int imm8) /// - public static Vector128 InsertSbyte(Vector128 value, sbyte data, byte index) where T : struct + public static Vector128 InsertSByte(Vector128 value, sbyte data, byte index) where T : struct { ThrowHelper.ThrowNotSupportedExceptionIfNonNumericType(); - return InsertSbyte(value, data, index); + return InsertSByte(value, data, index); } /// @@ -220,46 +220,46 @@ namespace System.Runtime.Intrinsics.X86 /// /// __m128i _mm_insert_epi32 (__m128i a, int i, const int imm8) /// - public static Vector128 InsertInt(Vector128 value, int data, byte index) where T : struct + public static Vector128 InsertInt32(Vector128 value, int data, byte index) where T : struct { ThrowHelper.ThrowNotSupportedExceptionIfNonNumericType(); - return InsertInt(value, data, index); + return InsertInt32(value, data, index); } /// /// __m128i _mm_insert_epi32 (__m128i a, int i, const int imm8) /// - public static Vector128 InsertUint(Vector128 value, uint data, byte index) where T : struct + public static Vector128 InsertUInt32(Vector128 value, uint data, byte index) where T : struct { ThrowHelper.ThrowNotSupportedExceptionIfNonNumericType(); - return InsertUint(value, data, index); + return InsertUInt32(value, data, index); } /// /// __m128i _mm_insert_epi64 (__m128i a, __int64 i, const int imm8) /// - public static Vector128 InsertLong(Vector128 value, long data, byte index) where T : struct + public static Vector128 InsertInt64(Vector128 value, long data, byte index) where T : struct { ThrowHelper.ThrowNotSupportedExceptionIfNonNumericType(); - return InsertLong(value, data, index); + return InsertInt64(value, data, index); } /// /// __m128i _mm_insert_epi64 (__m128i a, __int64 i, const int imm8) /// - public static Vector128 InsertUlong(Vector128 value, ulong data, byte index) where T : struct + public static Vector128 InsertUInt64(Vector128 value, ulong data, byte index) where T : struct { ThrowHelper.ThrowNotSupportedExceptionIfNonNumericType(); - return InsertUlong(value, data, index); + return InsertUInt64(value, data, index); } /// /// __m128 _mm_insert_ps (__m128 a, __m128 b, const int imm8) /// - public static Vector128 InsertFloat(Vector128 value, float data, byte index) where T : struct + public static Vector128 InsertSingle(Vector128 value, float data, byte index) where T : struct { ThrowHelper.ThrowNotSupportedExceptionIfNonNumericType(); - return InsertFloat(value, data, index); + return InsertSingle(value, data, index); } /// -- 2.7.4