Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 767f5ff

Browse files
FeiPengInteljkotas
authored andcommitted
Fix naming convention of hardware intrinsic APIs (#15471)
1 parent 21cfdb6 commit 767f5ff

File tree

10 files changed

+184
-184
lines changed

10 files changed

+184
-184
lines changed

src/mscorlib/src/System/Runtime/Intrinsics/X86/Avx.PlatformNotSupported.cs

Lines changed: 24 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -121,19 +121,19 @@ public static class Avx
121121
/// <summary>
122122
/// __m128i _mm256_cvtpd_epi32 (__m256d a)
123123
/// </summary>
124-
public static Vector128<int> ConvertToVector128Int(Vector256<double> value) { throw new PlatformNotSupportedException(); }
124+
public static Vector128<int> ConvertToVector128Int32(Vector256<double> value) { throw new PlatformNotSupportedException(); }
125125
/// <summary>
126126
/// __m128 _mm256_cvtpd_ps (__m256d a)
127127
/// </summary>
128-
public static Vector128<float> ConvertToVector128Float(Vector256<double> value) { throw new PlatformNotSupportedException(); }
128+
public static Vector128<float> ConvertToVector128Single(Vector256<double> value) { throw new PlatformNotSupportedException(); }
129129
/// <summary>
130130
/// __m256i _mm256_cvtps_epi32 (__m256 a)
131131
/// </summary>
132-
public static Vector256<int> ConvertToVector256Int(Vector256<float> value) { throw new PlatformNotSupportedException(); }
132+
public static Vector256<int> ConvertToVector256Int32(Vector256<float> value) { throw new PlatformNotSupportedException(); }
133133
/// <summary>
134134
/// __m256 _mm256_cvtepi32_ps (__m256i a)
135135
/// </summary>
136-
public static Vector256<float> ConvertToVector256Float(Vector256<int> value) { throw new PlatformNotSupportedException(); }
136+
public static Vector256<float> ConvertToVector256Single(Vector256<int> value) { throw new PlatformNotSupportedException(); }
137137
/// <summary>
138138
/// __m256d _mm256_cvtps_pd (__m128 a)
139139
/// </summary>
@@ -146,11 +146,11 @@ public static class Avx
146146
/// <summary>
147147
/// __m128i _mm256_cvttpd_epi32 (__m256d a)
148148
/// </summary>
149-
public static Vector128<int> ConvertToVector128IntWithTruncation(Vector256<double> value) { throw new PlatformNotSupportedException(); }
149+
public static Vector128<int> ConvertToVector128Int32WithTruncation(Vector256<double> value) { throw new PlatformNotSupportedException(); }
150150
/// <summary>
151151
/// __m256i _mm256_cvttps_epi32 (__m256 a)
152152
/// </summary>
153-
public static Vector256<int> ConvertToVector256IntWithTruncation(Vector256<float> value) { throw new PlatformNotSupportedException(); }
153+
public static Vector256<int> ConvertToVector256Int32WithTruncation(Vector256<float> value) { throw new PlatformNotSupportedException(); }
154154

155155
/// <summary>
156156
/// __m256 _mm256_div_ps (__m256 a, __m256 b)
@@ -183,35 +183,35 @@ public static class Avx
183183
/// <summary>
184184
/// __int8 _mm256_extract_epi8 (__m256i a, const int index)
185185
/// </summary>
186-
public static sbyte ExtractSbyte<T>(Vector256<T> value, byte index) where T : struct { throw new PlatformNotSupportedException(); }
186+
public static sbyte ExtractSByte<T>(Vector256<T> value, byte index) where T : struct { throw new PlatformNotSupportedException(); }
187187
/// <summary>
188188
/// __int8 _mm256_extract_epi8 (__m256i a, const int index)
189189
/// </summary>
190190
public static byte ExtractByte<T>(Vector256<T> value, byte index) where T : struct { throw new PlatformNotSupportedException(); }
191191
/// <summary>
192192
/// __int16 _mm256_extract_epi16 (__m256i a, const int index)
193193
/// </summary>
194-
public static short ExtractShort<T>(Vector256<T> value, byte index) where T : struct { throw new PlatformNotSupportedException(); }
194+
public static short ExtractInt16<T>(Vector256<T> value, byte index) where T : struct { throw new PlatformNotSupportedException(); }
195195
/// <summary>
196196
/// __int16 _mm256_extract_epi16 (__m256i a, const int index)
197197
/// </summary>
198-
public static ushort ExtractUshort<T>(Vector256<T> value, byte index) where T : struct { throw new PlatformNotSupportedException(); }
198+
public static ushort ExtractUInt16<T>(Vector256<T> value, byte index) where T : struct { throw new PlatformNotSupportedException(); }
199199
/// <summary>
200200
/// __int32 _mm256_extract_epi32 (__m256i a, const int index)
201201
/// </summary>
202-
public static int ExtractInt<T>(Vector256<T> value, byte index) where T : struct { throw new PlatformNotSupportedException(); }
202+
public static int ExtractInt32<T>(Vector256<T> value, byte index) where T : struct { throw new PlatformNotSupportedException(); }
203203
/// <summary>
204204
/// __int32 _mm256_extract_epi32 (__m256i a, const int index)
205205
/// </summary>
206-
public static uint ExtractUint<T>(Vector256<T> value, byte index) where T : struct { throw new PlatformNotSupportedException(); }
206+
public static uint ExtractUInt32<T>(Vector256<T> value, byte index) where T : struct { throw new PlatformNotSupportedException(); }
207207
/// <summary>
208208
/// __int64 _mm256_extract_epi64 (__m256i a, const int index)
209209
/// </summary>
210-
public static long ExtractLong<T>(Vector256<T> value, byte index) where T : struct { throw new PlatformNotSupportedException(); }
210+
public static long ExtractInt64<T>(Vector256<T> value, byte index) where T : struct { throw new PlatformNotSupportedException(); }
211211
/// <summary>
212212
/// __int64 _mm256_extract_epi64 (__m256i a, const int index)
213213
/// </summary>
214-
public static ulong ExtractUlong<T>(Vector256<T> value, byte index) where T : struct { throw new PlatformNotSupportedException(); }
214+
public static ulong ExtractUInt64<T>(Vector256<T> value, byte index) where T : struct { throw new PlatformNotSupportedException(); }
215215

216216
/// <summary>
217217
/// __m128 _mm256_extractf128_ps (__m256 a, const int imm8)
@@ -305,35 +305,35 @@ public static class Avx
305305
/// <summary>
306306
/// __m256i _mm256_insert_epi8 (__m256i a, __int8 i, const int index)
307307
/// </summary>
308-
public static Vector256<T> InsertSbyte<T>(Vector256<T> value, sbyte data, byte index) where T : struct { throw new PlatformNotSupportedException(); }
308+
public static Vector256<T> InsertSByte<T>(Vector256<T> value, sbyte data, byte index) where T : struct { throw new PlatformNotSupportedException(); }
309309
/// <summary>
310310
/// __m256i _mm256_insert_epi8 (__m256i a, __int8 i, const int index)
311311
/// </summary>
312312
public static Vector256<T> InsertByte<T>(Vector256<T> value, byte data, byte index) where T : struct { throw new PlatformNotSupportedException(); }
313313
/// <summary>
314314
/// __m256i _mm256_insert_epi16 (__m256i a, __int16 i, const int index)
315315
/// </summary>
316-
public static Vector256<T> InsertShort<T>(Vector256<T> value, short data, byte index) where T : struct { throw new PlatformNotSupportedException(); }
316+
public static Vector256<T> InsertInt16<T>(Vector256<T> value, short data, byte index) where T : struct { throw new PlatformNotSupportedException(); }
317317
/// <summary>
318318
/// __m256i _mm256_insert_epi16 (__m256i a, __int16 i, const int index)
319319
/// </summary>
320-
public static Vector256<T> InsertUshort<T>(Vector256<T> value, ushort data, byte index) where T : struct { throw new PlatformNotSupportedException(); }
320+
public static Vector256<T> InsertUInt16<T>(Vector256<T> value, ushort data, byte index) where T : struct { throw new PlatformNotSupportedException(); }
321321
/// <summary>
322322
/// __m256i _mm256_insert_epi32 (__m256i a, __int32 i, const int index)
323323
/// </summary>
324-
public static Vector256<T> InsertInt<T>(Vector256<T> value, int data, byte index) where T : struct { throw new PlatformNotSupportedException(); }
324+
public static Vector256<T> InsertInt32<T>(Vector256<T> value, int data, byte index) where T : struct { throw new PlatformNotSupportedException(); }
325325
/// <summary>
326326
/// __m256i _mm256_insert_epi32 (__m256i a, __int32 i, const int index)
327327
/// </summary>
328-
public static Vector256<T> InsertUint<T>(Vector256<T> value, uint data, byte index) where T : struct { throw new PlatformNotSupportedException(); }
328+
public static Vector256<T> InsertUInt32<T>(Vector256<T> value, uint data, byte index) where T : struct { throw new PlatformNotSupportedException(); }
329329
/// <summary>
330330
/// __m256i _mm256_insert_epi64 (__m256i a, __int64 i, const int index)
331331
/// </summary>
332-
public static Vector256<T> InsertLong<T>(Vector256<T> value, long data, byte index) where T : struct { throw new PlatformNotSupportedException(); }
332+
public static Vector256<T> InsertInt64<T>(Vector256<T> value, long data, byte index) where T : struct { throw new PlatformNotSupportedException(); }
333333
/// <summary>
334334
/// __m256i _mm256_insert_epi64 (__m256i a, __int64 i, const int index)
335335
/// </summary>
336-
public static Vector256<T> InsertUlong<T>(Vector256<T> value, ulong data, byte index) where T : struct { throw new PlatformNotSupportedException(); }
336+
public static Vector256<T> InsertUInt64<T>(Vector256<T> value, ulong data, byte index) where T : struct { throw new PlatformNotSupportedException(); }
337337

338338
/// <summary>
339339
/// __m256 _mm256_insertf128_ps (__m256 a, __m128 b, int imm8)
@@ -599,13 +599,11 @@ public static class Avx
599599

600600
/// <summary>
601601
/// __m256 _mm256_permute2f128_ps (__m256 a, __m256 b, int imm8)
602-
/// </summary>
603-
public static Vector256<float> Permute2x128(Vector256<float> left, Vector256<float> right, byte control) { throw new PlatformNotSupportedException(); }
604-
/// <summary>
605602
/// __m256d _mm256_permute2f128_pd (__m256d a, __m256d b, int imm8)
603+
/// __m256i _mm256_permute2f128_si256 (__m256i a, __m256i b, int imm8)
606604
/// </summary>
607-
public static Vector256<double> Permute2x128(Vector256<double> left, Vector256<double> right, byte control) { throw new PlatformNotSupportedException(); }
608-
605+
public static Vector256<T> Permute2x128<T>(Vector256<T> left, Vector256<T> right, byte control) where T : struct { throw new PlatformNotSupportedException(); }
606+
609607
/// <summary>
610608
/// __m128 _mm_permutevar_ps (__m128 a, __m128i b)
611609
/// </summary>
@@ -733,7 +731,7 @@ public static class Avx
733731
/// __m256d _mm256_set_m128d (__m128d hi, __m128d lo)
734732
/// __m256i _mm256_set_m128i (__m128i hi, __m128i lo)
735733
/// </summary>
736-
public static Vector256<T> SetHiLo<T>(Vector128<T> hi, Vector128<T> lo) where T : struct { throw new PlatformNotSupportedException(); }
734+
public static Vector256<T> SetHighLow<T>(Vector128<T> hi, Vector128<T> lo) where T : struct { throw new PlatformNotSupportedException(); }
737735

738736
/// <summary>
739737
/// __m256i _mm256_setzero_si256 (void)

0 commit comments

Comments
 (0)