aboutsummaryrefslogtreecommitdiff
path: root/ChocolArm64/Instructions/VectorHelper.cs
diff options
context:
space:
mode:
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();
- }
}
}