diff options
author | Fei Peng <fei.peng@intel.com> | 2018-09-14 02:52:42 +0300 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2018-09-18 02:01:31 +0300 |
commit | 282eca70f13668aa11072a43d0b6f3bbbac45636 (patch) | |
tree | 2d867d48b7108ec7bb2c13f938baafd92ac7de88 | |
parent | 4f10c2ad36c8ef2fe82366c6dc3b5ea88c1f3543 (diff) |
Fix inconsistent Intel hardware intrinsic APIs
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
6 files changed, 10 insertions, 10 deletions
diff --git a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Avx2.PlatformNotSupported.cs b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Avx2.PlatformNotSupported.cs index a4b5680c7..79c30d37a 100644 --- a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Avx2.PlatformNotSupported.cs +++ b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Avx2.PlatformNotSupported.cs @@ -1787,7 +1787,7 @@ namespace System.Runtime.Intrinsics.X86 /// __m256i _mm256_sad_epu8 (__m256i a, __m256i b) /// VPSADBW ymm, ymm, ymm/m256 /// </summary> - public static Vector256<ulong> SumAbsoluteDifferences(Vector256<byte> left, Vector256<byte> right) { throw new PlatformNotSupportedException(); } + public static Vector256<ushort> SumAbsoluteDifferences(Vector256<byte> left, Vector256<byte> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_unpackhi_epi8 (__m256i a, __m256i b) diff --git a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Avx2.cs b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Avx2.cs index 2e949dc83..90c5b315b 100644 --- a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Avx2.cs +++ b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Avx2.cs @@ -2513,7 +2513,7 @@ namespace System.Runtime.Intrinsics.X86 /// __m256i _mm256_sad_epu8 (__m256i a, __m256i b) /// VPSADBW ymm, ymm, ymm/m256 /// </summary> - public static Vector256<ulong> SumAbsoluteDifferences(Vector256<byte> left, Vector256<byte> right) => SumAbsoluteDifferences(left, right); + public static Vector256<ushort> SumAbsoluteDifferences(Vector256<byte> left, Vector256<byte> right) => SumAbsoluteDifferences(left, right); /// <summary> /// __m256i _mm256_unpackhi_epi8 (__m256i a, __m256i b) diff --git a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Popcnt.PlatformNotSupported.cs b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Popcnt.PlatformNotSupported.cs index f91b1aecf..bf045bd1f 100644 --- a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Popcnt.PlatformNotSupported.cs +++ b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Popcnt.PlatformNotSupported.cs @@ -20,11 +20,11 @@ namespace System.Runtime.Intrinsics.X86 /// int _mm_popcnt_u32 (unsigned int a) /// POPCNT reg, reg/m32 /// </summary> - public static int PopCount(uint value) { throw new PlatformNotSupportedException(); } + public static uint PopCount(uint value) { throw new PlatformNotSupportedException(); } /// <summary> /// __int64 _mm_popcnt_u64 (unsigned __int64 a) /// POPCNT reg64, reg/m64 /// </summary> - public static long PopCount(ulong value) { throw new PlatformNotSupportedException(); } + public static ulong PopCount(ulong value) { throw new PlatformNotSupportedException(); } } } diff --git a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Popcnt.cs b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Popcnt.cs index 057140ed0..ba73eb234 100644 --- a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Popcnt.cs +++ b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Popcnt.cs @@ -21,11 +21,11 @@ namespace System.Runtime.Intrinsics.X86 /// int _mm_popcnt_u32 (unsigned int a) /// POPCNT reg, reg/m32 /// </summary> - public static int PopCount(uint value) => PopCount(value); + public static uint PopCount(uint value) => PopCount(value); /// <summary> /// __int64 _mm_popcnt_u64 (unsigned __int64 a) /// POPCNT reg, reg/m64 /// </summary> - public static long PopCount(ulong value) => PopCount(value); + public static ulong PopCount(ulong value) => PopCount(value); } } diff --git a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Sse2.PlatformNotSupported.cs b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Sse2.PlatformNotSupported.cs index 8a706ec9b..0f9b1959b 100644 --- a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Sse2.PlatformNotSupported.cs +++ b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Sse2.PlatformNotSupported.cs @@ -893,7 +893,7 @@ namespace System.Runtime.Intrinsics.X86 /// __m128i _mm_madd_epi16 (__m128i a, __m128i b) /// PMADDWD xmm, xmm/m128 /// </summary> - public static Vector128<int> MultiplyHorizontalAdd(Vector128<short> left, Vector128<short> right) { throw new PlatformNotSupportedException(); } + public static Vector128<int> MultiplyAddAdjacent(Vector128<short> left, Vector128<short> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm_mullo_epi16 (__m128i a, __m128i b) @@ -1074,7 +1074,7 @@ namespace System.Runtime.Intrinsics.X86 /// __m128i _mm_sad_epu8 (__m128i a, __m128i b) /// PSADBW xmm, xmm/m128 /// </summary> - public static Vector128<long> SumAbsoluteDifferences(Vector128<byte> left, Vector128<byte> right) { throw new PlatformNotSupportedException(); } + public static Vector128<ushort> SumAbsoluteDifferences(Vector128<byte> left, Vector128<byte> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm_shuffle_epi32 (__m128i a, int immediate) diff --git a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Sse2.cs b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Sse2.cs index 1aab686bd..0f8b9a8f5 100644 --- a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Sse2.cs +++ b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Sse2.cs @@ -894,7 +894,7 @@ namespace System.Runtime.Intrinsics.X86 /// __m128i _mm_madd_epi16 (__m128i a, __m128i b) /// PMADDWD xmm, xmm/m128 /// </summary> - public static Vector128<int> MultiplyHorizontalAdd(Vector128<short> left, Vector128<short> right) => MultiplyHorizontalAdd(left, right); + public static Vector128<int> MultiplyAddAdjacent(Vector128<short> left, Vector128<short> right) => MultiplyAddAdjacent(left, right); /// <summary> /// __m128i _mm_mullo_epi16 (__m128i a, __m128i b) @@ -1313,7 +1313,7 @@ namespace System.Runtime.Intrinsics.X86 /// __m128i _mm_sad_epu8 (__m128i a, __m128i b) /// PSADBW xmm, xmm/m128 /// </summary> - public static Vector128<long> SumAbsoluteDifferences(Vector128<byte> left, Vector128<byte> right) => SumAbsoluteDifferences(left, right); + public static Vector128<ushort> SumAbsoluteDifferences(Vector128<byte> left, Vector128<byte> right) => SumAbsoluteDifferences(left, right); /// <summary> /// __m128i _mm_shuffle_epi32 (__m128i a, int immediate) |