aboutsummaryrefslogtreecommitdiff
path: root/ChocolArm64/Instructions/VectorHelper.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2019-02-25 20:46:34 -0300
committerjduncanator <1518948+jduncanator@users.noreply.github.com>2019-02-26 10:46:34 +1100
commit504f4f4abfd34696699fbf484264404f3011ec17 (patch)
treeb264d5fcc9226d91d3e6a180d7f1e84a11bdd19e /ChocolArm64/Instructions/VectorHelper.cs
parent5001f78b1d07b988709dd5f5d1009ebe9b44c669 (diff)
Remove all the calls to StaticCast methods (#605)
Diffstat (limited to 'ChocolArm64/Instructions/VectorHelper.cs')
-rw-r--r--ChocolArm64/Instructions/VectorHelper.cs198
1 files changed, 0 insertions, 198 deletions
diff --git a/ChocolArm64/Instructions/VectorHelper.cs b/ChocolArm64/Instructions/VectorHelper.cs
index f02c131e..edb3428d 100644
--- a/ChocolArm64/Instructions/VectorHelper.cs
+++ b/ChocolArm64/Instructions/VectorHelper.cs
@@ -565,203 +565,5 @@ namespace ChocolArm64.Instructions
throw new PlatformNotSupportedException();
}
-
- [MethodImpl(MethodImplOptions.AggressiveInlining)]
- public static Vector128<sbyte> VectorSingleToSByte(Vector128<float> vector)
- {
- if (Sse.IsSupported)
- {
- return Sse.StaticCast<float, sbyte>(vector);
- }
-
- throw new PlatformNotSupportedException();
- }
-
- [MethodImpl(MethodImplOptions.AggressiveInlining)]
- public static Vector128<short> VectorSingleToInt16(Vector128<float> vector)
- {
- if (Sse.IsSupported)
- {
- return Sse.StaticCast<float, short>(vector);
- }
-
- throw new PlatformNotSupportedException();
- }
-
- [MethodImpl(MethodImplOptions.AggressiveInlining)]
- public static Vector128<int> VectorSingleToInt32(Vector128<float> vector)
- {
- if (Sse.IsSupported)
- {
- return Sse.StaticCast<float, int>(vector);
- }
-
- throw new PlatformNotSupportedException();
- }
-
- [MethodImpl(MethodImplOptions.AggressiveInlining)]
- public static Vector128<long> VectorSingleToInt64(Vector128<float> vector)
- {
- if (Sse.IsSupported)
- {
- return Sse.StaticCast<float, long>(vector);
- }
-
- throw new PlatformNotSupportedException();
- }
-
- [MethodImpl(MethodImplOptions.AggressiveInlining)]
- public static Vector128<byte> VectorSingleToByte(Vector128<float> vector)
- {
- if (Sse.IsSupported)
- {
- return Sse.StaticCast<float, byte>(vector);
- }
-
- throw new PlatformNotSupportedException();
- }
-
- [MethodImpl(MethodImplOptions.AggressiveInlining)]
- public static Vector128<ushort> VectorSingleToUInt16(Vector128<float> vector)
- {
- if (Sse.IsSupported)
- {
- return Sse.StaticCast<float, ushort>(vector);
- }
-
- throw new PlatformNotSupportedException();
- }
-
- [MethodImpl(MethodImplOptions.AggressiveInlining)]
- public static Vector128<uint> VectorSingleToUInt32(Vector128<float> vector)
- {
- if (Sse.IsSupported)
- {
- return Sse.StaticCast<float, uint>(vector);
- }
-
- throw new PlatformNotSupportedException();
- }
-
- [MethodImpl(MethodImplOptions.AggressiveInlining)]
- public static Vector128<ulong> VectorSingleToUInt64(Vector128<float> vector)
- {
- if (Sse.IsSupported)
- {
- return Sse.StaticCast<float, ulong>(vector);
- }
-
- throw new PlatformNotSupportedException();
- }
-
- [MethodImpl(MethodImplOptions.AggressiveInlining)]
- public static Vector128<double> VectorSingleToDouble(Vector128<float> vector)
- {
- if (Sse.IsSupported)
- {
- return Sse.StaticCast<float, double>(vector);
- }
-
- throw new PlatformNotSupportedException();
- }
-
- [MethodImpl(MethodImplOptions.AggressiveInlining)]
- public static Vector128<float> VectorSByteToSingle(Vector128<sbyte> vector)
- {
- if (Sse.IsSupported)
- {
- return Sse.StaticCast<sbyte, float>(vector);
- }
-
- throw new PlatformNotSupportedException();
- }
-
- [MethodImpl(MethodImplOptions.AggressiveInlining)]
- public static Vector128<float> VectorInt16ToSingle(Vector128<short> vector)
- {
- if (Sse.IsSupported)
- {
- return Sse.StaticCast<short, float>(vector);
- }
-
- throw new PlatformNotSupportedException();
- }
-
- [MethodImpl(MethodImplOptions.AggressiveInlining)]
- public static Vector128<float> VectorInt32ToSingle(Vector128<int> vector)
- {
- if (Sse.IsSupported)
- {
- return Sse.StaticCast<int, float>(vector);
- }
-
- throw new PlatformNotSupportedException();
- }
-
- [MethodImpl(MethodImplOptions.AggressiveInlining)]
- public static Vector128<float> VectorInt64ToSingle(Vector128<long> vector)
- {
- if (Sse.IsSupported)
- {
- return Sse.StaticCast<long, float>(vector);
- }
-
- throw new PlatformNotSupportedException();
- }
-
- [MethodImpl(MethodImplOptions.AggressiveInlining)]
- public static Vector128<float> VectorByteToSingle(Vector128<byte> vector)
- {
- if (Sse.IsSupported)
- {
- return Sse.StaticCast<byte, float>(vector);
- }
-
- throw new PlatformNotSupportedException();
- }
-
- [MethodImpl(MethodImplOptions.AggressiveInlining)]
- public static Vector128<float> VectorUInt16ToSingle(Vector128<ushort> vector)
- {
- if (Sse.IsSupported)
- {
- return Sse.StaticCast<ushort, float>(vector);
- }
-
- throw new PlatformNotSupportedException();
- }
-
- [MethodImpl(MethodImplOptions.AggressiveInlining)]
- public static Vector128<float> VectorUInt32ToSingle(Vector128<uint> vector)
- {
- if (Sse.IsSupported)
- {
- return Sse.StaticCast<uint, float>(vector);
- }
-
- throw new PlatformNotSupportedException();
- }
-
- [MethodImpl(MethodImplOptions.AggressiveInlining)]
- public static Vector128<float> VectorUInt64ToSingle(Vector128<ulong> vector)
- {
- if (Sse.IsSupported)
- {
- return Sse.StaticCast<ulong, float>(vector);
- }
-
- throw new PlatformNotSupportedException();
- }
-
- [MethodImpl(MethodImplOptions.AggressiveInlining)]
- public static Vector128<float> VectorDoubleToSingle(Vector128<double> vector)
- {
- if (Sse.IsSupported)
- {
- return Sse.StaticCast<double, float>(vector);
- }
-
- throw new PlatformNotSupportedException();
- }
}
}