Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Arm/Arm64/Base.cs')
-rw-r--r--src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Arm/Arm64/Base.cs33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Arm/Arm64/Base.cs b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Arm/Arm64/Base.cs
new file mode 100644
index 000000000..fc0a19055
--- /dev/null
+++ b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Arm/Arm64/Base.cs
@@ -0,0 +1,33 @@
+using System.Runtime.CompilerServices;
+using System.Runtime.Intrinsics;
+
+
+namespace System.Runtime.Intrinsics.Arm.Arm64
+{
+ /// <summary>
+ /// This class provides access to the Arm64 Base intrinsics
+ ///
+ /// These intrinsics are supported by all Arm64 CPUs
+ /// </summary>
+ [CLSCompliant(false)]
+ public static class Base
+ {
+ public static bool IsSupported { get { return false; }}
+
+ /// <summary>
+ /// Vector LeadingSignCount
+ /// Corresponds to integer forms of ARM64 CLS
+ /// </summary>
+ public static int LeadingSignCount(int value) => LeadingSignCount(value);
+ public static int LeadingSignCount(long value) => LeadingSignCount(value);
+
+ /// <summary>
+ /// Vector LeadingZeroCount
+ /// Corresponds to integer forms of ARM64 CLZ
+ /// </summary>
+ public static int LeadingZeroCount(int value) => LeadingZeroCount(value);
+ public static int LeadingZeroCount(uint value) => LeadingZeroCount(value);
+ public static int LeadingZeroCount(long value) => LeadingZeroCount(value);
+ public static int LeadingZeroCount(ulong value) => LeadingZeroCount(value);
+ }
+}