/
ArmBase.PlatformNotSupported.cs
101 lines (83 loc) · 3.32 KB
/
ArmBase.PlatformNotSupported.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#pragma warning disable IDE0060 // unused parameters
using System.Runtime.CompilerServices;
namespace System.Runtime.Intrinsics.Arm
{
/// <summary>
/// This class provides access to the ARM base hardware instructions via intrinsics
/// </summary>
[CLSCompliant(false)]
#if SYSTEM_PRIVATE_CORELIB
public
#else
internal
#endif
abstract class ArmBase
{
internal ArmBase() { }
public static bool IsSupported { [Intrinsic] get => false; }
public abstract class Arm64
{
internal Arm64() { }
public static bool IsSupported { [Intrinsic] get => false; }
/// <summary>
/// A64: CLS Wd, Wn
/// </summary>
public static int LeadingSignCount(int value) { throw new PlatformNotSupportedException(); }
/// <summary>
/// A64: CLS Xd, Xn
/// </summary>
public static int LeadingSignCount(long value) { throw new PlatformNotSupportedException(); }
/// <summary>
/// A64: CLZ Xd, Xn
/// </summary>
public static int LeadingZeroCount(long value) { throw new PlatformNotSupportedException(); }
/// <summary>
/// A64: CLZ Xd, Xn
/// </summary>
public static int LeadingZeroCount(ulong value) { throw new PlatformNotSupportedException(); }
/// <summary>
/// A64: SMULH Xd, Xn, Xm
/// </summary>
public static long MultiplyHigh(long left, long right) { throw new PlatformNotSupportedException(); }
/// <summary>
/// A64: UMULH Xd, Xn, Xm
/// </summary>
public static ulong MultiplyHigh(ulong left, ulong right) { throw new PlatformNotSupportedException(); }
/// <summary>
/// A64: RBIT Xd, Xn
/// </summary>
public static long ReverseElementBits(long value) { throw new PlatformNotSupportedException(); }
/// <summary>
/// A64: RBIT Xd, Xn
/// </summary>
public static ulong ReverseElementBits(ulong value) { throw new PlatformNotSupportedException(); }
}
/// <summary>
/// A32: CLZ Rd, Rm
/// A64: CLZ Wd, Wn
/// </summary>
public static int LeadingZeroCount(int value) { throw new PlatformNotSupportedException(); }
/// <summary>
/// A32: CLZ Rd, Rm
/// A64: CLZ Wd, Wn
/// </summary>
public static int LeadingZeroCount(uint value) { throw new PlatformNotSupportedException(); }
/// <summary>
/// A32: RBIT Rd, Rm
/// A64: RBIT Wd, Wn
/// </summary>
public static int ReverseElementBits(int value) { throw new PlatformNotSupportedException(); }
/// <summary>
/// A32: RBIT Rd, Rm
/// A64: RBIT Wd, Wn
/// </summary>
public static uint ReverseElementBits(uint value) { throw new PlatformNotSupportedException(); }
/// <summary>
/// A32: YIELD
/// A64: YIELD
/// </summary>
public static void Yield() { throw new PlatformNotSupportedException(); }
}
}