From 444bf563cb104d2ada59c0c29386e4bdd1758771 Mon Sep 17 00:00:00 2001 From: Fei Peng Date: Sat, 16 Dec 2017 17:35:06 -0800 Subject: [PATCH] Fix method names of hardware intrinsic APIs --- .../ref/System.Runtime.Intrinsics.X86.cs | 147 +++++++++--------- 1 file changed, 73 insertions(+), 74 deletions(-) diff --git a/src/System.Runtime.Intrinsics.X86/ref/System.Runtime.Intrinsics.X86.cs b/src/System.Runtime.Intrinsics.X86/ref/System.Runtime.Intrinsics.X86.cs index 421900e80b03..6b30333c3c9b 100644 --- a/src/System.Runtime.Intrinsics.X86/ref/System.Runtime.Intrinsics.X86.cs +++ b/src/System.Runtime.Intrinsics.X86/ref/System.Runtime.Intrinsics.X86.cs @@ -59,28 +59,28 @@ public static class Avx public static Vector128 Compare(Vector128 left, Vector128 right, FloatComparisonMode mode) { throw null; } public static Vector256 Compare(Vector256 left, Vector256 right, FloatComparisonMode mode) { throw null; } public static Vector256 Compare(Vector256 left, Vector256 right, FloatComparisonMode mode) { throw null; } - public static Vector128 ConvertToVector128Int(Vector256 value) { throw null; } - public static Vector128 ConvertToVector128Float(Vector256 value) { throw null; } - public static Vector256 ConvertToVector256Int(Vector256 value) { throw null; } - public static Vector256 ConvertToVector256Float(Vector256 value) { throw null; } + public static Vector128 ConvertToVector128Int32(Vector256 value) { throw null; } + public static Vector128 ConvertToVector128Single(Vector256 value) { throw null; } + public static Vector256 ConvertToVector256Int32(Vector256 value) { throw null; } + public static Vector256 ConvertToVector256Single(Vector256 value) { throw null; } public static Vector256 ConvertToVector256Double(Vector256 value) { throw null; } public static Vector256 ConvertToVector256Double(Vector256 value) { throw null; } - public static Vector128 ConvertToVector128IntWithTruncation(Vector256 value) { throw null; } - public static Vector256 ConvertToVector256IntWithTruncation(Vector256 value) { throw null; } + public static Vector128 ConvertToVector128Int32WithTruncation(Vector256 value) { throw null; } + public static Vector256 ConvertToVector256Int32WithTruncation(Vector256 value) { throw null; } public static Vector256 Divide(Vector256 left, Vector256 right) { throw null; } public static Vector256 Divide(Vector256 left, Vector256 right) { throw null; } public static Vector256 DotProduct(Vector256 left, Vector256 right, byte control) { throw null; } public static Vector256 DuplicateEvenIndexed(Vector256 value) { throw null; } public static Vector256 DuplicateEvenIndexed(Vector256 value) { throw null; } public static Vector256 DuplicateOddIndexed(Vector256 value) { throw null; } - public static sbyte ExtractSbyte(Vector256 value, byte index) where T : struct { throw null; } + public static sbyte ExtractSByte(Vector256 value, byte index) where T : struct { throw null; } public static byte ExtractByte(Vector256 value, byte index) where T : struct { throw null; } - public static short ExtractShort(Vector256 value, byte index) where T : struct { throw null; } - public static ushort ExtractUshort(Vector256 value, byte index) where T : struct { throw null; } - public static int ExtractInt(Vector256 value, byte index) where T : struct { throw null; } - public static uint ExtractUint(Vector256 value, byte index) where T : struct { throw null; } - public static long ExtractLong(Vector256 value, byte index) where T : struct { throw null; } - public static ulong ExtractUlong(Vector256 value, byte index) where T : struct { throw null; } + public static short ExtractInt16(Vector256 value, byte index) where T : struct { throw null; } + public static ushort ExtractUInt16(Vector256 value, byte index) where T : struct { throw null; } + public static int ExtractInt32(Vector256 value, byte index) where T : struct { throw null; } + public static uint ExtractUInt32(Vector256 value, byte index) where T : struct { throw null; } + public static long ExtractInt64(Vector256 value, byte index) where T : struct { throw null; } + public static ulong ExtractUInt64(Vector256 value, byte index) where T : struct { throw null; } public static Vector128 ExtractVector128(Vector256 value, byte index) where T : struct { throw null; } public static unsafe void ExtractVector128(byte* address, Vector256 value, byte index) { throw null; } public static unsafe void ExtractVector128(sbyte* address, Vector256 value, byte index) { throw null; } @@ -100,14 +100,14 @@ public static class Avx public static Vector256 HorizontalAdd(Vector256 left, Vector256 right) { throw null; } public static Vector256 HorizontalSubtract(Vector256 left, Vector256 right) { throw null; } public static Vector256 HorizontalSubtract(Vector256 left, Vector256 right) { throw null; } - public static Vector256 InsertSbyte(Vector256 value, sbyte data, byte index) where T : struct { throw null; } + public static Vector256 InsertSByte(Vector256 value, sbyte data, byte index) where T : struct { throw null; } public static Vector256 InsertByte(Vector256 value, byte data, byte index) where T : struct { throw null; } - public static Vector256 InsertShort(Vector256 value, short data, byte index) where T : struct { throw null; } - public static Vector256 InsertUshort(Vector256 value, ushort data, byte index) where T : struct { throw null; } - public static Vector256 InsertInt(Vector256 value, int data, byte index) where T : struct { throw null; } - public static Vector256 InsertUint(Vector256 value, uint data, byte index) where T : struct { throw null; } - public static Vector256 InsertLong(Vector256 value, long data, byte index) where T : struct { throw null; } - public static Vector256 InsertUlong(Vector256 value, ulong data, byte index) where T : struct { throw null; } + public static Vector256 InsertInt16(Vector256 value, short data, byte index) where T : struct { throw null; } + public static Vector256 InsertUInt16(Vector256 value, ushort data, byte index) where T : struct { throw null; } + public static Vector256 InsertInt32(Vector256 value, int data, byte index) where T : struct { throw null; } + public static Vector256 InsertUInt32(Vector256 value, uint data, byte index) where T : struct { throw null; } + public static Vector256 InsertInt64(Vector256 value, long data, byte index) where T : struct { throw null; } + public static Vector256 InsertUInt64(Vector256 value, ulong data, byte index) where T : struct { throw null; } public static Vector256 Insert(Vector256 value, Vector128 data, byte index) where T : struct { throw null; } public static unsafe Vector256 Insert(Vector256 value, sbyte* address, byte index) { throw null; } public static unsafe Vector256 Insert(Vector256 value, byte* address, byte index) { throw null; } @@ -169,8 +169,7 @@ public static class Avx public static Vector128 Permute(Vector128 value, byte control) { throw null; } public static Vector256 Permute(Vector256 value, byte control) { throw null; } public static Vector256 Permute(Vector256 value, byte control) { throw null; } - public static Vector256 Permute2x128(Vector256 left, Vector256 right, byte control) { throw null; } - public static Vector256 Permute2x128(Vector256 left, Vector256 right, byte control) { throw null; } + public static Vector256 Permute2x128(Vector256 left, Vector256 right, byte control) where T : struct { throw null; } public static Vector128 PermuteVar(Vector128 left, Vector128 mask) { throw null; } public static Vector128 PermuteVar(Vector128 left, Vector128 mask) { throw null; } public static Vector256 PermuteVar(Vector256 left, Vector256 mask) { throw null; } @@ -198,7 +197,7 @@ public static class Avx public static Vector256 Set(float e7, float e6, float e5, float e4, float e3, float e2, float e1, float e0) { throw null; } public static Vector256 Set(double e3, double e2, double e1, double e0) { throw null; } public static Vector256 Set1(T value) where T : struct { throw null; } - public static Vector256 SetHiLo(Vector128 hi, Vector128 lo) where T : struct { throw null; } + public static Vector256 SetHighLow(Vector128 hi, Vector128 lo) where T : struct { throw null; } public static Vector256 SetZero() where T : struct { throw null; } public static Vector256 Shuffle(Vector256 value, Vector256 right, byte control) { throw null; } public static Vector256 Shuffle(Vector256 value, Vector256 right, byte control) { throw null; } @@ -323,18 +322,18 @@ public static class Avx2 public static Vector256 CompareGreaterThan(Vector256 left, Vector256 right) { throw null; } public static Vector256 CompareGreaterThan(Vector256 left, Vector256 right) { throw null; } public static Vector256 CompareGreaterThan(Vector256 left, Vector256 right) { throw null; } - public static Vector256 ConvertToVector256Short(Vector128 value) { throw null; } - public static Vector256 ConvertToVector256UShort(Vector128 value) { throw null; } - public static Vector256 ConvertToVector256Int(Vector128 value) { throw null; } - public static Vector256 ConvertToVector256Int(Vector128 value) { throw null; } - public static Vector256 ConvertToVector256UInt(Vector128 value) { throw null; } - public static Vector256 ConvertToVector256UInt(Vector128 value) { throw null; } - public static Vector256 ConvertToVector256Long(Vector128 value) { throw null; } - public static Vector256 ConvertToVector256Long(Vector128 value) { throw null; } - public static Vector256 ConvertToVector256Long(Vector128 value) { throw null; } - public static Vector256 ConvertToVector256ULong(Vector128 value) { throw null; } - public static Vector256 ConvertToVector256ULong(Vector128 value) { throw null; } - public static Vector256 ConvertToVector256ULong(Vector128 value) { throw null; } + public static Vector256 ConvertToVector256Int16(Vector128 value) { throw null; } + public static Vector256 ConvertToVector256UInt16(Vector128 value) { throw null; } + public static Vector256 ConvertToVector256Int32(Vector128 value) { throw null; } + public static Vector256 ConvertToVector256Int32(Vector128 value) { throw null; } + public static Vector256 ConvertToVector256UInt32(Vector128 value) { throw null; } + public static Vector256 ConvertToVector256UInt32(Vector128 value) { throw null; } + public static Vector256 ConvertToVector256Int64(Vector128 value) { throw null; } + public static Vector256 ConvertToVector256Int64(Vector128 value) { throw null; } + public static Vector256 ConvertToVector256Int64(Vector128 value) { throw null; } + public static Vector256 ConvertToVector256UInt64(Vector128 value) { throw null; } + public static Vector256 ConvertToVector256UInt64(Vector128 value) { throw null; } + public static Vector256 ConvertToVector256UInt64(Vector128 value) { throw null; } public static Vector128 ExtractVector128(Vector256 value, byte index) { throw null; } public static unsafe void ExtractVector128(sbyte* address, Vector256 value, byte index) { throw null; } public static Vector128 ExtractVector128(Vector256 value, byte index) { throw null; } @@ -731,7 +730,7 @@ public static class Sse public static Vector128 Multiply(Vector128 left, Vector128 right) { throw new NotImplementedException(); } public static Vector128 Or(Vector128 left, Vector128 right) { throw new NotImplementedException(); } public static Vector128 Reciprocal(Vector128 value) { throw new NotImplementedException(); } - public static Vector128 ReciprocalSquareRoot(Vector128 value) { throw new NotImplementedException(); } + public static Vector128 ReciprocalSqrt(Vector128 value) { throw new NotImplementedException(); } public static Vector128 Set(float e3, float e2, float e1, float e0) { throw new NotImplementedException(); } public static Vector128 Set1(float value) { throw new NotImplementedException(); } public static Vector128 SetZero() { throw new NotImplementedException(); } @@ -806,19 +805,19 @@ public static class Sse2 public static Vector128 CompareNotLessThanOrEqual(Vector128 left, Vector128 right) { throw new NotImplementedException(); } public static Vector128 CompareOrdered(Vector128 left, Vector128 right) { throw new NotImplementedException(); } public static Vector128 CompareUnordered(Vector128 left, Vector128 right) { throw new NotImplementedException(); } - public static Vector128 ConvertToInt(Vector128 value) { throw new NotImplementedException(); } - public static Vector128 ConvertToInt(Vector128 value) { throw new NotImplementedException(); } - public static Vector128 ConvertToFloat(Vector128 value) { throw new NotImplementedException(); } - public static Vector128 ConvertToFloat(Vector128 value) { throw new NotImplementedException(); } - public static Vector128 ConvertToDouble(Vector128 value) { throw new NotImplementedException(); } - public static Vector128 ConvertToDouble(Vector128 value) { throw new NotImplementedException(); } - public static Vector128 ConvertToIntWithTruncation(Vector128 value) { throw new NotImplementedException(); } - public static Vector128 ConvertToIntWithTruncation(Vector128 value) { throw new NotImplementedException(); } + public static Vector128 ConvertToVector128Int32(Vector128 value) { throw new NotImplementedException(); } + public static Vector128 ConvertToVector128Int32(Vector128 value) { throw new NotImplementedException(); } + public static Vector128 ConvertToVector128Single(Vector128 value) { throw new NotImplementedException(); } + public static Vector128 ConvertToVector128Single(Vector128 value) { throw new NotImplementedException(); } + public static Vector128 ConvertToVector128Double(Vector128 value) { throw new NotImplementedException(); } + public static Vector128 ConvertToVector128Double(Vector128 value) { throw new NotImplementedException(); } + public static Vector128 ConvertToVector128Int32WithTruncation(Vector128 value) { throw new NotImplementedException(); } + public static Vector128 ConvertToVector128Int32WithTruncation(Vector128 value) { throw new NotImplementedException(); } public static Vector128 Divide(Vector128 left, Vector128 right) { throw new NotImplementedException(); } - public static short ExtractShort(Vector128 value, byte index) where T : struct { throw new NotImplementedException(); } - public static ushort ExtractUshort(Vector128 value, byte index) where T : struct { throw new NotImplementedException(); } - public static Vector128 InsertShort(Vector128 value, short data, byte index) where T : struct { throw new NotImplementedException(); } - public static Vector128 InsertUshort(Vector128 value, ushort data, byte index) where T : struct { throw new NotImplementedException(); } + public static short ExtractInt16(Vector128 value, byte index) where T : struct { throw new NotImplementedException(); } + public static ushort ExtractUInt16(Vector128 value, byte index) where T : struct { throw new NotImplementedException(); } + public static Vector128 InsertInt16(Vector128 value, short data, byte index) where T : struct { throw new NotImplementedException(); } + public static Vector128 InsertUInt16(Vector128 value, ushort data, byte index) where T : struct { throw new NotImplementedException(); } public static unsafe Vector128 Load(sbyte* address) { throw new NotImplementedException(); } public static unsafe Vector128 Load(byte* address) { throw new NotImplementedException(); } public static unsafe Vector128 Load(short* address) { throw new NotImplementedException(); } @@ -849,8 +848,8 @@ public static class Sse2 public static int MoveMask(Vector128 value) { throw new NotImplementedException(); } public static Vector128 Multiply(Vector128 left, Vector128 right) { throw new NotImplementedException(); } public static Vector128 Multiply(Vector128 left, Vector128 right) { throw new NotImplementedException(); } - public static Vector128 MultiplyHi(Vector128 left, Vector128 right) { throw new NotImplementedException(); } - public static Vector128 MultiplyHi(Vector128 left, Vector128 right) { throw new NotImplementedException(); } + public static Vector128 MultiplyHigh(Vector128 left, Vector128 right) { throw new NotImplementedException(); } + public static Vector128 MultiplyHigh(Vector128 left, Vector128 right) { throw new NotImplementedException(); } public static Vector128 MultiplyHorizontalAdd(Vector128 left, Vector128 right) { throw new NotImplementedException(); } public static Vector128 MultiplyLow(Vector128 left, Vector128 right) { throw new NotImplementedException(); } public static Vector128 Or(Vector128 left, Vector128 right) { throw new NotImplementedException(); } @@ -1032,36 +1031,36 @@ public static class Sse41 public static Vector128 Ceiling(Vector128 value) { throw null; } public static Vector128 CompareEqual(Vector128 left, Vector128 right) { throw null; } public static Vector128 CompareEqual(Vector128 left, Vector128 right) { throw null; } - public static Vector128 ConvertToShort(Vector128 value) { throw null; } - public static Vector128 ConvertToShort(Vector128 value) { throw null; } - public static Vector128 ConvertToInt(Vector128 value) { throw null; } - public static Vector128 ConvertToInt(Vector128 value) { throw null; } - public static Vector128 ConvertToInt(Vector128 value) { throw null; } - public static Vector128 ConvertToInt(Vector128 value) { throw null; } - public static Vector128 ConvertToLong(Vector128 value) { throw null; } - public static Vector128 ConvertToLong(Vector128 value) { throw null; } - public static Vector128 ConvertToLong(Vector128 value) { throw null; } - public static Vector128 ConvertToLong(Vector128 value) { throw null; } - public static Vector128 ConvertToLong(Vector128 value) { throw null; } - public static Vector128 ConvertToLong(Vector128 value) { throw null; } + public static Vector128 ConvertToVector128Int16(Vector128 value) { throw null; } + public static Vector128 ConvertToVector128Int16(Vector128 value) { throw null; } + public static Vector128 ConvertToVector128Int32(Vector128 value) { throw null; } + public static Vector128 ConvertToVector128Int32(Vector128 value) { throw null; } + public static Vector128 ConvertToVector128Int32(Vector128 value) { throw null; } + public static Vector128 ConvertToVector128Int32(Vector128 value) { throw null; } + public static Vector128 ConvertToVector128Int64(Vector128 value) { throw null; } + public static Vector128 ConvertToVector128Int64(Vector128 value) { throw null; } + public static Vector128 ConvertToVector128Int64(Vector128 value) { throw null; } + public static Vector128 ConvertToVector128Int64(Vector128 value) { throw null; } + public static Vector128 ConvertToVector128Int64(Vector128 value) { throw null; } + public static Vector128 ConvertToVector128Int64(Vector128 value) { throw null; } public static Vector128 DotProduct(Vector128 left, Vector128 right, byte control) { throw null; } public static Vector128 DotProduct(Vector128 left, Vector128 right, byte control) { throw null; } - public static sbyte ExtractSbyte(Vector128 value, byte index) where T : struct { throw null; } + public static sbyte ExtractSByte(Vector128 value, byte index) where T : struct { throw null; } public static byte ExtractByte(Vector128 value, byte index) where T : struct { throw null; } - public static int ExtractInt(Vector128 value, byte index) where T : struct { throw null; } - public static uint ExtractUint(Vector128 value, byte index) where T : struct { throw null; } - public static long ExtractLong(Vector128 value, byte index) where T : struct { throw null; } - public static ulong ExtractUlong(Vector128 value, byte index) where T : struct { throw null; } - public static float ExtractFloat(Vector128 value, byte index) where T : struct { throw null; } + public static int ExtractInt32(Vector128 value, byte index) where T : struct { throw null; } + public static uint ExtractUInt32(Vector128 value, byte index) where T : struct { throw null; } + public static long ExtractInt64(Vector128 value, byte index) where T : struct { throw null; } + public static ulong ExtractUInt64(Vector128 value, byte index) where T : struct { throw null; } + public static float ExtractSingle(Vector128 value, byte index) where T : struct { throw null; } public static Vector128 Floor(Vector128 value) { throw null; } public static Vector128 Floor(Vector128 value) { throw null; } - public static Vector128 InsertSbyte(Vector128 value, sbyte data, byte index) where T : struct { throw null; } + public static Vector128 InsertSByte(Vector128 value, sbyte data, byte index) where T : struct { throw null; } public static Vector128 InsertByte(Vector128 value, byte data, byte index) where T : struct { throw null; } - public static Vector128 InsertInt(Vector128 value, int data, byte index) where T : struct { throw null; } - public static Vector128 InsertUint(Vector128 value, uint data, byte index) where T : struct { throw null; } - public static Vector128 InsertLong(Vector128 value, long data, byte index) where T : struct { throw null; } - public static Vector128 InsertUlong(Vector128 value, ulong data, byte index) where T : struct { throw null; } - public static Vector128 InsertFloat(Vector128 value, float data, byte index) where T : struct { throw null; } + public static Vector128 InsertInt32(Vector128 value, int data, byte index) where T : struct { throw null; } + public static Vector128 InsertUInt32(Vector128 value, uint data, byte index) where T : struct { throw null; } + public static Vector128 InsertInt64(Vector128 value, long data, byte index) where T : struct { throw null; } + public static Vector128 InsertUInt64(Vector128 value, ulong data, byte index) where T : struct { throw null; } + public static Vector128 InsertSingle(Vector128 value, float data, byte index) where T : struct { throw null; } public static Vector128 Max(Vector128 left, Vector128 right) { throw null; } public static Vector128 Max(Vector128 left, Vector128 right) { throw null; } public static Vector128 Max(Vector128 left, Vector128 right) { throw null; }