Skip to content

Commit 93dc44c

Browse files
committed
Try to workaround the mono interpreter issue
1 parent 4a756b9 commit 93dc44c

6 files changed

Lines changed: 17 additions & 17 deletions

File tree

src/libraries/System.Private.CoreLib/src/System/Numerics/Vector_1.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public static bool IsSupported
170170
{
171171
[Intrinsic]
172172
[MethodImpl(MethodImplOptions.AggressiveInlining)]
173-
get => Scalar<T>.IsSupported;
173+
get => Scalar<T>.IsTypeSupported;
174174
}
175175

176176
/// <summary>Gets a new <see cref="Vector{T}" /> with all elements initialized to one.</summary>

src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Scalar.cs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@ internal static class Scalar<T>
1616
public static bool IsFloatingPoint => (typeof(T) == typeof(double))
1717
|| (typeof(T) == typeof(float));
1818

19-
public static bool IsSupported => (typeof(T) == typeof(byte))
20-
|| (typeof(T) == typeof(double))
21-
|| (typeof(T) == typeof(short))
22-
|| (typeof(T) == typeof(int))
23-
|| (typeof(T) == typeof(long))
24-
|| (typeof(T) == typeof(nint))
25-
|| (typeof(T) == typeof(sbyte))
26-
|| (typeof(T) == typeof(float))
27-
|| (typeof(T) == typeof(ushort))
28-
|| (typeof(T) == typeof(uint))
29-
|| (typeof(T) == typeof(ulong))
30-
|| (typeof(T) == typeof(nuint));
19+
public static bool IsTypeSupported => (typeof(T) == typeof(byte))
20+
|| (typeof(T) == typeof(double))
21+
|| (typeof(T) == typeof(short))
22+
|| (typeof(T) == typeof(int))
23+
|| (typeof(T) == typeof(long))
24+
|| (typeof(T) == typeof(nint))
25+
|| (typeof(T) == typeof(sbyte))
26+
|| (typeof(T) == typeof(float))
27+
|| (typeof(T) == typeof(ushort))
28+
|| (typeof(T) == typeof(uint))
29+
|| (typeof(T) == typeof(ulong))
30+
|| (typeof(T) == typeof(nuint));
3131

3232
public static bool IsUnsigned => (typeof(T) == typeof(byte))
3333
|| (typeof(T) == typeof(ushort))

src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Vector128_1.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public static bool IsSupported
8282
[MethodImpl(MethodImplOptions.AggressiveInlining)]
8383
get
8484
{
85-
return Scalar<T>.IsSupported;
85+
return Scalar<T>.IsTypeSupported;
8686
}
8787
}
8888

src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Vector256_1.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public static bool IsSupported
8181
[MethodImpl(MethodImplOptions.AggressiveInlining)]
8282
get
8383
{
84-
return Scalar<T>.IsSupported;
84+
return Scalar<T>.IsTypeSupported;
8585
}
8686
}
8787

src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Vector512_1.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public static bool IsSupported
8181
[MethodImpl(MethodImplOptions.AggressiveInlining)]
8282
get
8383
{
84-
return Scalar<T>.IsSupported;
84+
return Scalar<T>.IsTypeSupported;
8585
}
8686
}
8787

src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Vector64_1.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public static bool IsSupported
8181
[MethodImpl(MethodImplOptions.AggressiveInlining)]
8282
get
8383
{
84-
return Scalar<T>.IsSupported;
84+
return Scalar<T>.IsTypeSupported;
8585
}
8686
}
8787

0 commit comments

Comments
 (0)